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
public class AccessPolicyImpl extends GCubePropertyImpl implements AccessPolicy
Implementation ofAccessPolicy.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringnoteAn optional note about the access policyprotected StringpolicyThe access policy according to the schema-
Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
additionalProperties, allowedAdditionalKeys, expectedType, supertypes
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.AccessPolicy
NAME, VERSION
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty
NAME
-
-
Constructor Summary
Constructors Constructor Description AccessPolicyImpl()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetNote()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-
Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedType, getSupertypes, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getPolicy
public 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.- Specified by:
getPolicyin interfaceAccessPolicy- Returns:
- the access policy
-
setPolicy
public void setPolicy(String policy)
Sets the access policy- Specified by:
setPolicyin interfaceAccessPolicy- Parameters:
policy- the access policy
-
getNote
public String getNote()
A note associated with the access policy- Specified by:
getNotein interfaceAccessPolicy- Returns:
- the note
-
setNote
public void setNote(String note)
Sets a note associated with the access policy- Specified by:
setNotein interfaceAccessPolicy- Parameters:
note- the note
-
-