Class InheritableSpaceRoles


  • public final class InheritableSpaceRoles
    extends Object
    The predefined roles in a space to use in an inheritance of access rights.
    Author:
    mmoquillon
    • Method Detail

      • getAllRoles

        public static SilverpeasRole[] getAllRoles()
        Gets all the roles in a space that can be inherited by a component instance in that space.
        Returns:
        an array with all inheritable space roles.
      • isASpaceRole

        public static boolean isASpaceRole​(SilverpeasRole role)
        Is the specified user role is a predefined space role.
        Parameters:
        role - a role a user can play in Silverpeas.
        Returns:
        true if the given role is supported by a collaborative space.