Class DefaultProjectManagerService
- java.lang.Object
-
- org.silverpeas.components.projectmanager.service.DefaultProjectManagerService
-
- All Implemented Interfaces:
ProjectManagerService
@Service public class DefaultProjectManagerService extends Object implements ProjectManagerService
CDI bean to manage the projectManager application
-
-
Constructor Summary
Constructors Constructor Description DefaultProjectManagerService()
-
Method Summary
-
-
-
Method Detail
-
getProjects
public List<TaskDetail> getProjects(String instanceId)
- Specified by:
getProjects
in interfaceProjectManagerService
-
getTasksByMotherId
public List<TaskDetail> getTasksByMotherId(String instanceId, int motherId)
- Specified by:
getTasksByMotherId
in interfaceProjectManagerService
-
getTasksByMotherIdAndPreviousId
public List<TaskDetail> getTasksByMotherIdAndPreviousId(String instanceId, int motherId, int previousId)
- Specified by:
getTasksByMotherIdAndPreviousId
in interfaceProjectManagerService
-
getAllTasks
public List<TaskDetail> getAllTasks(String instanceId, Filtre filtre)
- Specified by:
getAllTasks
in interfaceProjectManagerService
-
getTask
public TaskDetail getTask(int id)
- Specified by:
getTask
in interfaceProjectManagerService
-
getTaskByTodoId
public TaskDetail getTaskByTodoId(String todoId)
- Specified by:
getTaskByTodoId
in interfaceProjectManagerService
-
getMostDistantTask
public TaskDetail getMostDistantTask(String instanceId, int taskId)
- Specified by:
getMostDistantTask
in interfaceProjectManagerService
-
addTask
public int addTask(TaskDetail task, Collection<org.silverpeas.core.io.upload.UploadedFile> uploadedFiles)
- Specified by:
addTask
in interfaceProjectManagerService
-
removeTask
public void removeTask(int id, String instanceId)
- Specified by:
removeTask
in interfaceProjectManagerService
-
updateTask
public void updateTask(TaskDetail task, String userId)
- Specified by:
updateTask
in interfaceProjectManagerService
-
processEndDate
public Date processEndDate(TaskDetail task)
- Specified by:
processEndDate
in interfaceProjectManagerService
-
processEndDate
public Date processEndDate(float fCharge, String instanceId, Date dateDebut)
- Specified by:
processEndDate
in interfaceProjectManagerService
-
calculateAllTasksDates
public void calculateAllTasksDates(String instanceId, int projectId, String userId)
- Specified by:
calculateAllTasksDates
in interfaceProjectManagerService
-
getHolidayDates
public List<Date> getHolidayDates(String instanceId)
- Specified by:
getHolidayDates
in interfaceProjectManagerService
-
getHolidayDates
public List<Date> getHolidayDates(String instanceId, Date beginDate, Date endDate)
- Specified by:
getHolidayDates
in interfaceProjectManagerService
-
addHolidayDate
public void addHolidayDate(HolidayDetail holiday)
- Specified by:
addHolidayDate
in interfaceProjectManagerService
-
addHolidayDates
public void addHolidayDates(List<HolidayDetail> holidayDates)
- Specified by:
addHolidayDates
in interfaceProjectManagerService
-
removeHolidayDate
public void removeHolidayDate(HolidayDetail holiday)
- Specified by:
removeHolidayDate
in interfaceProjectManagerService
-
removeHolidayDates
public void removeHolidayDates(List<HolidayDetail> holidayDates)
- Specified by:
removeHolidayDates
in interfaceProjectManagerService
-
isHolidayDate
public boolean isHolidayDate(HolidayDetail date)
- Specified by:
isHolidayDate
in interfaceProjectManagerService
-
index
public void index(String instanceId)
- Specified by:
index
in interfaceProjectManagerService
-
getOccupationByUser
public int getOccupationByUser(String userId, Date dateDeb, Date dateFin)
- Specified by:
getOccupationByUser
in interfaceProjectManagerService
-
getOccupationByUser
public int getOccupationByUser(String userId, Date dateDeb, Date dateFin, int excludedTaskId)
- Specified by:
getOccupationByUser
in interfaceProjectManagerService
-
-