ConfigurableFsShellPermissions.Chgrppublic static class FsShellPermissions.Chown extends FsShellPermissions
FsShellPermissions.Chgrp, FsShellPermissions.Chmod, FsShellPermissions.Chown| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DESCRIPTION |
|
protected java.lang.String |
group |
|
static java.lang.String |
NAME |
|
protected java.lang.String |
owner |
|
static java.lang.String |
USAGE |
args, COMMAND_DESCRIPTION_FIELD, COMMAND_NAME_FIELD, COMMAND_USAGE_FIELD, err, exceptions, exitCode, name, numErrors, out, recursive| Constructor | Description |
|---|---|
Chown() |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
parseOwnerGroup(java.lang.String ownerStr) |
Parse the first argument into an owner and group
|
protected void |
processOptions(java.util.LinkedList<java.lang.String> args) |
Must be implemented by commands to process the command line flags and
check the bounds of the remaining arguments.
|
protected void |
processPath(PathData item) |
Hook for commands to implement an operation to be applied on each
path for the command.
|
registerCommandsgetCommandName, processRawArguments, run, runAlldisplayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getCommandFactory, getDepth, getDescription, getListingGroupSize, getName, getReplacementCommand, getUsage, isDeprecated, isPathRecursable, isRecursive, isSorted, postProcessPath, processArgument, processArguments, processNonexistentPath, processPathArgument, processPaths, processPaths, recursePath, run, run, setCommandFactory, setName, setRecursivegetConf, setConfpublic static final java.lang.String NAME
public static final java.lang.String USAGE
public static final java.lang.String DESCRIPTION
protected java.lang.String owner
protected java.lang.String group
protected void processOptions(java.util.LinkedList<java.lang.String> args)
throws java.io.IOException
CommandprocessOptions in class Commandargs - the command line argumentsjava.io.IOException - raised on errors performing I/O.protected void parseOwnerGroup(java.lang.String ownerStr)
ownerStr - string describing new ownershipprotected void processPath(PathData item) throws java.io.IOException
CommandprocessPath in class Commanditem - a PathData objectjava.io.IOException - if anything else goes wrong in the user-implementationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.