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
    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 ValueSchema 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.resourcemanagement.model.reference.properties.AccessPolicy

        NAME
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • 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
      ValueSchema getPolicy()
      The access policy
      void setNote​(String note)
      Sets a note associated with the access policy
      void setPolicy​(ValueSchema 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 ValueSchema 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

      • setPolicy

        public void setPolicy​(ValueSchema 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