All resources must specify their type, and this object describes that type. The resource type must be registered with the system using {@link com.adito.policyframework.PolicyDatabase#registerResourceType(ResourceType)}, this allows extensions to define new resource types.
Each resource type contains a list of permissions of the specified class, current permission classes include {@link com.adito.policyframework.PolicyConstants#DELEGATION_CLASS}, {@link com.adito.policyframework.PolicyConstants#SYSTEM_CLASS} or{@link com.adito.policyframework.PolicyConstants#PERSONAL_CLASS}.
To allow for internationalisation each defined resource type must provide the ID of the resource bundle that contains its title and description.
Method implementations are also required for getting a resource given its id, getting a resource given its name, deleting a resource and updating a resource For the update and delete, it is the implementations responsibility to throw appropriate events. @param < T> @see com.adito.policyframework.PolicyConstants
The resource types are:
The resource types are:
ResourceType
class represents the webdav resource type property. The property may contain multiple resource type values. Predefined resource types are those defined by RFC2518 and RFC3253: resourcetype
Property per the WebDAV specification [RFC 4918] Name: resourcetype Namespace: DAV: Purpose: Specifies the nature of the resource. Description: The resourcetype property MUST be defined on all DAV compliant resources. The default value is empty. <!ELEMENT resourcetype ANY >
Experimental extension to declare types of resources.
Since 3.0, ResourceType object can declare properties that give information about the capabilities of the resource type. Those properties may be used, of instance, to adapt the Web UI according to the type of the resource being displayed.
Currently, the following properties can be defined:
|
|
|
|
|
|
|
|