Package org.opencastproject.security.api
Interface Role
public interface Role
Represent a role in Opencast
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe target (intended purpose) of a set of roles USER - Roles which are assigned to users and/or groups to provide access to capabilities ACL - Roles which are used to manage access to resources (Event, Series) in an ACL ALL - All rolesstatic enumThe type of role: SYSTEM - A role granted automatically by Opencast, not persisted INTERNAL - A role indicating an ability that the user has within Opencast, persisted GROUP - A role indicating membership of an Opencast group, persisted EXTERNAL - A role granted to a user from an external system, not persisted EXTERNAL_GROUP - A role indicating membership of an Opencast group from an external system, not persisted DERIVED - A role which is derived from the user's group membership (a role which the group has), not persisted -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<Role> Orders roles by name, ignoring case, so that e.g. -
Method Summary
-
Field Details
-
BY_NAME
Orders roles by name, ignoring case, so that e.g. "anna" is listed between "Anna" and "Leon". Names that only differ in case are ordered by their case, to keep the order stable.
-
-
Method Details
-
getName
String getName()Gets the role name- Returns:
- the role name
-
getDescription
String getDescription()Gets the role description- Returns:
- the role description
-
getOrganizationId
String getOrganizationId()Returns the role's organization identifier.- Returns:
- the organization identifier
-
getType
Role.Type getType()Returns the role'sRole.Type- Returns:
- the type
-