public class LabelServiceImpl extends Object implements LabelService
| Constructor and Description |
|---|
LabelServiceImpl(LabelStorage labelStorage,
TaskStorage taskStorage,
DAOHandler daoHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTaskToLabel(TaskDto task,
Long labelId) |
LabelDto |
createLabel(LabelDto label) |
List<LabelDto> |
findLabelsByTask(long taskId,
String username,
int offset,
int limit) |
List<LabelDto> |
findLabelsByUser(String username,
int offset,
int limit) |
LabelDto |
getLabel(long labelId) |
void |
removeLabel(long labelId) |
void |
removeTaskFromLabel(TaskDto task,
Long labelId) |
LabelDto |
updateLabel(LabelDto label,
List<Label.FIELDS> fields) |
public LabelServiceImpl(LabelStorage labelStorage, TaskStorage taskStorage, DAOHandler daoHandler)
public List<LabelDto> findLabelsByUser(String username, int offset, int limit)
findLabelsByUser in interface LabelServicepublic List<LabelDto> findLabelsByTask(long taskId, String username, int offset, int limit)
findLabelsByTask in interface LabelServicepublic LabelDto getLabel(long labelId)
getLabel in interface LabelServicepublic LabelDto createLabel(LabelDto label)
createLabel in interface LabelServicepublic LabelDto updateLabel(LabelDto label, List<Label.FIELDS> fields) throws EntityNotFoundException
updateLabel in interface LabelServiceEntityNotFoundExceptionpublic void removeLabel(long labelId)
removeLabel in interface LabelServicepublic void addTaskToLabel(TaskDto task, Long labelId) throws EntityNotFoundException
addTaskToLabel in interface LabelServiceEntityNotFoundExceptionpublic void removeTaskFromLabel(TaskDto task, Long labelId) throws EntityNotFoundException
removeTaskFromLabel in interface LabelServiceEntityNotFoundExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.