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 GCubeProperty
AccessPolicy carries a free-form access policy expression, plus an
accompanying
human-readable note, attached to a resource.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name associated with this propertystatic final StringThe version associated with this propertyFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPolicyReturns a default instance of AccessPolicygetNote()A note associated with the access policyThe access policy.voidSets a note associated with the access policyvoidSets the access policyMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypesMethods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
NAME
The name associated with this property- See Also:
-
VERSION
The version associated with this property- See Also:
-
-
Method Details
-
getDefaultInstance
Returns a default instance of AccessPolicy- Returns:
- a default instance of AccessPolicy
-
getPolicy
@ISProperty(type=java.lang.Object.class, description="The access policy. Deliberately unconstrained: accepts any JSON-compatible value.") 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
Sets the access policy- Parameters:
policy- the access policy
-
getNote
A note associated with the access policy- Returns:
- the note
-
setNote
Sets a note associated with the access policy- Parameters:
note- the note
-