Class 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 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 given role into 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.