public class LabelStorageImpl extends Object implements LabelStorage
| Constructor and Description |
|---|
LabelStorageImpl(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) |
LabelDto |
labelToDto(Label label) |
Label |
labelToEntity(LabelDto labelDto) |
Label |
mappingLabelToEntity(LabelDto labelDto) |
void |
removeLabel(long labelId) |
void |
removeTaskFromLabel(TaskDto task,
Long labelId) |
LabelDto |
updateLabel(LabelDto label,
List<Label.FIELDS> fields) |
public LabelStorageImpl(DAOHandler daoHandler)
public List<LabelDto> findLabelsByUser(String username, int offset, int limit)
findLabelsByUser in interface LabelStoragepublic List<LabelDto> findLabelsByTask(long taskId, String username, int offset, int limit)
findLabelsByTask in interface LabelStoragepublic LabelDto getLabel(long labelId)
getLabel in interface LabelStoragepublic LabelDto createLabel(LabelDto label)
createLabel in interface LabelStoragepublic LabelDto updateLabel(LabelDto label, List<Label.FIELDS> fields) throws EntityNotFoundException
updateLabel in interface LabelStorageEntityNotFoundExceptionpublic void removeLabel(long labelId)
removeLabel in interface LabelStoragepublic void addTaskToLabel(TaskDto task, Long labelId) throws EntityNotFoundException
addTaskToLabel in interface LabelStorageEntityNotFoundExceptionpublic void removeTaskFromLabel(TaskDto task, Long labelId) throws EntityNotFoundException
removeTaskFromLabel in interface LabelStorageEntityNotFoundExceptionpublic Label labelToEntity(LabelDto labelDto)
labelToEntity in interface LabelStoragepublic Label mappingLabelToEntity(LabelDto labelDto)
mappingLabelToEntity in interface LabelStoragepublic LabelDto labelToDto(Label label)
labelToDto in interface LabelStorageCopyright © 2003–2021 eXo Platform SAS. All rights reserved.