Class AccessPolicyImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
org.gcube.informationsystem.model.impl.properties.PropertyImpl
org.gcube.resourcemanagement.model.impl.properties.GCubePropertyImpl
org.gcube.resourcemanagement.model.impl.properties.AccessPolicyImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.properties.PropertyElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.ModelElement,org.gcube.informationsystem.model.reference.properties.Property,AccessPolicy,GCubeProperty
Implementation of
AccessPolicy.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringAn optional note about the access policyprotected StringThe access policy according to the schemaFields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedtype, supertypesFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.AccessPolicy
NAME, VERSIONFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.properties.Property
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNote()A note associated with the access policyThe access policy.protected voidsetGenericPolicy(Object pol) Setter for backward compatibility with ValueSchema payloads.voidSets a note associated with the access policyvoidSets the access policyMethods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
policy
The access policy according to the schema -
note
An optional note about the access policy
-
-
Constructor Details
-
AccessPolicyImpl
public AccessPolicyImpl()Default constructor
-
-
Method Details
-
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.- Specified by:
getPolicyin interfaceAccessPolicy- Returns:
- the access policy
-
setPolicy
Sets the access policy- Specified by:
setPolicyin interfaceAccessPolicy- Parameters:
policy- the access policy
-
setGenericPolicy
Setter for backward compatibility with ValueSchema payloads.- Parameters:
pol- the policy payload to deserialize
-
getNote
A note associated with the access policy- Specified by:
getNotein interfaceAccessPolicy- Returns:
- the note
-
setNote
Sets a note associated with the access policy- Specified by:
setNotein interfaceAccessPolicy- Parameters:
note- the note
-