public class RoleRegistry extends Object
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the registry.
|
static RoleRegistry |
get()
Returns singleton instance of the registry to be able to register roles
|
org.jboss.errai.security.shared.api.Role |
getRegisteredRole(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 roles
|
void |
registerRole(String role)
Registers given
role into the registry |
public static RoleRegistry get()
public void registerRole(String role)
role
into the registrypublic org.jboss.errai.security.shared.api.Role getRegisteredRole(String name)
public Set<org.jboss.errai.security.shared.api.Role> getRegisteredRoles()
public void clear()
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.