Interface AccessPolicy
-
- All Superinterfaces:
org.gcube.informationsystem.base.reference.Element,GCubeProperty,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,Serializable
- All Known Implementing Classes:
AccessPolicyImpl
@TypeMetadata(name="AccessPolicy", description="AccessPolicy carries a free-form access policy expression, plus an accompanying human-readable note, attached to a resource.", version="1.1.0") @Change(version="1.1.0",description="Replaced complex ValueSchema property for \'policy\' with a clean, flat String representation.") @Change(version="1.0.0",description="First Version") public interface AccessPolicy extends GCubePropertyAccessPolicy carries a free-form access policy expression, plus an accompanying human-readable note, attached to a resource.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEThe name associated with this propertystatic StringVERSIONThe version associated with this property
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AccessPolicygetDefaultInstance()Returns a default instance of AccessPolicyStringgetNote()A note associated with the access policyStringgetPolicy()The access policy.voidsetNote(String note)Sets a note associated with the access policyvoidsetPolicy(String policy)Sets the access policy
-
-
-
Field Detail
-
NAME
static final String NAME
The name associated with this property- See Also:
- Constant Field Values
-
VERSION
static final String VERSION
The version associated with this property- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefaultInstance
static AccessPolicy getDefaultInstance()
Returns a default instance of AccessPolicy- Returns:
- a default instance of AccessPolicy
-
getPolicy
@ISProperty(description="The access policy.") String getPolicy()
The access policy. Deliberately unconstrained: accepts any JSON-compatible value (string, number, object, array, ...) since the concrete shape of a policy expression is not known in advance. The Java API always exposes it as aString.- Returns:
- the access policy
-
setPolicy
void setPolicy(String policy)
Sets the access policy- Parameters:
policy- the access policy
-
getNote
@ISProperty(description="A note associated with the access policy.") String getNote()
A note associated with the access policy- Returns:
- the note
-
setNote
void setNote(String note)
Sets a note associated with the access policy- Parameters:
note- the note
-
-