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, sm
BIT_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.
|
java.util.Set<java.lang.String> |
resourceTypeName()
Obtains the set of all possible valid resource type names.
|
accessWorker, canCreate, canDelete, canRead, canWrite, describeRights, isInstanceNameValid, isRightsSetValid
associate, attach, disassociate, getEnclosingScope, getLibrary, getLink, getPermissions, init, refresh, registeredAs, toString
public java.util.Set<java.lang.String> resourceTypeName()
resourceTypeName
in class BitFlagsResource
public java.lang.String getTypeName()
getTypeName
in interface Resource
getTypeName
in class BitFlagsResource
public Rights getRightsInstance(java.lang.Object[] rights)
Rights
interface, using
the array of objects representing a set of access rights fields.getRightsInstance
in interface Resource
getRightsInstance
in class BitFlagsResource
rights
- The objects needed to create an access rights instance.