Codota Logo
CommandUtil.createCmdForCreateOrDropRole
Code IndexAdd Codota to your IDE (free)

How to use
createCmdForCreateOrDropRole
method
in
org.apache.sentry.provider.db.log.util.CommandUtil

Best Java code snippets using org.apache.sentry.provider.db.log.util.CommandUtil.createCmdForCreateOrDropRole (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(TDropSentryRoleRequest request,
  TDropSentryRoleResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 hamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(
   request.getRoleName(), false));
 return hamle;
}
origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(TDropSentryRoleRequest request,
  TDropSentryRoleResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 hamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(
   request.getRoleName(), false));
 return hamle;
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(TCreateSentryRoleRequest request,
  TCreateSentryRoleResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 hamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(
   request.getRoleName(), true));
 return hamle;
}
origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(TCreateSentryRoleRequest request,
  TCreateSentryRoleResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 hamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(
   request.getRoleName(), true));
 return hamle;
}
origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.provider.db.generic.service.thrift.TDropSentryRoleRequest request,
  org.apache.sentry.provider.db.generic.service.thrift.TDropSentryRoleResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 gmamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(request.getRoleName(), false));
 return gmamle;
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.api.generic.thrift.TDropSentryRoleRequest request,
  org.apache.sentry.api.generic.thrift.TDropSentryRoleResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 gmamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(request.getRoleName(), false));
 return gmamle;
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.api.generic.thrift.TCreateSentryRoleRequest request,
  org.apache.sentry.api.generic.thrift.TCreateSentryRoleResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 gmamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(request.getRoleName(), true));
 return gmamle;
}
origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.provider.db.generic.service.thrift.TCreateSentryRoleRequest request,
  org.apache.sentry.provider.db.generic.service.thrift.TCreateSentryRoleResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 gmamle.setOperationText(CommandUtil.createCmdForCreateOrDropRole(request.getRoleName(), true));
 return gmamle;
}
origin: apache/sentry

@Test
public void testCreateCmdForCreateOrDropRole() {
 String roleName = "testRole";
 String createRoleCmdResult = CommandUtil.createCmdForCreateOrDropRole(
   roleName, true);
 String dropRoleCmdResult = CommandUtil.createCmdForCreateOrDropRole(
   roleName, false);
 String createRoleCmdExcepted = "CREATE ROLE testRole";
 String dropRoleCmdExcepted = "DROP ROLE testRole";
 assertEquals(createRoleCmdExcepted, createRoleCmdResult);
 assertEquals(dropRoleCmdResult, dropRoleCmdExcepted);
}
origin: apache/incubator-sentry

@Test
public void testCreateCmdForCreateOrDropRole() {
 String roleName = "testRole";
 String createRoleCmdResult = CommandUtil.createCmdForCreateOrDropRole(
   roleName, true);
 String dropRoleCmdResult = CommandUtil.createCmdForCreateOrDropRole(
   roleName, false);
 String createRoleCmdExcepted = "CREATE ROLE testRole";
 String dropRoleCmdExcepted = "DROP ROLE testRole";
 assertEquals(createRoleCmdExcepted, createRoleCmdResult);
 assertEquals(dropRoleCmdResult, dropRoleCmdExcepted);
}
org.apache.sentry.provider.db.log.utilCommandUtilcreateCmdForCreateOrDropRole

Popular methods of CommandUtil

  • createCmdForGrantGMPrivilege
  • createCmdForGrantPrivilege
  • createCmdForRevokeGMPrivilege
  • createCmdForRevokePrivilege
  • createCmdForRoleAddGroup
  • createCmdForRoleDeleteGroup
  • assertIPInAuditLog
  • createCmdForGrantOrRevokeGMPrivilege
  • createCmdForGrantOrRevokePrivilege
  • createCmdForGrantOrRevokePrivileges
  • createCmdForRoleAddUser
  • createCmdForRoleDeleteUser
  • createCmdForRoleAddUser,
  • createCmdForRoleDeleteUser,
  • createCmdForImplicitGrantOwnerPrivilege,
  • createCmdForImplicitTransferOwnerPrivilege,
  • createCmdForRoleAddOrDeleteGroup,
  • createCmdForRoleGrant

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getContentResolver (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now