public interface RoleTypeContributor
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getClassName()
Optionally returns a className to be used when creating a new role of
this type.
|
default java.lang.String[] |
getExcludedRoleNames()
Returns a list of role names whose permissions cannot be manually defined
by users.
|
java.lang.String |
getIcon()
Returns the css class of the icon that represents the role type.
|
java.lang.String |
getName()
Returns the role type name.
|
default java.lang.String[] |
getSubtypes()
Optionally returns an array of subtypes for the given role type.
|
java.lang.String |
getTabTitle(java.util.Locale locale)
Returns the display title for this role type's section.
|
java.lang.String |
getTitle(java.util.Locale locale)
Returns the display title for this role in the creation menu.
|
int |
getType()
Returns an integer that corresponds to this role's type.
|
boolean |
isAllowAssignMembers(Role role)
Returns whether or not to allow a user to manually assign members to the
given role.
|
default boolean |
isAllowDefinePermissions(Role role)
Returns whether or not to allow a user to manually define the permissions
granted by the given role.
|
boolean |
isAllowDelete(Role role)
Returns whether or not the given role can be deleted.
|
default boolean |
isAutomaticallyAssigned(Role role)
Returns whether or not the given role is automatically assigned.
|
default java.lang.String getClassName()
default java.lang.String[] getExcludedRoleNames()
java.lang.String getIcon()
java.lang.String getName()
default java.lang.String[] getSubtypes()
java.lang.String getTabTitle(java.util.Locale locale)
locale - java.lang.String getTitle(java.util.Locale locale)
locale - int getType()
boolean isAllowAssignMembers(Role role)
role - default boolean isAllowDefinePermissions(Role role)
role - boolean isAllowDelete(Role role)
role - default boolean isAutomaticallyAssigned(Role role)
role -