com.redhat.rhn.domain.config
Class ConfigRevision

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.config.ConfigRevision

public class ConfigRevision
extends BaseDomainHelper

ConfigRevision - Class representation of the table rhnConfigRevision.


Constructor Summary
protected ConfigRevision()
          Protected constructor Use ConfigurationFactory to create a new revision.
 
Method Summary
 ConfigRevision copy()
          Copies the contents of this object into a new ConfigRevision object.
 User getChangedBy()
          User that caused this revision to be made
 java.lang.Long getChangedById()
          User-id that caused this revision to be made
 ConfigContent getConfigContent()
           
 ConfigFile getConfigFile()
           
 ConfigFileType getConfigFileType()
           
 ConfigInfo getConfigInfo()
           
 java.lang.String getDelimEnd()
          Getter for delimEnd
 java.lang.String getDelimStart()
          Getter for delimStart
 java.lang.Long getId()
          Getter for id
 java.lang.Long getRevision()
          Getter for revision
 boolean isDirectory()
          Is this revision a directory?
 void setChangedById(java.lang.Long usrId)
          Set the user-id that casued this change
 void setConfigContent(ConfigContent configContentIn)
           
 void setConfigFile(ConfigFile configFileIn)
           
 void setConfigFileType(ConfigFileType cft)
           
 void setConfigInfo(ConfigInfo configInfoIn)
           
 void setDelimEnd(java.lang.String delimEndIn)
          Setter for delimEnd
 void setDelimStart(java.lang.String delimStartIn)
          Setter for delimStart
 void setId(java.lang.Long idIn)
          Setter for id
 void setRevision(java.lang.Long revisionIn)
          Setter for revision
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigRevision

protected ConfigRevision()
Protected constructor Use ConfigurationFactory to create a new revision.

Method Detail

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

getRevision

public java.lang.Long getRevision()
Getter for revision

Returns:
Long to get

setRevision

public void setRevision(java.lang.Long revisionIn)
Setter for revision

Parameters:
revisionIn - to set

getDelimStart

public java.lang.String getDelimStart()
Getter for delimStart

Returns:
String to get

setDelimStart

public void setDelimStart(java.lang.String delimStartIn)
Setter for delimStart

Parameters:
delimStartIn - to set

getDelimEnd

public java.lang.String getDelimEnd()
Getter for delimEnd

Returns:
String to get

setDelimEnd

public void setDelimEnd(java.lang.String delimEndIn)
Setter for delimEnd

Parameters:
delimEndIn - to set

getConfigContent

public ConfigContent getConfigContent()
Returns:
Returns the configContent.

setConfigContent

public void setConfigContent(ConfigContent configContentIn)
Parameters:
configContentIn - The configContent to set.

getConfigFile

public ConfigFile getConfigFile()
Returns:
Returns the configFile.

setConfigFile

public void setConfigFile(ConfigFile configFileIn)
Parameters:
configFileIn - The configFile to set.

getConfigInfo

public ConfigInfo getConfigInfo()
Returns:
Returns the configInfo.

setConfigInfo

public void setConfigInfo(ConfigInfo configInfoIn)
Parameters:
configInfoIn - The configInfo to set.

getChangedById

public java.lang.Long getChangedById()
User-id that caused this revision to be made

Returns:
usr-id of logged-in-user at change time, or "null" if unknown

setChangedById

public void setChangedById(java.lang.Long usrId)
Set the user-id that casued this change

Parameters:
usrId - changing (currently-logged-in) user

getChangedBy

public User getChangedBy()
User that caused this revision to be made

Returns:
User of logged-in-user at change time, or "null" if unknown

copy

public ConfigRevision copy()
Copies the contents of this object into a new ConfigRevision object. The created and modified dates of the new object are set to now.

Returns:
A new ConfigRevision object.

getConfigFileType

public ConfigFileType getConfigFileType()
Returns:
file-type of this revision

setConfigFileType

public void setConfigFileType(ConfigFileType cft)
Parameters:
cft - new filetype for this revision

isDirectory

public boolean isDirectory()
Is this revision a directory?

Returns:
true if file-type is 'directory'