Class AbstractScriptStepExecutable
- java.lang.Object
-
- lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
-
- lumis.portal.deployment.stepexecutable.script.AbstractScriptStepExecutable
-
- All Implemented Interfaces:
Serializable
,IDeploymentStepExecutable
,IScriptStepExecutable
,IStepExecutable
- Direct Known Subclasses:
DisplayMessageStepExecutable
,RemoveBigDataDocumentTypesStepExecutable
,RemoveGlobalNonReferencedEntriesStepExecutable
,RunClassStepExecutable
,RunSqlStepExecutable
public abstract class AbstractScriptStepExecutable extends AbstractDeploymentStepExecutable implements IScriptStepExecutable
BaseIScriptStepExecutable
.- Since:
- 7.1.0
- Version:
- $Revision: 20161 $ $Date: 2017-05-05 16:29:37 -0300 (Fri, 05 May 2017) $
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface lumis.portal.deployment.stepexecutable.script.IScriptStepExecutable
IScriptStepExecutable.ScriptOwnerType
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptStepExecutable(Map<String,List<EnvironmentType>> environment, String message)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(IStep step)
Executes the step code.protected DeploymentMessageWriter[]
getDeploymentMessageWriters()
Returns the deployment message writer to be used.Map<String,List<EnvironmentType>>
getEnvironments()
Returns the environments.protected String
getMessageInternal()
Returns the message.String
getOwnerId()
Returns this step's owner identifier.IScriptStepExecutable.ScriptOwnerType
getOwnerType()
Returns this step's owner type.String
getStepId()
Returns this step identifier.void
setOwnerId(String ownerId)
Sets this step's owner identifier.void
setOwnerType(IScriptStepExecutable.ScriptOwnerType ownerType)
Sets this step's owner type.void
setStepId(String stepId)
Sets this step identifier.void
stepIgnored(IStep step)
Callback invoked when the step is ignored.-
Methods inherited from class lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
executeInternal, getDescription, getDescriptionInternal, getLogger, getMessage, isMandatory, localize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface lumis.portal.deployment.stepexecutable.IDeploymentStepExecutable
isMandatory
-
Methods inherited from interface lumis.portal.interactiveprocess.IStepExecutable
getDescription, getMessage
-
-
-
-
Constructor Detail
-
AbstractScriptStepExecutable
public AbstractScriptStepExecutable(Map<String,List<EnvironmentType>> environment, String message)
Creates a new instance.- Parameters:
environment
- the environment configuration.message
- the message to be displayed.- Since:
- 7.1.0
-
-
Method Detail
-
getEnvironments
public Map<String,List<EnvironmentType>> getEnvironments()
Description copied from interface:IScriptStepExecutable
Returns the environments.- Specified by:
getEnvironments
in interfaceIScriptStepExecutable
- Returns:
- the environments.
-
getMessageInternal
protected String getMessageInternal() throws Throwable
Description copied from class:AbstractDeploymentStepExecutable
Returns the message.- Specified by:
getMessageInternal
in classAbstractDeploymentStepExecutable
- Returns:
- the message.
- Throws:
Throwable
-
execute
public void execute(IStep step) throws Throwable
Description copied from interface:IStepExecutable
Executes the step code.- Specified by:
execute
in interfaceIStepExecutable
- Overrides:
execute
in classAbstractDeploymentStepExecutable
- Parameters:
step
- the step owner of the executable.- Throws:
Throwable
-
stepIgnored
public void stepIgnored(IStep step) throws Throwable
Description copied from interface:IStepExecutable
Callback invoked when the step is ignored.- Specified by:
stepIgnored
in interfaceIStepExecutable
- Overrides:
stepIgnored
in classAbstractDeploymentStepExecutable
- Parameters:
step
- the ignored step.- Throws:
Throwable
-
getOwnerId
public String getOwnerId()
Description copied from interface:IScriptStepExecutable
Returns this step's owner identifier.- Specified by:
getOwnerId
in interfaceIScriptStepExecutable
- Returns:
- this step's owner identifier.
-
setOwnerId
public void setOwnerId(String ownerId)
Description copied from interface:IScriptStepExecutable
Sets this step's owner identifier.- Specified by:
setOwnerId
in interfaceIScriptStepExecutable
- Parameters:
ownerId
- this step's owner identifier.
-
getOwnerType
public IScriptStepExecutable.ScriptOwnerType getOwnerType()
Description copied from interface:IScriptStepExecutable
Returns this step's owner type.- Specified by:
getOwnerType
in interfaceIScriptStepExecutable
- Returns:
- this step's owner type.
-
setOwnerType
public void setOwnerType(IScriptStepExecutable.ScriptOwnerType ownerType)
Description copied from interface:IScriptStepExecutable
Sets this step's owner type.- Specified by:
setOwnerType
in interfaceIScriptStepExecutable
- Parameters:
ownerType
- this step's owner type.
-
getStepId
public String getStepId()
Description copied from interface:IScriptStepExecutable
Returns this step identifier.- Specified by:
getStepId
in interfaceIScriptStepExecutable
- Returns:
- this step identifier.
-
setStepId
public void setStepId(String stepId)
Description copied from interface:IScriptStepExecutable
Sets this step identifier.- Specified by:
setStepId
in interfaceIScriptStepExecutable
- Parameters:
stepId
- this step identifier.
-
getDeploymentMessageWriters
protected DeploymentMessageWriter[] getDeploymentMessageWriters()
Description copied from class:AbstractDeploymentStepExecutable
Returns the deployment message writer to be used.- Specified by:
getDeploymentMessageWriters
in classAbstractDeploymentStepExecutable
- Returns:
- the deployment message writer to be used.
-
-