Class GroupMirroringServiceV9

java.lang.Object
sk.iway.iwcm.components.structuremirroring.GroupMirroringServiceV9

public class GroupMirroringServiceV9 extends Object
  • Constructor Details

    • GroupMirroringServiceV9

      public GroupMirroringServiceV9()
  • Method Details

    • handleGroupSave

      public void handleGroupSave(GroupDetails group, WebjetEventType type, Identity currentUser)
    • getGroupsBySyncId

      public static List<GroupDetails> getGroupsBySyncId(int syncId, int skipGroupId)
      Returns group detail objects based on the provided syncId. If a non-zero skipGroupId is specified, the given directory will be excluded from the result list.
      Parameters:
      syncId - - identifier used to retrieve group details
      skipGroupId - - if > 0, the specified directory will not be included in the list
      Returns:
      list of group detail objects
    • getDeletedGroupsBySyncId

      public static List<GroupDetails> getDeletedGroupsBySyncId(int syncId, int skipGroupId)
      Returns group detail objects based on the provided syncId that ARE IN TRASH (so they are soft deleted). If a non-zero skipGroupId is specified, the given directory will be excluded from the result list.
      Parameters:
      syncId - identifier used to retrieve group details
      skipGroupId - if > 0, the specified directory will be excluded from the result list
      Returns:
      list of group detail objects
    • getGroupsBySyncId

      public static List<GroupDetails> getGroupsBySyncId(int syncId, int skipGroupId, boolean onlyDeleted)
      Returns group detail objects based on the provided syncId. If a non-zero skipGroupId is specified, the given directory will be excluded from the result list.
      Parameters:
      syncId - - identifier used to retrieve group details
      skipGroupId - - if > 0, the specified directory will not be included in the list
      onlyDeleted - - if true, only groups that are in trash (soft deleted) will be returned
      Returns:
      list of group detail objects
    • getLanguage

      public static String getLanguage(GroupDetails group)
    • getSyncId

      public static int getSyncId(int groupId)