public class ConfigRevision extends BaseDomainHelper
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
changedById |
protected ConfigContent |
configContent |
protected ConfigFile |
configFile |
protected ConfigFileType |
configFileType |
protected ConfigInfo |
configInfo |
protected java.lang.Long |
id |
protected java.lang.Long |
revision |
Modifier | Constructor and Description |
---|---|
protected |
ConfigRevision()
Protected constructor
Use ConfigurationFactory to create a new revision.
|
Modifier and Type | Method and Description |
---|---|
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.Long |
getId()
Getter for id
|
java.lang.Long |
getRevision()
Getter for revision
|
boolean |
isDirectory()
Is this revision a directory?
|
boolean |
isFile()
Is this revision a file?
|
boolean |
isSymlink()
Is this revision a symlink?
|
boolean |
matches(ConfigRevision other)
does the revision match to the other config revision
|
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 |
setId(java.lang.Long idIn)
Setter for id
|
void |
setRevision(java.lang.Long revisionIn)
Setter for revision
|
getCreated, getModified, setCreated, setModified, toString
protected java.lang.Long id
protected java.lang.Long revision
protected ConfigFile configFile
protected ConfigContent configContent
protected ConfigInfo configInfo
protected ConfigFileType configFileType
protected java.lang.Long changedById
protected ConfigRevision()
public java.lang.Long getId()
public void setId(java.lang.Long idIn)
idIn
- to setpublic java.lang.Long getRevision()
public void setRevision(java.lang.Long revisionIn)
revisionIn
- to setpublic ConfigContent getConfigContent()
public void setConfigContent(ConfigContent configContentIn)
configContentIn
- The configContent to set.public ConfigFile getConfigFile()
public void setConfigFile(ConfigFile configFileIn)
configFileIn
- The configFile to set.public ConfigInfo getConfigInfo()
public void setConfigInfo(ConfigInfo configInfoIn)
configInfoIn
- The configInfo to set.public java.lang.Long getChangedById()
public void setChangedById(java.lang.Long usrId)
usrId
- changing (currently-logged-in) userpublic User getChangedBy()
public ConfigRevision copy()
public ConfigFileType getConfigFileType()
public void setConfigFileType(ConfigFileType cft)
cft
- new filetype for this revisionpublic boolean isFile()
public boolean isDirectory()
public boolean isSymlink()
public boolean matches(ConfigRevision other)
other
- the other revision