Class RoleRegistry
- java.lang.Object
-
- org.uberfire.backend.server.security.RoleRegistry
-
public class RoleRegistry extends Object
It holds the collection of Role instances that the platform security services recognize as the application available roles.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the registry.static RoleRegistryget()Returns singleton instance of the registry to be able to register rolesorg.jboss.errai.security.shared.api.RolegetRegisteredRole(String name)Gets a a role instance by its name or null if not found.Set<org.jboss.errai.security.shared.api.Role>getRegisteredRoles()/** Returns unmodifiable copy of all reqistered rolesvoidregisterRole(String role)Registers givenroleinto the registry
-
-
-
Method Detail
-
get
public static RoleRegistry get()
Returns singleton instance of the registry to be able to register roles
-
registerRole
public void registerRole(String role)
Registers givenroleinto the registry
-
getRegisteredRole
public org.jboss.errai.security.shared.api.Role getRegisteredRole(String name)
Gets a a role instance by its name or null if not found.
-
getRegisteredRoles
public Set<org.jboss.errai.security.shared.api.Role> getRegisteredRoles()
/** Returns unmodifiable copy of all reqistered roles
-
clear
public void clear()
Clears the registry.
-
-