Package org.mycore.user2
Class MCRRole
java.lang.Object
org.mycore.user2.MCRRole
Represents a role of users.
Roles are
MCRCategory
instances and every category from MCRUser2Constants.ROLE_CLASSID
isSystemRole()
.- Author:
- Thomas Scheffler (yagee)
-
Constructor Details
-
MCRRole
Creates a new role instance.- Parameters:
name
- the unique role IDlabels
- a set of MCRLabel in different languages
-
-
Method Details
-
getName
Returns the roles's name- Returns:
- the roles's name
-
getLabel
Returns the label in the current language. -
getLabels
Returns all labels available for this role. -
isSystemRole
public boolean isSystemRole()Returns true if this role is a system role. A system role is every category inMCRUser2Constants.ROLE_CLASSID
.- Returns:
- false if category has not the same root ID as the system role classification.
-
equals
-
hashCode
public int hashCode() -
toString
-