public class Action extends BaseDomainHelper implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected ActionFormatter |
formatter
The ActionFormatter associated with this Action.
|
static java.lang.Integer |
NAME_LENGTH_LIMIT |
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
void |
addServerAction(ServerAction saIn)
Add a ServerAction to this Action
|
boolean |
equals(java.lang.Object other) |
ActionType |
getActionType()
Getter for actionType
|
java.lang.String |
getAgeString()
Getter for ageString
|
java.lang.Long |
getArchived()
Getter for archived
|
java.util.Date |
getCreated()
Getter for created
|
java.util.Date |
getEarliestAction()
Getter for earliestAction
|
java.lang.Long |
getFailedCount()
Get the count of the number of times this action has failed.
|
ActionFormatter |
getFormatter()
Get the formatter for this class.
|
java.lang.String |
getHistoryDetails(Server server,
User currentUser) |
java.lang.Long |
getId()
Getter for id
|
java.util.Date |
getModified()
Getter for modified
|
java.lang.String |
getName()
Getter for name
|
Org |
getOrg() |
Action |
getPrerequisite()
Getter for prerequisite
|
User |
getSchedulerUser()
Get the User who scheduled this Action.
|
java.util.Set<ServerAction> |
getServerActions()
Getter for serverActions.
|
java.lang.Long |
getSuccessfulCount()
Get the count of the number of times this action has succeeded.
|
java.lang.Long |
getVersion()
Getter for version
|
int |
hashCode() |
void |
setActionType(ActionType actionTypeIn)
Setter for actionType
|
void |
setAgeString(java.lang.String stringIn)
Setter for ageString
|
void |
setArchived(java.lang.Long archivedIn)
Setter for archived
|
void |
setCreated(java.util.Date createdIn)
Setter for created
|
void |
setEarliestAction(java.util.Date earliestActionIn)
Setter for earliestAction
|
void |
setId(java.lang.Long idIn)
Setter for id
|
void |
setModified(java.util.Date modifiedIn)
Setter for modified
|
void |
setName(java.lang.String nameIn)
Setter for name
|
void |
setOrg(Org orgIn) |
void |
setPrerequisite(Action prerequisiteIn)
Setter for prerequisite
|
void |
setSchedulerUser(User schedulerIn)
Set the Scheduler User who scheduled this Action
|
void |
setServerActions(java.util.Set serverActionsIn)
Setter for serverActions.
|
void |
setVersion(java.lang.Long versionIn)
Setter for version
|
java.lang.String |
toString() |
public static final java.lang.Integer NAME_LENGTH_LIMIT
protected ActionFormatter formatter
public java.lang.String getAgeString()
public void setAgeString(java.lang.String stringIn)
stringIn
- String to set ageString topublic java.lang.Long getId()
public void setId(java.lang.Long idIn)
idIn
- to setpublic ActionType getActionType()
public void setActionType(ActionType actionTypeIn)
actionTypeIn
- to setpublic java.lang.String getName()
public void setName(java.lang.String nameIn)
nameIn
- to setpublic java.util.Date getEarliestAction()
public void setEarliestAction(java.util.Date earliestActionIn)
earliestActionIn
- to setpublic java.lang.Long getVersion()
public void setVersion(java.lang.Long versionIn)
versionIn
- to setpublic java.lang.Long getArchived()
public void setArchived(java.lang.Long archivedIn)
archivedIn
- to setpublic java.util.Date getCreated()
getCreated
in class BaseDomainHelper
public void setCreated(java.util.Date createdIn)
setCreated
in class BaseDomainHelper
createdIn
- to setpublic java.util.Date getModified()
getModified
in class BaseDomainHelper
public void setModified(java.util.Date modifiedIn)
setModified
in class BaseDomainHelper
modifiedIn
- to setpublic Action getPrerequisite()
public void setPrerequisite(Action prerequisiteIn)
prerequisiteIn
- to setpublic java.util.Set<ServerAction> getServerActions()
public void setServerActions(java.util.Set serverActionsIn)
serverActionsIn
- to setpublic void addServerAction(ServerAction saIn)
saIn
- serverAction to addpublic void setSchedulerUser(User schedulerIn)
schedulerIn
- the User who did the schedulingpublic User getSchedulerUser()
public Org getOrg()
public void setOrg(Org orgIn)
orgIn
- The org to set.public ActionFormatter getFormatter()
public java.lang.Long getFailedCount()
public java.lang.Long getSuccessfulCount()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class BaseDomainHelper