Class GroupsService

java.lang.Object
sk.iway.iwcm.editor.service.NotifyService
sk.iway.iwcm.editor.service.GroupsService

@Service @RequestScope public class GroupsService extends NotifyService
service class for groups operations
  • Constructor Details

    • GroupsService

      @Autowired public GroupsService(GroupSchedulerDtoRepository groupSchedulerDtoRepository, javax.servlet.http.HttpServletRequest request)
  • Method Details

    • recoverGroupFromTrash

      public boolean recoverGroupFromTrash(GroupDetails group, Identity currentUser)
      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

      public static boolean isInTrash(GroupDetails group)
      Check if group is in trash
      Parameters:
      group -
      Returns:
    • getTrashGroupDetails

      public static GroupDetails getTrashGroupDetails()
      Vrati adresar Kos
      Returns:
    • getSystemGroupDetails

      public static GroupDetails getSystemGroupDetails()
      Vrati adresar System (lokalny)
      Returns:
    • sortItIntoTree

      public static List<GroupDetails> sortItIntoTree(List<GroupDetails> groups)
      Sort list of groups into tree structure (deeper one last)
      Parameters:
      groups -
      Returns:
    • canSyncTitle

      public static boolean canSyncTitle(Integer docId, Integer groupId)
      Check if title is syncable between group and webpage
      Parameters:
      docId -
      groupId -
      Returns:
    • canSyncTitle

      public static boolean canSyncTitle(GroupDetails toSaveGroup)
      Check if title is syncable between group and webpages Used before save of groupDetails
      Parameters:
      toSaveGroup -
      Returns: