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 of
ActionFacet.- Author:
- Manuele Simi (ISTI-CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe command to executeprotected Stringprotected StringOptions and parameters for the command.protected StringA remote source used by the command.protected EnumStringPropertyType of action.Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.ActionFacet
NAME, TYPE_PROPERTY, WHEN_PROPERTYFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the command to execute.getName()Gets the name of the facet.The options/params to use when executing the action.From where to download the action.getType()Type of action.voidsetCommand(String command) Sets the command to execute.voidSets the name of the facet.voidsetOptions(String options) The options for the actions.voidA remote source used by the command.voidsetType(EnumStringProperty type) Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
name
-
type
Type of action. -
source
A remote source used by the command. Could be the endpoint of a service, the location of a remote ansible playbook, etc. -
options
Options and parameters for the command. -
command
The command to execute
-
-
Constructor Details
-
ActionFacetImpl
public ActionFacetImpl()
-
-
Method Details
-
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
Description copied from interface:NamedGets the name of the facet. -
setName
Description copied from interface:NamedSets the name of the facet. -
setSource
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
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
Description copied from interface:ActionFacetThe options for the actions.- Specified by:
setOptionsin interfaceActionFacet
-
setCommand
Description copied from interface:ActionFacetSets the command to execute.- Specified by:
setCommandin interfaceActionFacet
-
getCommand
Description copied from interface:ActionFacetGets the command to execute.- Specified by:
getCommandin interfaceActionFacet- Returns:
- the command
-
getType
Description copied from interface:ActionFacetType of action.- Specified by:
getTypein interfaceActionFacet- Returns:
- an instance of
EnumStringProperty
-
setType
- Specified by:
setTypein interfaceActionFacet
-