com.redhat.rhn.domain.action
Class Action

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.action.Action
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AppletUseSatelliteAction, BaseVirtualizationAction, ConfigAction, ConfigDateAction, ConfigUploadAction, ConfigUploadMtimeAction, DaemonConfigAction, ErrataAction, HardwareRefreshAction, KickstartAction, KickstartGuestAction, PackageAction, RebootAction, RollbackAction, RollbackConfigAction, RollbackListTransactionsAction, ScriptAction, SolarisPackageInstallAction, SolarisPackagePatchClusterInstallAction, SolarisPackagePatchClusterRemoveAction, SolarisPackagePatchInstallAction, SolarisPackagePatchRemoveAction, SolarisPackageRefreshListAction, SolarisPackageRemoveAction, Up2DateConfigGetAction, Up2DateConfigUpdateAction, VirtualizationGuestPackageInstall, VirtualizationHostPackageInstall, VirtualizationSchedulePollerAction

public class Action
extends BaseDomainHelper
implements java.io.Serializable

Action - Class representation of the table rhnAction.

See Also:
Serialized Form

Field Summary
protected  ActionFormatter formatter
          The ActionFormatter associated with this Action.
 
Constructor Summary
Action()
           
 
Method Summary
 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.Long getId()
          Getter for id
 java.util.Date getModified()
          Getter for modified
 java.lang.String getName()
          Getter for name
 Org getOrg()
           
 java.lang.Long 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(java.lang.Long 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()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

formatter

protected ActionFormatter formatter
The ActionFormatter associated with this Action. Protected so subclasses can init it.

Constructor Detail

Action

public Action()
Method Detail

getAgeString

public java.lang.String getAgeString()
Getter for ageString

Returns:
String to get

setAgeString

public void setAgeString(java.lang.String stringIn)
Setter for ageString

Parameters:
stringIn - String to set ageString to

getId

public java.lang.Long getId()
Getter for id

Returns:
Long to get

setId

public void setId(java.lang.Long idIn)
Setter for id

Parameters:
idIn - to set

getActionType

public ActionType getActionType()
Getter for actionType

Returns:
ActionType to get

setActionType

public void setActionType(ActionType actionTypeIn)
Setter for actionType

Parameters:
actionTypeIn - to set

getName

public java.lang.String getName()
Getter for name

Returns:
String to get

setName

public void setName(java.lang.String nameIn)
Setter for name

Parameters:
nameIn - to set

getEarliestAction

public java.util.Date getEarliestAction()
Getter for earliestAction

Returns:
Date to get

setEarliestAction

public void setEarliestAction(java.util.Date earliestActionIn)
Setter for earliestAction

Parameters:
earliestActionIn - to set

getVersion

public java.lang.Long getVersion()
Getter for version

Returns:
Long to get

setVersion

public void setVersion(java.lang.Long versionIn)
Setter for version

Parameters:
versionIn - to set

getArchived

public java.lang.Long getArchived()
Getter for archived

Returns:
Long to get

setArchived

public void setArchived(java.lang.Long archivedIn)
Setter for archived

Parameters:
archivedIn - to set

getCreated

public java.util.Date getCreated()
Getter for created

Overrides:
getCreated in class BaseDomainHelper
Returns:
Date to get

setCreated

public void setCreated(java.util.Date createdIn)
Setter for created

Overrides:
setCreated in class BaseDomainHelper
Parameters:
createdIn - to set

getModified

public java.util.Date getModified()
Getter for modified

Overrides:
getModified in class BaseDomainHelper
Returns:
Date to get

setModified

public void setModified(java.util.Date modifiedIn)
Setter for modified

Overrides:
setModified in class BaseDomainHelper
Parameters:
modifiedIn - to set

getPrerequisite

public java.lang.Long getPrerequisite()
Getter for prerequisite

Returns:
Long to get

setPrerequisite

public void setPrerequisite(java.lang.Long prerequisiteIn)
Setter for prerequisite

Parameters:
prerequisiteIn - to set

getServerActions

public java.util.Set<ServerAction> getServerActions()
Getter for serverActions. Contains: a collection of: com.redhat.rhn.domain.action.server.ServerAction classes

Returns:
Set of com.redhat.rhn.domain.action.server.ServerAction classes

setServerActions

public void setServerActions(java.util.Set serverActionsIn)
Setter for serverActions. Contains: a collection of: com.redhat.rhn.domain.action.server.ServerAction classes

Parameters:
serverActionsIn - to set

addServerAction

public void addServerAction(ServerAction saIn)
Add a ServerAction to this Action

Parameters:
saIn - serverAction to add

setSchedulerUser

public void setSchedulerUser(User schedulerIn)
Set the Scheduler User who scheduled this Action

Parameters:
schedulerIn - the User who did the scheduling

getSchedulerUser

public User getSchedulerUser()
Get the User who scheduled this Action.

Returns:
User who scheduled this Action

getOrg

public Org getOrg()
Returns:
Returns the org.

setOrg

public void setOrg(Org orgIn)
Parameters:
orgIn - The org to set.

getFormatter

public ActionFormatter getFormatter()
Get the formatter for this class. Subclasses may override the ActionFormatter to provide custom output.

Returns:
ActionFormatter for this class.

getFailedCount

public java.lang.Long getFailedCount()
Get the count of the number of times this action has failed.

Returns:
Count of failed actions.

getSuccessfulCount

public java.lang.Long getSuccessfulCount()
Get the count of the number of times this action has succeeded.

Returns:
Count of successful actions.

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object