Package org.uberfire.security.authz
Interface PermissionTypeRegistry
-
- All Known Implementing Classes:
DefaultPermissionTypeRegistry
public interface PermissionTypeRegistryA registry of permission types. Every type is uniquely identified in the registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PermissionTypeget(String type)Get a previously registed permission type given its unique identifier.voidregister(PermissionType type)Register a permission type.PermissionTyperesolve(String name)Get the first permission type that matches the given name.
-
-
-
Method Detail
-
register
void register(PermissionType type)
Register a permission type. ThePermissionType.getType()is used as a unique key within the registry.
-
get
PermissionType get(String type)
Get a previously registed permission type given its unique identifier.
-
resolve
PermissionType resolve(String name)
Get the first permission type that matches the given name.It's always up to every permission type to define what are the valid format for its permission names.
-
-