Class InheritableSpaceRoles
- java.lang.Object
-
- org.silverpeas.core.admin.component.model.InheritableSpaceRoles
-
public final class InheritableSpaceRoles extends Object
The predefined roles in a space to use in an inheritance of access rights.- Author:
- mmoquillon
-
-
Field Summary
Fields Modifier and Type Field Description static SilverpeasRole
ADMIN
static SilverpeasRole
PUBLISHER
static SilverpeasRole
READER
static SilverpeasRole
WRITER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SilverpeasRole[]
getAllRoles()
Gets all the roles in a space that can be inherited by a component instance in that space.static boolean
isASpaceRole(SilverpeasRole role)
Is the specified user role is a predefined space role.
-
-
-
Field Detail
-
ADMIN
public static final SilverpeasRole ADMIN
-
PUBLISHER
public static final SilverpeasRole PUBLISHER
-
WRITER
public static final SilverpeasRole WRITER
-
READER
public static final SilverpeasRole READER
-
-
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.
-
-