Class LabelStorageImpl
- java.lang.Object
-
- org.exoplatform.task.storage.impl.LabelStorageImpl
-
- All Implemented Interfaces:
LabelStorage
public class LabelStorageImpl extends Object implements LabelStorage
-
-
Constructor Summary
Constructors Constructor Description LabelStorageImpl(DAOHandler daoHandler)
-
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, ProjectStorage projectStorage, int offset, int limit)List<LabelDto>findLabelsByTask(TaskDto task, long projectId, org.exoplatform.services.security.Identity currentUser, ProjectStorage projectStorage, 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, List<Label.FIELDS> fields)
-
-
-
Constructor Detail
-
LabelStorageImpl
public LabelStorageImpl(DAOHandler daoHandler)
-
-
Method Detail
-
findLabelsByUser
public List<LabelDto> findLabelsByUser(String username, int offset, int limit)
- Specified by:
findLabelsByUserin interfaceLabelStorage
-
findLabelsByProject
public List<LabelDto> findLabelsByProject(long projectId, org.exoplatform.services.security.Identity currentUser, ProjectStorage projectStorage, int offset, int limit)
- Specified by:
findLabelsByProjectin interfaceLabelStorage
-
findLabelsByTask
public List<LabelDto> findLabelsByTask(TaskDto task, long projectId, org.exoplatform.services.security.Identity currentUser, ProjectStorage projectStorage, int offset, int limit)
- Specified by:
findLabelsByTaskin interfaceLabelStorage
-
getLabel
public LabelDto getLabel(long labelId)
- Specified by:
getLabelin interfaceLabelStorage
-
createLabel
public LabelDto createLabel(LabelDto label)
- Specified by:
createLabelin interfaceLabelStorage
-
updateLabel
public LabelDto updateLabel(LabelDto label, List<Label.FIELDS> fields) throws EntityNotFoundException
- Specified by:
updateLabelin interfaceLabelStorage- Throws:
EntityNotFoundException
-
removeLabel
public void removeLabel(long labelId)
- Specified by:
removeLabelin interfaceLabelStorage
-
addTaskToLabel
public void addTaskToLabel(TaskDto task, Long labelId) throws EntityNotFoundException
- Specified by:
addTaskToLabelin interfaceLabelStorage- Throws:
EntityNotFoundException
-
removeTaskFromLabel
public void removeTaskFromLabel(TaskDto task, Long labelId) throws EntityNotFoundException
- Specified by:
removeTaskFromLabelin interfaceLabelStorage- Throws:
EntityNotFoundException
-
-