java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The command to execute
    protected String
     
    protected String
    Options and parameters for the command.
    protected String
    A remote source used by the command.
    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.resourcemanagement.model.reference.entities.facets.ActionFacet

    NAME, TYPE_PROPERTY, WHEN_PROPERTY

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the command to execute.
    Gets the name of the facet.
    The options/params to use when executing the action.
    From where to download the action.
    Type of action.
    void
    setCommand(String command)
    Sets the command to execute.
    void
    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
     

    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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 Details

    • name

      protected String name
    • type

      protected EnumStringProperty type
      Type of action.
    • 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 Details

    • ActionFacetImpl

      public ActionFacetImpl()
  • Method Details

    • 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
    • setOptions

      public void setOptions(String options)
      Description copied from interface: ActionFacet
      The options for the actions.
      Specified by:
      setOptions in interface ActionFacet
    • setCommand

      public void setCommand(String command)
      Description copied from interface: ActionFacet
      Sets the command to execute.
      Specified by:
      setCommand in interface ActionFacet
    • getCommand

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

      public EnumStringProperty getType()
      Description copied from interface: ActionFacet
      Type of action.
      Specified by:
      getType in interface ActionFacet
      Returns:
      an instance of EnumStringProperty
    • setType

      public void setType(EnumStringProperty type)
      Specified by:
      setType in interface ActionFacet