Class ActionFacetImpl

  • All Implemented Interfaces:
    Serializable, org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.base.reference.entities.EntityElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, org.gcube.informationsystem.model.reference.entities.Entity, org.gcube.informationsystem.model.reference.entities.Facet, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.model.reference.ModelElement, ActionFacet, Named

    public class ActionFacetImpl
    extends org.gcube.informationsystem.model.impl.entities.FacetImpl
    implements ActionFacet
    Implementation of ActionFacet.
    Author:
    Manuele Simi (ISTI-CNR)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected String command
      The command to execute
      protected String name  
      protected String options
      Options and parameters for the command.
      protected String source
      A remote source used by the command.
      protected EnumStringProperty type
      Type of action.
      • Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

        additionalProperties, allowedAdditionalKeys
      • Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

        contexts, expectedtype, supertypes
      • Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        metadata, uuid
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity

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

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

        CONTEXTS_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

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

        ID_PROPERTY, METADATA_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named

        NAME_PROPERTY
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionFacetImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getCommand()
      Gets the command to execute.
      String getName()
      Gets the name of the facet.
      String getOptions()
      The options/params to use when executing the action.
      String getSource()
      From where to download the action.
      EnumStringProperty getType()
      Type of action.
      void setCommand​(String command)
      Sets the command to execute.
      void setName​(String name)
      Sets the name of the facet.
      void setOptions​(String options)
      The options for the actions.
      void setSource​(String source)
      A remote source used by the command.
      void setType​(EnumStringProperty type)  
      • Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl

        addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl

        getContexts, getExpectedtype, getSupertypes, setContexts
      • Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl

        getID, getMetadata, setID, setMetadata
      • 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.base.reference.entities.EntityElement

        getID, getMetadata, setID, setMetadata
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

        getContexts
      • Methods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

        getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedtype, getSupertypes
    • Field Detail

      • source

        protected String source
        A remote source used by the command. Could be the endpoint of a service, the location of a remote ansible playbook, etc.
      • options

        protected String options
        Options and parameters for the command.
      • command

        protected String command
        The command to execute
    • Constructor Detail

      • ActionFacetImpl

        public ActionFacetImpl()
    • Method Detail

      • getSource

        public String getSource()
        Description copied from interface: ActionFacet
        From where to download the action. A remote source used by the command. Could be the endpoint of a service, the location of a remote ansible playbook, etc.
        Specified by:
        getSource in interface ActionFacet
        Returns:
        URL or Endpoint
      • getName

        public String getName()
        Description copied from interface: Named
        Gets the name of the facet.
        Specified by:
        getName in interface Named
        Returns:
        the name
      • setName

        public void setName​(String name)
        Description copied from interface: Named
        Sets the name of the facet.
        Specified by:
        setName in interface Named
        Parameters:
        name - the new name
      • setSource

        public void setSource​(String source)
        Description copied from interface: ActionFacet
        A remote source used by the command. Could be the endpoint of a service, the location of a remote ansible playbook, etc.
        Specified by:
        setSource in interface ActionFacet
      • getOptions

        public String getOptions()
        Description copied from interface: ActionFacet
        The options/params to use when executing the action.
        Specified by:
        getOptions in interface ActionFacet
        Returns:
        the command to execute to lauch the action
      • getCommand

        public String getCommand()
        Description copied from interface: ActionFacet
        Gets the command to execute.
        Specified by:
        getCommand in interface ActionFacet
        Returns:
        the command