Package com.mapr.cli

Class 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.CLICommand aclCommands  
      • Fields inherited from class com.mapr.cliframework.base.CLIBaseClass

        cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, version
      • Fields inherited from interface com.mapr.cliframework.base.CLIInterface

        PASSWORD_PREFIX
    • 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.CommandOutput executeRealCommand()  
      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)  
      java.lang.String getCommandUsage()  
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.mapr.cliframework.base.CLIInterface

        executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setVersion, validateInput
    • Field Detail

      • aclCommands

        public static final com.mapr.cliframework.base.CLICommand aclCommands
    • Constructor Detail

      • AclCommands

        public AclCommands​(com.mapr.cliframework.base.ProcessedInput input,
                           com.mapr.cliframework.base.CLICommand cliCommand)
    • 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:
        executeRealCommand in class com.mapr.cliframework.base.CLIBaseClass
        Throws:
        com.mapr.cliframework.base.CLIProcessingException
      • getCommandUsage

        public java.lang.String getCommandUsage()
        Overrides:
        getCommandUsage in class com.mapr.cliframework.base.CLIBaseClass