Class RunClassStepExecutable
- java.lang.Object
-
- lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
-
- lumis.portal.deployment.stepexecutable.script.AbstractScriptStepExecutable
-
- lumis.portal.deployment.stepexecutable.script.RunClassStepExecutable
-
- All Implemented Interfaces:
Serializable
,IDeploymentStepExecutable
,IScriptStepExecutable
,IStepExecutable
public class RunClassStepExecutable extends AbstractScriptStepExecutable
Runs a custom class.- Since:
- 7.1.0
- Version:
- $Revision: 16037 $ $Date: 2013-11-21 20:58:50 -0200 (Thu, 21 Nov 2013) $
- 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 RunClassStepExecutable(Map<String,List<EnvironmentType>> environment, String message, String customClassScript, Map<String,String> parameters)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeInternal(IStep step)
Executes the step.IStepExecutable
getCustomClassScript()
Returns the custom class to be executed.String
getDescriptionInternal()
Returns the description of this step.protected ILogger
getLogger()
Returns the logger to be used.Map<String,String>
getParameters()
Returns the parameters to be passed to the custom class.-
Methods inherited from class lumis.portal.deployment.stepexecutable.script.AbstractScriptStepExecutable
execute, getDeploymentMessageWriters, getEnvironments, getMessageInternal, getOwnerId, getOwnerType, getStepId, setOwnerId, setOwnerType, setStepId, stepIgnored
-
Methods inherited from class lumis.portal.deployment.stepexecutable.AbstractDeploymentStepExecutable
getDescription, 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
-
RunClassStepExecutable
public RunClassStepExecutable(Map<String,List<EnvironmentType>> environment, String message, String customClassScript, Map<String,String> parameters) throws PortalException
Creates a new instance.- Parameters:
environment
- the environment configuration.message
- the message to be displayed.customClassScript
- the custom class.parameters
- the parameters to be passed to the custom class.- Throws:
PortalException
- Since:
- 7.1.0
-
-
Method Detail
-
executeInternal
public void executeInternal(IStep step) throws Throwable
Description copied from class:AbstractDeploymentStepExecutable
Executes the step.- Specified by:
executeInternal
in classAbstractDeploymentStepExecutable
- Parameters:
step
- the step.- Throws:
Throwable
-
getDescriptionInternal
public String getDescriptionInternal() throws PortalException
Description copied from class:AbstractDeploymentStepExecutable
Returns the description of this step.- Specified by:
getDescriptionInternal
in classAbstractDeploymentStepExecutable
- Returns:
- the description of this step.
- Throws:
PortalException
-
getCustomClassScript
public IStepExecutable getCustomClassScript() throws Throwable
Returns the custom class to be executed.- Returns:
- the custom class to be executed.
- Throws:
Throwable
- Since:
- 7.1.0
-
getParameters
public Map<String,String> getParameters()
Returns the parameters to be passed to the custom class.- Returns:
- Since:
- 7.1.0
-
getLogger
protected ILogger getLogger()
Description copied from class:AbstractDeploymentStepExecutable
Returns the logger to be used.- Specified by:
getLogger
in classAbstractDeploymentStepExecutable
- Returns:
- the logger to be used.
-
-