@Plugin(name="PosixViewAttribute", category="Core", printObject=true) public class PosixViewAttributeAction extends AbstractPathAction
| Modifier and Type | Class and Description |
|---|---|
static class |
PosixViewAttributeAction.Builder
Builder for the posix view attribute action.
|
LOGGER| Modifier and Type | Method and Description |
|---|---|
protected FileVisitor<Path> |
createFileVisitor(Path basePath,
List<PathCondition> conditions)
Creates a new
FileVisitor<Path> to pass to the Files.walkFileTree(Path, Set, int, FileVisitor)
method when the AbstractPathAction.execute() method is invoked. |
String |
getFileGroup()
Returns file group if defined and the OS supports posix/group file attribute view,
null otherwise.
|
String |
getFileOwner()
Returns file owner if defined and the OS supports owner file attribute view,
null otherwise.
|
Set<PosixFilePermission> |
getFilePermissions()
Returns posix file permissions if defined and the OS supports posix file attribute,
null otherwise.
|
static PosixViewAttributeAction.Builder |
newBuilder() |
String |
toString() |
execute, execute, getBasePath, getBasePathString, getMaxDepth, getOptions, getPathConditions, getStrSubstitutor, isFollowSymbolicLinksclose, isComplete, isInterrupted, reportException, run@PluginBuilderFactory public static PosixViewAttributeAction.Builder newBuilder()
protected FileVisitor<Path> createFileVisitor(Path basePath, List<PathCondition> conditions)
AbstractPathActionFileVisitor<Path> to pass to the Files.walkFileTree(Path, Set, int, FileVisitor)
method when the AbstractPathAction.execute() method is invoked.
The visitor is responsible for processing the files it encounters that are accepted by all filters.
createFileVisitor in class AbstractPathActionbasePath - base dir from where to start scanning for files to processconditions - filters that determine if a file should be processedFileVisitor<Path>public Set<PosixFilePermission> getFilePermissions()
PosixFileAttributeViewpublic String getFileOwner()
FileOwnerAttributeViewpublic String getFileGroup()
PosixFileAttributeViewpublic String toString()
toString in class AbstractPathActionCopyright © 1999-2021 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.