com.redhat.rhn.domain.action.config
Class ConfigUploadAction

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.action.Action
          extended by com.redhat.rhn.domain.action.config.ConfigUploadAction
All Implemented Interfaces:
java.io.Serializable

public class ConfigUploadAction
extends Action

ConfigUpload - Class representing ActionType.TYPE_CONFIGFILES_MTIME_UPLOAD: 15

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.redhat.rhn.domain.action.Action
formatter
 
Constructor Summary
ConfigUploadAction()
           
 
Method Summary
 void addConfigChannelAndServer(ConfigChannel channel, Server server)
          Adds a config channel associated with the given server to the upload action.
 void addConfigFileName(ConfigFileName fileName, Server server)
          Adds a config file name to the upload action for the given server.
 ActionFormatter getFormatter()
          Get the formatter for this class.
 java.util.Set getRhnActionConfigChannel()
           
 java.util.Set getRhnActionConfigFileName()
           
 void setRhnActionConfigChannel(java.util.Set rhnActionConfigChannelIn)
           
 void setRhnActionConfigFileName(java.util.Set rhnActionConfigFileNameIn)
           
 
Methods inherited from class com.redhat.rhn.domain.action.Action
addServerAction, equals, getActionType, getAgeString, getArchived, getCreated, getEarliestAction, getFailedCount, getId, getModified, getName, getOrg, getPrerequisite, getSchedulerUser, getServerActions, getSuccessfulCount, getVersion, hashCode, setActionType, setAgeString, setArchived, setCreated, setEarliestAction, setId, setModified, setName, setOrg, setPrerequisite, setSchedulerUser, setServerActions, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigUploadAction

public ConfigUploadAction()
Method Detail

getRhnActionConfigChannel

public java.util.Set getRhnActionConfigChannel()
Returns:
Returns the rhnActionConfigChannel.

setRhnActionConfigChannel

public void setRhnActionConfigChannel(java.util.Set rhnActionConfigChannelIn)
Parameters:
rhnActionConfigChannelIn - The rhnActionConfigChannel to set.

getRhnActionConfigFileName

public java.util.Set getRhnActionConfigFileName()
Returns:
Returns the rhnActionConfigFileName.

setRhnActionConfigFileName

public void setRhnActionConfigFileName(java.util.Set rhnActionConfigFileNameIn)
Parameters:
rhnActionConfigFileNameIn - The rhnActionConfigFileName to set.

addConfigChannelAndServer

public void addConfigChannelAndServer(ConfigChannel channel,
                                      Server server)
Adds a config channel associated with the given server to the upload action. For config upload actions, for every server action there must exist one and only one config channel.

Parameters:
channel - The config channel to which to upload files.
server - The server from which to upload files.

addConfigFileName

public void addConfigFileName(ConfigFileName fileName,
                              Server server)
Adds a config file name to the upload action for the given server.

Parameters:
fileName - The config file name to upload.
server - The server to upload the config file from.

getFormatter

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

Overrides:
getFormatter in class Action
Returns:
ActionFormatter for this class.