Class ActionFacetImpl
- 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 ofActionFacet.- Author:
- Manuele Simi (ISTI-CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcommandThe command to executeprotected Stringnameprotected StringoptionsOptions and parameters for the command.protected StringsourceA remote source used by the command.protected EnumStringPropertytypeType 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.base.reference.entities.EntityElement
NAME
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
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 StringgetCommand()Gets the command to execute.StringgetName()Gets the name of the facet.StringgetOptions()The options/params to use when executing the action.StringgetSource()From where to download the action.EnumStringPropertygetType()Type of action.voidsetCommand(String command)Sets the command to execute.voidsetName(String name)Sets the name of the facet.voidsetOptions(String options)The options for the actions.voidsetSource(String source)A remote source used by the command.voidsetType(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
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
-
-
Method Detail
-
getSource
public String getSource()
Description copied from interface:ActionFacetFrom 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:
getSourcein interfaceActionFacet- Returns:
- URL or Endpoint
-
getName
public String getName()
Description copied from interface:NamedGets the name of the facet.
-
setName
public void setName(String name)
Description copied from interface:NamedSets the name of the facet.
-
setSource
public void setSource(String source)
Description copied from interface:ActionFacetA remote source used by the command. Could be the endpoint of a service, the location of a remote ansible playbook, etc.- Specified by:
setSourcein interfaceActionFacet
-
getOptions
public String getOptions()
Description copied from interface:ActionFacetThe options/params to use when executing the action.- Specified by:
getOptionsin interfaceActionFacet- Returns:
- the command to execute to lauch the action
-
setOptions
public void setOptions(String options)
Description copied from interface:ActionFacetThe options for the actions.- Specified by:
setOptionsin interfaceActionFacet
-
setCommand
public void setCommand(String command)
Description copied from interface:ActionFacetSets the command to execute.- Specified by:
setCommandin interfaceActionFacet
-
getCommand
public String getCommand()
Description copied from interface:ActionFacetGets the command to execute.- Specified by:
getCommandin interfaceActionFacet- Returns:
- the command
-
getType
public EnumStringProperty getType()
Description copied from interface:ActionFacetType of action.- Specified by:
getTypein interfaceActionFacet- Returns:
- an instance of
EnumStringProperty
-
setType
public void setType(EnumStringProperty type)
- Specified by:
setTypein interfaceActionFacet
-
-