public class ConcurrentResource extends BitFlagsResource
Rights objects for this resource are made of one bitfield with 8 bits. The first four bits
correspond to the create, delete, read and write respectively. There are 3 reserved bits.
The last bit is for explicit denial of access. When printed, they are shown as
CDRW...N.
Resource names will be namespaced using the subclass' resource type name. The naming approach
is /resource_type_name/instance_name. Each different instance of a particular
resource type will share the same type name but must have a unique, non-empty instance name.
| Modifier and Type | Field and Description |
|---|---|
private static java.util.Set<java.lang.String> |
names
All valid resource names.
|
objectPointer, resourceIndex, smBIT_CREATE_ACCESS, BIT_DELETE_ACCESS, BIT_DENIED_ACCESS, BIT_READ_ACCESS, BIT_WRITE_ACCESS, BITSET_SIZE| Constructor and Description |
|---|
ConcurrentResource()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Rights |
getRightsInstance(java.lang.Object[] rights)
Instantiates a plugin's class that implements the
Rights interface, using
the array of objects representing a set of access rights fields. |
java.lang.String |
getTypeName()
Returns the plugin resource type name as a string.
|
boolean |
isInstanceNameValid(java.lang.String resource)
Checks whether a given string is a valid resource name for this resource type.
|
java.util.Set<java.lang.String> |
resourceTypeName()
Obtains the set of all possible valid resource type names.
|
accessWorker, canCreate, canDelete, canRead, canWrite, describeRights, getExtendedBits, isRightsSetValidassociate, attach, disassociate, getACLMatcher, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toStringgetLibraries, getLibraryClasses, getLibsByClass, getVariableList, getVariablespublic java.util.Set<java.lang.String> resourceTypeName()
public java.lang.String getTypeName()
getTypeName in interface ResourcegetTypeName in class BitFlagsResourcepublic Rights getRightsInstance(java.lang.Object[] rights)
Rights interface, using
the array of objects representing a set of access rights fields.getRightsInstance in interface ResourcegetRightsInstance in class BitFlagsResourcerights - The objects needed to create an access rights instance.public boolean isInstanceNameValid(java.lang.String resource)
Valid names are of the form /resource_type_name/instance_name where instance_name
is a non-empty string which has no whitespace and which uniquely identifies a given
resource instance and where resource_type_name is shared across all resources of the same
type. Resource names are NOT case sensitive.
resource - The possible name to validate.true if the name is syntactically correct