public class VirtualizationActionCommand
extends java.lang.Object
Constructor and Description |
---|
VirtualizationActionCommand(User userIn,
java.util.Date dateIn,
ActionType actionTypeIn,
Server targetSystemIn,
java.lang.String uuidIn,
java.util.Map contextIn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Action |
getAction()
gets the action.
|
ActionType |
getActionType()
Gets the value of actionType
|
java.util.Map |
getContext()
Get the context.
|
java.util.Date |
getScheduleDate()
Gets the value of scheduleDate
|
Server |
getTargetSystem()
Gets the value of targetSystem
|
User |
getUser()
Gets the value of user
|
java.lang.String |
getUuid()
Gets the value of uuid
|
static ActionType |
lookupActionType(java.lang.String currentState,
java.lang.String actionName)
Find the appropriate action label for a given action name and current state.
|
void |
setActionType(ActionType argActionType)
Sets the value of actionType
|
void |
setContext(java.util.Map contextIn)
Sets the context.
|
void |
setScheduleDate(java.util.Date argScheduleDate)
Sets the value of scheduleDate
|
void |
setTargetSystem(Server argTargetSystems)
HashSets the value of targetSystem
|
void |
setUser(User argUser)
Sets the value of user
|
void |
setUuid(java.lang.String argUuid)
HashSets the value of uuid
|
ValidatorError |
store()
Stores virtualization action to be picked up by the client.
|
public VirtualizationActionCommand(User userIn, java.util.Date dateIn, ActionType actionTypeIn, Server targetSystemIn, java.lang.String uuidIn, java.util.Map contextIn)
userIn
- User performing the actiondateIn
- Earliest execution date/time for the actionactionTypeIn
- ActionType of the action being performed.targetSystemIn
- The host system for this action.uuidIn
- String representation of the target instance's UUIDcontextIn
- Map of optional action arguments.public ValidatorError store() throws UninitializedCommandException
UninitializedCommandException
- if the target system is null.public Action getAction()
public static ActionType lookupActionType(java.lang.String currentState, java.lang.String actionName)
currentState
- The current state of the instanceactionName
- The name of the action the user wants to perform
from the button on the form in the web UI.public User getUser()
public void setUser(User argUser)
argUser
- Value to assign to this.userpublic java.util.Map getContext()
public void setContext(java.util.Map contextIn)
contextIn
- Context to set.public java.util.Date getScheduleDate()
public void setScheduleDate(java.util.Date argScheduleDate)
argScheduleDate
- Value to assign to this.scheduleDatepublic ActionType getActionType()
public void setActionType(ActionType argActionType)
argActionType
- Value to assign to this.actionTypepublic Server getTargetSystem()
public void setTargetSystem(Server argTargetSystems)
argTargetSystems
- Value to assign to this.targetSystempublic java.lang.String getUuid()
public void setUuid(java.lang.String argUuid)
argUuid
- Value to assign to this.uuid