public class SymlinkData extends DirectoryData
DEFAULT_CONFIG_DELIM_END, DEFAULT_CONFIG_DELIM_START, MAX_FILE_SIZE
Constructor and Description |
---|
SymlinkData(java.lang.String path)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ConfigInfo |
extractInfo() |
java.lang.String |
getTargetPath() |
ConfigFileType |
getType() |
boolean |
matchesRevision(ConfigRevision cRevision) |
void |
validate(boolean onCreate)
Entry point to validate the contents of this form..
|
void |
validatePath()
Validates the path explicatily ensuring it follows Linux/Unix path
conventions.
|
getContentSize, getContentStream, processRevisedContentFrom, validateContents
getGroup, getMacroEnd, getMacroStart, getOwner, getPath, getPermissions, getRevNumber, getSelinuxCtx, isBinary, isFile, makeValidationMap, setGroup, setMacroEnd, setMacroStart, setOwner, setPath, setPermissions, setRevNumber, setSelinuxCtx, setType, toString, validateSELinux
public SymlinkData(java.lang.String path)
path
- the target path of the symlinkpublic ConfigFileType getType()
getType
in class DirectoryData
public java.lang.String getTargetPath()
public void validatePath() throws ValidatorException
validatePath
in class ConfigFileData
ValidatorException
- if there are any validation errors.public ConfigInfo extractInfo()
extractInfo
in class ConfigFileData
public void validate(boolean onCreate) throws ValidatorException
validate
in class ConfigFileData
onCreate
- true if we're creating a config-file, false if we're only updatingValidatorException
- if there are any validation errors.public boolean matchesRevision(ConfigRevision cRevision)
matchesRevision
in class ConfigFileData
cRevision
- config revision