Interface GroupDirectory

    • Method Detail

      • getId

        String getId()
        Get the id of the group directory.
        Returns:
        The id of the group directory
      • getLabel

        I18nizableText getLabel()
        Get the label of the group directory.
        Returns:
        The label of the group directory
      • setId

        void setId​(String id)
        Set the id of the group directory.
        Parameters:
        id - The id
      • setLabel

        void setLabel​(I18nizableText label)
        Set the label of the group directory.
        Parameters:
        label - The label
      • init

        void init​(String groupDirectoryModelId,
                  Map<String,​Object> paramValues)
           throws Exception
        Initialize the group directory with given parameter values.
        Parameters:
        groupDirectoryModelId - The id of group directory extension point
        paramValues - The parameters' values
        Throws:
        Exception - If an error occured
      • getGroup

        Group getGroup​(String groupID)
        Returns a particular group.
        Parameters:
        groupID - The id of the group.
        Returns:
        The group or null if the group does not exist.
      • getGroups

        Set<GroupgetGroups()
        Returns all groups.
        Returns:
        The groups as a Set of UserGroup, empty if an error occurs.
      • getUserGroups

        Set<StringgetUserGroups​(UserIdentity userIdentity)
        Get all groups a particular user is in.
        Parameters:
        userIdentity - The identity of the user
        Returns:
        The groups as a Set of String (group ID), empty if the login does not match.
      • getGroups

        List<GroupgetGroups​(int count,
                              int offset,
                              Map parameters)
        Get groups
        Parameters:
        count - The maximum number of groups to sax. (-1 to sax all)
        offset - The offset to start with, first is 0.
        parameters - Parameters for saxing user list differently, see implementation.
        Returns:
        The matching groups