public static class PosixViewAttributeAction.Builder extends Object implements Builder<PosixViewAttributeAction>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PosixViewAttributeAction |
build()
Builds the object after all configuration has been set.
|
PosixViewAttributeAction.Builder |
withBasePath(String basePath)
Define base path to apply condition before execute posix file attribute action.
|
PosixViewAttributeAction.Builder |
withConfiguration(Configuration configuration)
Define required configuration, used to retrieve string substituter.
|
PosixViewAttributeAction.Builder |
withFileGroup(String fileGroup)
Define file group to apply during action execution eligible files.
|
PosixViewAttributeAction.Builder |
withFileOwner(String fileOwner)
Define file owner to apply during action execution eligible files.
|
PosixViewAttributeAction.Builder |
withFilePermissions(Set<PosixFilePermission> filePermissions)
Define file permissions to apply during action execution eligible files.
|
PosixViewAttributeAction.Builder |
withFilePermissionsString(String filePermissionsString)
Define file permissions in posix format to apply during action execution eligible files.
|
PosixViewAttributeAction.Builder |
withFollowLinks(boolean followLinks)
True to allow synonyms links during search of eligible files.
|
PosixViewAttributeAction.Builder |
withMaxDepth(int maxDepth)
Define max folder depth to search for eligible files to apply posix attribute view.
|
PosixViewAttributeAction.Builder |
withPathConditions(PathCondition[] pathConditions)
Define path conditions to filter files in
AbstractPathAction.getBasePath() . |
PosixViewAttributeAction.Builder |
withSubst(StrSubstitutor subst)
Define string substituter.
|
public Builder()
public PosixViewAttributeAction build()
Builder
build
in interface Builder<PosixViewAttributeAction>
public PosixViewAttributeAction.Builder withConfiguration(Configuration configuration)
configuration
- AbstractPathAction.getStrSubstitutor()
public PosixViewAttributeAction.Builder withSubst(StrSubstitutor subst)
subst
- AbstractPathAction.getStrSubstitutor()
public PosixViewAttributeAction.Builder withBasePath(String basePath)
basePath
- AbstractPathAction.getBasePath()
public PosixViewAttributeAction.Builder withFollowLinks(boolean followLinks)
followLinks
- Follow synonyms linkspublic PosixViewAttributeAction.Builder withMaxDepth(int maxDepth)
maxDepth
- Max search depthpublic PosixViewAttributeAction.Builder withPathConditions(PathCondition[] pathConditions)
AbstractPathAction.getBasePath()
.pathConditions
- AbstractPathAction.getPathConditions()
public PosixViewAttributeAction.Builder withFilePermissionsString(String filePermissionsString)
rw-rw-rw
r--r--r--
filePermissionsString
- Permissions to applypublic PosixViewAttributeAction.Builder withFilePermissions(Set<PosixFilePermission> filePermissions)
filePermissions
- Permissions to applypublic PosixViewAttributeAction.Builder withFileOwner(String fileOwner)
fileOwner
- File ownerpublic PosixViewAttributeAction.Builder withFileGroup(String fileGroup)
fileGroup
- File groupCopyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.