public class PermissionRegistry extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PermissionRegistry.Setup |
| Constructor and Description |
|---|
PermissionRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermission(Permission p)
This class is not thread-safe, so permissions should be added only during
context initialization.
|
void |
addPermissions(Collection<? extends Permission> permissions)
This class is not thread-safe, so permissions should be added only during
context initialization.
|
static void |
createRegistry(javax.servlet.ServletContext ctx,
Collection<? extends Permission> permissions)
Create the registry and store it in the context.
|
Permission |
getPermission(String uri)
Get the permission that is registered with this URI.
|
static PermissionRegistry |
getRegistry(javax.servlet.ServletContext ctx)
Get the registry from the context.
|
boolean |
isPermission(String uri)
Is there a Permission registered with this URI?
|
static boolean |
isRegistryCreated(javax.servlet.ServletContext ctx)
Has the registry been created yet?
|
public static boolean isRegistryCreated(javax.servlet.ServletContext ctx)
public static void createRegistry(javax.servlet.ServletContext ctx,
Collection<? extends Permission> permissions)
public static PermissionRegistry getRegistry(javax.servlet.ServletContext ctx)
public void addPermissions(Collection<? extends Permission> permissions)
public void addPermission(Permission p)
public boolean isPermission(String uri)
public Permission getPermission(String uri)
Copyright © 2022. All rights reserved.