Package com.mapr.cli
Class AclCommands
- java.lang.Object
-
- com.mapr.cliframework.base.CLIBaseClass
-
- com.mapr.cli.AclCommands
-
- All Implemented Interfaces:
com.mapr.cliframework.base.CLIInterface
public class AclCommands extends com.mapr.cliframework.base.CLIBaseClass implements com.mapr.cliframework.base.CLIInterface
-
-
Field Summary
Fields Modifier and Type Field Description static com.mapr.cliframework.base.CLICommandaclCommands
-
Constructor Summary
Constructors Constructor Description AclCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<com.mapr.fs.proto.Security.AclEntry>actionsToAcls(java.util.List<java.lang.String> perms, com.mapr.security.UnixUserGroupHelper uInfo, com.mapr.fs.cldb.proto.CLDBProto.SecureObjectType objType, boolean isUser, com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)com.mapr.cliframework.base.CommandOutputexecuteRealCommand()static com.mapr.cliframework.base.CommandOutput.OutputHierarchyformatAcl(com.mapr.fs.proto.Security.AccessControlList acl, com.mapr.fs.cldb.proto.CLDBProto.SecureObjectType objType, java.lang.String outputFormat, com.mapr.security.UnixUserGroupHelper uInfo, java.util.List<java.lang.Integer> unknownUids, java.util.List<java.lang.Integer> unknownGids)java.lang.StringgetCommandUsage()byte[]sendRpcToPolicyServer(int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass)-
Methods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, validateInput
-
-
-
-
Method Detail
-
formatAcl
public static com.mapr.cliframework.base.CommandOutput.OutputHierarchy formatAcl(com.mapr.fs.proto.Security.AccessControlList acl, com.mapr.fs.cldb.proto.CLDBProto.SecureObjectType objType, java.lang.String outputFormat, com.mapr.security.UnixUserGroupHelper uInfo, java.util.List<java.lang.Integer> unknownUids, java.util.List<java.lang.Integer> unknownGids)
-
sendRpcToPolicyServer
public byte[] sendRpcToPolicyServer(int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass) throws java.lang.Exception- Throws:
java.lang.Exception
-
actionsToAcls
public static java.util.List<com.mapr.fs.proto.Security.AclEntry> actionsToAcls(java.util.List<java.lang.String> perms, com.mapr.security.UnixUserGroupHelper uInfo, com.mapr.fs.cldb.proto.CLDBProto.SecureObjectType objType, boolean isUser, com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingException- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
getCommandUsage
public java.lang.String getCommandUsage()
- Overrides:
getCommandUsagein classcom.mapr.cliframework.base.CLIBaseClass
-
-