Interface RightProfile

  • All Known Implementing Classes:
    BaseRightProfile, ProfileInst, SpaceProfileInst

    public interface RightProfile
    It represents a profile of right access for a resource in Silverpeas that can be a space, a component instance, a node or whatever. A right profile defines the users and the user groups that can access a resource with some well defined privileges.
    Author:
    mmoquillon
    • Method Detail

      • addGroup

        void addGroup​(String id)
        Adds a user group to the right profile.
        Parameters:
        id - the unique identifier of an existing user group.
      • addUser

        void addUser​(String id)
        Adds a user to the right profile.
        Parameters:
        id - the unique identifier of an existing user.
      • removeGroup

        void removeGroup​(String id)
        Removes from this right profile the specified user group.
        Parameters:
        id - the unique identifier of an existing user group.
      • removeUser

        void removeUser​(String id)
        Removes from this right profile the specified user.
        Parameters:
        id - the unique identifier of an existing user.
      • getAllUsers

        List<String> getAllUsers()
        Gets all the users set in this right profile. In others words, the users that have access the resource to which this right profile refers.
        Returns:
        a list of user identifiers.
      • getAllGroups

        List<String> getAllGroups()
        Gets all the user groups set in this right profile. In others words, the groups that have access the resource to which this right profile refers.
        Returns:
        a list of user group identifiers.