Class LabelServiceImpl
- java.lang.Object
-
- org.exoplatform.task.service.impl.LabelServiceImpl
-
- All Implemented Interfaces:
LabelService
public class LabelServiceImpl extends Object implements LabelService
-
-
Constructor Summary
Constructors Constructor Description LabelServiceImpl(LabelStorage labelStorage, DAOHandler daoHandler, ProjectStorage projectStorage, org.exoplatform.services.listener.ListenerService listenerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTaskToLabel(TaskDto task, Long labelId)LabelDtocreateLabel(LabelDto label)List<LabelDto>findLabelsByProject(long projectId, org.exoplatform.services.security.Identity currentUser, int offset, int limit)List<LabelDto>findLabelsByTask(TaskDto task, long projectId, org.exoplatform.services.security.Identity currentUser, int offset, int limit)List<LabelDto>findLabelsByUser(String username, int offset, int limit)LabelDtogetLabel(long labelId)voidremoveLabel(long labelId)voidremoveTaskFromLabel(TaskDto task, Long labelId)LabelDtoupdateLabel(LabelDto label)LabelDtoupdateLabel(LabelDto label, List<Label.FIELDS> fields)
-
-
-
Constructor Detail
-
LabelServiceImpl
public LabelServiceImpl(LabelStorage labelStorage, DAOHandler daoHandler, ProjectStorage projectStorage, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Detail
-
findLabelsByUser
public List<LabelDto> findLabelsByUser(String username, int offset, int limit)
- Specified by:
findLabelsByUserin interfaceLabelService
-
findLabelsByProject
public List<LabelDto> findLabelsByProject(long projectId, org.exoplatform.services.security.Identity currentUser, int offset, int limit)
- Specified by:
findLabelsByProjectin interfaceLabelService
-
findLabelsByTask
public List<LabelDto> findLabelsByTask(TaskDto task, long projectId, org.exoplatform.services.security.Identity currentUser, int offset, int limit)
- Specified by:
findLabelsByTaskin interfaceLabelService
-
getLabel
public LabelDto getLabel(long labelId)
- Specified by:
getLabelin interfaceLabelService
-
createLabel
public LabelDto createLabel(LabelDto label)
- Specified by:
createLabelin interfaceLabelService
-
updateLabel
public LabelDto updateLabel(LabelDto label, List<Label.FIELDS> fields) throws EntityNotFoundException
- Specified by:
updateLabelin interfaceLabelService- Throws:
EntityNotFoundException
-
updateLabel
public LabelDto updateLabel(LabelDto label) throws EntityNotFoundException
- Specified by:
updateLabelin interfaceLabelService- Throws:
EntityNotFoundException
-
removeLabel
public void removeLabel(long labelId)
- Specified by:
removeLabelin interfaceLabelService
-
addTaskToLabel
public void addTaskToLabel(TaskDto task, Long labelId) throws EntityNotFoundException
- Specified by:
addTaskToLabelin interfaceLabelService- Throws:
EntityNotFoundException
-
removeTaskFromLabel
public void removeTaskFromLabel(TaskDto task, Long labelId) throws EntityNotFoundException
- Specified by:
removeTaskFromLabelin interfaceLabelService- Throws:
EntityNotFoundException
-
-