public class DataEntry extends Object
An entry in the DataConfiguration
.
Constructor and Description |
---|
DataEntry()
Creates an entry.
|
DataEntry(String sourcePath,
String targetPath,
String symLinkPath,
Long groupId,
String groupName,
Long userId,
String userName,
Integer mode,
boolean recursive,
boolean process,
String encoding)
Creates an entry
|
Modifier and Type | Method and Description |
---|---|
String |
getEncoding()
Returns the encoding of the file which should be processed.
|
Long |
getGroupId()
Returns the group ID.
|
String |
getGroupName()
Returns the group name.
|
Integer |
getMode()
Returns the mode.
|
String |
getSourcePath()
Returns the source path.
|
String |
getSymLinkPath()
Returns the symbolic link path.
|
String |
getTargetPath()
Returns the target path.
|
Long |
getUserId()
Returns the user ID.
|
String |
getUserName()
Returns the user name.
|
boolean |
isProcess()
Returns the flag if the file should be processed.
|
boolean |
isRecursive()
Returns the flag if the directory should be included recursively.
|
void |
setEncoding(String encoding)
Sets the encoding of the file which should be processed.
|
void |
setGroupId(Long groupId)
Sets the group ID.
|
void |
setGroupName(String groupName)
Sets the group name.
|
void |
setMode(Integer mode)
Sets the mode.
|
void |
setProcess(boolean process)
Sets the flag if the file should be processed.
|
void |
setRecursive(boolean recursive)
Sets the flag if the directory should be included recursively.
|
void |
setSourcePath(String sourcePath)
Sets the source path.
|
void |
setSymLinkPath(String symLinkPath)
Sets the symbolic link path.
|
void |
setTargetPath(String targetPath)
Sets the target path.
|
void |
setUserId(Long userId)
Sets the user ID.
|
void |
setUserName(String userName)
Sets the user name.
|
public DataEntry()
Creates an entry.
public DataEntry(String sourcePath, String targetPath, String symLinkPath, Long groupId, String groupName, Long userId, String userName, Integer mode, boolean recursive, boolean process, String encoding)
Creates an entry
sourcePath
- The source path.targetPath
- The target path.symLinkPath
- The symbolic link path.groupId
- The group ID.groupName
- The group name.userId
- The user ID.userName
- The user name.mode
- The mode.recursive
- The flag if the directory should be included recursively.process
- The flag if the file should be processed.encoding
- The encoding for the processing.public String getSourcePath()
Returns the source path.
public void setSourcePath(String sourcePath)
Sets the source path.
sourcePath
- The source path.public String getTargetPath()
Returns the target path.
public void setTargetPath(String targetPath)
Sets the target path.
targetPath
- The target path.public String getSymLinkPath()
Returns the symbolic link path.
public void setSymLinkPath(String symLinkPath)
Sets the symbolic link path.
symLinkPath
- The symbolic link path.public Long getGroupId()
Returns the group ID.
public void setGroupId(Long groupId)
Sets the group ID.
groupId
- The group ID.public String getGroupName()
Returns the group name.
public void setGroupName(String groupName)
Sets the group name.
groupName
- The group name.public Long getUserId()
Returns the user ID.
public void setUserId(Long userId)
Sets the user ID.
userId
- The user ID.public String getUserName()
Returns the user name.
public void setUserName(String userName)
Sets the user name.
userName
- The user name.public Integer getMode()
Returns the mode.
public void setMode(Integer mode)
Sets the mode.
mode
- The mode.public boolean isRecursive()
Returns the flag if the directory should be included recursively.
This flag has only an effect if the source path is pointing on a directory.
true
, if the directory should be included
recursively, false
otherwise.public void setRecursive(boolean recursive)
Sets the flag if the directory should be included recursively.
This flag has only an effect if the source path is pointing on a directory.
recursive
- The flag: true
, if the directory should be
included recursively, false
otherwise.public boolean isProcess()
Returns the flag if the file should be processed.
This flag has only an effect if the source path is pointing on a regular
file. Another possibility if the source path is pointing on a directory,
but the recursive option is activated (see the isRecursive()
method). Then all found regular files are processed.
All variables in that file will be replaced. Therefore it has to be a text file.
true
, if the file should be processed,
false
otherwise.getEncoding()
public void setProcess(boolean process)
Sets the flag if the file should be processed.
This flag has only an effect if the source path is pointing on a regular
file. Another possibility if the source path is pointing on a directory,
but the recursive option is activated (see the isRecursive()
method). Then all found regular files are processed.
All variables in that file will be replaced. Therefore it has to be a text file.
process
- The flag: true
, if the file should be processed,
false
otherwise.setEncoding(String)
public String getEncoding()
Returns the encoding of the file which should be processed.
null
, if the default encoding should
be used.isProcess()
public void setEncoding(String encoding)
Sets the encoding of the file which should be processed.
encoding
- The encoding or null
, if the default encoding
should be used.setProcess(boolean)
Copyright © 2015–2019. All rights reserved.