class ResourceRegistry
extends java.lang.Object
Registry entry holds the following information about an abstract resource:
Modifier and Type | Field and Description |
---|---|
private AccessControlList[] |
acls
array of ACLs defined for this resource
|
private int |
index
plugin registration index
|
private java.util.Map |
openSearches
map of open searches
|
private java.util.Map |
openSearchesBySubject
map of open searches when checking permissions for other users
|
private AbstractResource |
plugin
reference to the instance of the abstract resource plugin
|
private Description[] |
rightsItems
array of descriptors of rights items
|
private AuditTarget |
target
audit targets defined for this plugin
|
private java.lang.String |
typeName
abstract resource type name
|
Constructor and Description |
---|
ResourceRegistry(int index,
AbstractResource plugin)
Package private constructor.
|
Modifier and Type | Method and Description |
---|---|
(package private) AccessControlList[] |
getACLs()
Gets the array of ACLs.
|
(package private) Description[] |
getDescription()
Gets the array of rights descriptors.
|
(package private) int |
getIndex()
Gets the registration index.
|
(package private) java.util.Map |
getOpenSearches()
Gets the map of open searches.
|
(package private) java.util.Map |
getOpenSearches(java.lang.String subject,
boolean create)
Gets the map of open searches for the specified subject.
|
(package private) AbstractResource |
getPlugin()
Gets the plugin instance.
|
(package private) AuditTarget |
getTarget()
Gets the audit target object.
|
(package private) java.lang.String |
getTypeName()
Gets the abstract resource type name.
|
(package private) void |
removeOpenSearches(java.lang.String subject)
Remove the map of the open searches for the specified subject.
|
(package private) void |
setACLs(AccessControlList[] acls)
Sets the array of ACLs.
|
private int index
private AbstractResource plugin
private java.lang.String typeName
private Description[] rightsItems
private AccessControlList[] acls
private java.util.Map openSearches
private java.util.Map openSearchesBySubject
private AuditTarget target
ResourceRegistry(int index, AbstractResource plugin) throws java.lang.NoSuchMethodException
index
- registration index assigned to this registry entryplugin
- instance of the abstract resource pluginjava.lang.NoSuchMethodException
- in Resolverint getIndex()
AbstractResource getPlugin()
java.lang.String getTypeName()
Description[] getDescription()
AccessControlList[] getACLs()
void setACLs(AccessControlList[] acls)
acls
- new array of ACLs to be set for this resourcejava.util.Map getOpenSearches()
java.util.Map getOpenSearches(java.lang.String subject, boolean create)
create
flag is true.subject
- The subject ID for which the open searches are retrieved.create
- flag indicating if an empty map should be created if none
exists yet for the specified subject.void removeOpenSearches(java.lang.String subject)
subject
- The subject ID which needs its open searches cleared.AuditTarget getTarget()
AuditTarget
object