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, validateContentsgetGroup, getMacroEnd, getMacroStart, getOwner, getPath, getPermissions, getRevNumber, getSelinuxCtx, isBinary, isFile, makeValidationMap, setGroup, setMacroEnd, setMacroStart, setOwner, setPath, setPermissions, setRevNumber, setSelinuxCtx, setType, toString, validateSELinuxpublic SymlinkData(java.lang.String path)
path - the target path of the symlinkpublic ConfigFileType getType()
getType in class DirectoryDatapublic java.lang.String getTargetPath()
public void validatePath()
throws ValidatorException
validatePath in class ConfigFileDataValidatorException - if there are any validation errors.public ConfigInfo extractInfo()
extractInfo in class ConfigFileDatapublic void validate(boolean onCreate)
throws ValidatorException
validate in class ConfigFileDataonCreate - 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 ConfigFileDatacRevision - config revision