Class 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 of AccessPolicy.
    Author:
    Luca Frosini (ISTI - CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String note
      An optional note about the access policy
      protected String policy
      The 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.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty

        NAME
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Property

        NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessPolicyImpl()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getNote()
      A note associated with the access policy
      String getPolicy()
      The access policy.
      void setNote​(String note)
      Sets a note associated with the access policy
      void setPolicy​(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 interface org.gcube.informationsystem.base.reference.Element

        getTypeName
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedType, getSupertypes
      • Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property

        getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
    • Field Detail

      • policy

        protected String policy
        The access policy according to the schema
      • note

        protected String note
        An optional note about the access policy
    • Constructor Detail

      • AccessPolicyImpl

        public AccessPolicyImpl()
        Default constructor
    • 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 a String.
        Specified by:
        getPolicy in interface AccessPolicy
        Returns:
        the access policy
      • setPolicy

        public void setPolicy​(String policy)
        Sets the access policy
        Specified by:
        setPolicy in interface AccessPolicy
        Parameters:
        policy - the access policy
      • getNote

        public String getNote()
        A note associated with the access policy
        Specified by:
        getNote in interface AccessPolicy
        Returns:
        the note
      • setNote

        public void setNote​(String note)
        Sets a note associated with the access policy
        Specified by:
        setNote in interface AccessPolicy
        Parameters:
        note - the note