Package sk.iway.iwcm.editor.service
Class GroupsService
java.lang.Object
sk.iway.iwcm.editor.service.NotifyService
sk.iway.iwcm.editor.service.GroupsService
service class for groups operations
-
Constructor Summary
ConstructorsConstructorDescriptionGroupsService(GroupSchedulerDtoRepository groupSchedulerDtoRepository, javax.servlet.http.HttpServletRequest request) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSyncTitle(Integer docId, Integer groupId) Check if title is syncable between group and webpagestatic booleancanSyncTitle(GroupDetails toSaveGroup) Check if title is syncable between group and webpages Used before save of groupDetailsstatic GroupDetailsVrati adresar System (lokalny)static GroupDetailsVrati adresar Kosstatic booleanisInTrash(GroupDetails group) Check if group is in trashbooleanrecoverGroupFromTrash(GroupDetails group, Identity currentUser) Recover group from trash.static List<GroupDetails>sortItIntoTree(List<GroupDetails> groups) Sort list of groups into tree structure (deeper one last)Methods inherited from class sk.iway.iwcm.editor.service.NotifyService
addNotify, getNotify
-
Constructor Details
-
GroupsService
@Autowired public GroupsService(GroupSchedulerDtoRepository groupSchedulerDtoRepository, javax.servlet.http.HttpServletRequest request)
-
-
Method Details
-
recoverGroupFromTrash
Recover group from trash. It will try to find last parent group from history and use it as recover location. If no history is found, group will be recovered to root.- Parameters:
group-currentUser-- Returns:
-
isInTrash
Check if group is in trash- Parameters:
group-- Returns:
-
getTrashGroupDetails
Vrati adresar Kos- Returns:
-
getSystemGroupDetails
Vrati adresar System (lokalny)- Returns:
-
sortItIntoTree
Sort list of groups into tree structure (deeper one last)- Parameters:
groups-- Returns:
-
canSyncTitle
Check if title is syncable between group and webpage- Parameters:
docId-groupId-- Returns:
-
canSyncTitle
Check if title is syncable between group and webpages Used before save of groupDetails- Parameters:
toSaveGroup-- Returns:
-