com.redhat.rhn.domain.action.config
Class ConfigUploadAction
java.lang.Object
com.redhat.rhn.domain.BaseDomainHelper
com.redhat.rhn.domain.action.Action
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
| 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 |
ConfigUploadAction
public ConfigUploadAction()
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.