Package org.cyclos.entities.users
Interface RoleContainer
-
- All Known Subinterfaces:
SessionData
- All Known Implementing Classes:
AbstractSessionData,AccessClientSessionData,BasicUser,DirectUserSessionData,GuestSessionData,OidcSessionData,Operator,ScriptSessionData,StatefulUserSessionData,StatelessUserSessionData,SystemSessionData,User,UserSessionData
public interface RoleContainerDefines an object that contains user roles
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanisAdmin()Returns whether theRole.ADMINis grantedbooleanisAliasOperator()Returns whether theRole.ALIAS_OPERATORis grantedbooleanisBroker()Returns whether theRole.BROKERis grantedbooleanisGlobalAdmin()Returns whether theRole.GLOBAL_ADMINis granted Returns true if the user is the "root" user.booleanisMember()Returns whether theRole.MEMBERis granteddefault booleanisMemberOnly()Returns true if the logged user has onlyRolemember.booleanisNetworkAdmin()Returns whether theRole.NETWORK_ADMINis grantedbooleanisOperator()Returns whether theRole.OPERATORis grantedbooleanisRestrictedOperator()Returns whether theRole.RESTRICTED_OPERATORis grantedbooleanisUserManager()Returns whether theRole.ADMINorRole.BROKERroles are granted
-
-
-
Method Detail
-
isAdmin
boolean isAdmin()
Returns whether theRole.ADMINis granted
-
isAliasOperator
boolean isAliasOperator()
Returns whether theRole.ALIAS_OPERATORis granted
-
isBroker
boolean isBroker()
Returns whether theRole.BROKERis granted
-
isGlobalAdmin
boolean isGlobalAdmin()
Returns whether theRole.GLOBAL_ADMINis granted Returns true if the user is the "root" user. For multi-networks administrators it returns false- See Also:
isGlobalAdmin()
-
isMember
boolean isMember()
Returns whether theRole.MEMBERis granted
-
isMemberOnly
default boolean isMemberOnly()
Returns true if the logged user has onlyRolemember.
-
isNetworkAdmin
boolean isNetworkAdmin()
Returns whether theRole.NETWORK_ADMINis granted
-
isOperator
boolean isOperator()
Returns whether theRole.OPERATORis granted
-
isRestrictedOperator
boolean isRestrictedOperator()
Returns whether theRole.RESTRICTED_OPERATORis granted
-
isUserManager
boolean isUserManager()
Returns whether theRole.ADMINorRole.BROKERroles are granted
-
-