Tabnine Logo
CommandUtil.createCmdForRoleDeleteGroup
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.provider.db.generic.service.thrift.TAlterSentryRoleDeleteGroupsRequest request,
  org.apache.sentry.provider.db.generic.service.thrift.TAlterSentryRoleDeleteGroupsResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 Joiner joiner = Joiner.on(",");
 String groups = joiner.join(request.getGroupsIterator());
 gmamle.setOperationText(CommandUtil.createCmdForRoleDeleteGroup(request.getRoleName(), groups));
 return gmamle;
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(
  org.apache.sentry.api.generic.thrift.TAlterSentryRoleDeleteGroupsRequest request,
  org.apache.sentry.api.generic.thrift.TAlterSentryRoleDeleteGroupsResponse response,
  Configuration conf) {
 GMAuditMetadataLogEntity gmamle = createCommonGMAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName(), request.getComponent());
 Joiner joiner = Joiner.on(",");
 String groups = joiner.join(request.getGroupsIterator());
 gmamle.setOperationText(CommandUtil.createCmdForRoleDeleteGroup(request.getRoleName(), groups));
 return gmamle;
}
origin: apache/incubator-sentry

public JsonLogEntity createJsonLogEntity(
  TAlterSentryRoleDeleteGroupsRequest request,
  TAlterSentryRoleDeleteGroupsResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 String groups = getGroupsStr(request.getGroupsIterator());
 hamle.setOperationText(CommandUtil.createCmdForRoleDeleteGroup(request.getRoleName(), groups));
 return hamle;
}
origin: apache/sentry

public JsonLogEntity createJsonLogEntity(
  TAlterSentryRoleDeleteGroupsRequest request,
  TAlterSentryRoleDeleteGroupsResponse response, Configuration conf) {
 DBAuditMetadataLogEntity hamle = createCommonHAMLE(conf, response.getStatus(),
   request.getRequestorUserName(), request.getClass().getName());
 String groups = getGroupsStr(request.getGroupsIterator());
 hamle.setOperationText(CommandUtil.createCmdForRoleDeleteGroup(request.getRoleName(), groups));
 return hamle;
}
origin: apache/sentry

@Test
public void testCreateCmdForRoleAddOrDeleteGroup1() {
 String createRoleAddGroupCmdResult = CommandUtil.createCmdForRoleAddGroup("testRole",
   getGroupStr(1));
 String createRoleAddGroupCmdExcepted = "GRANT ROLE testRole TO GROUP testGroup1";
 String createRoleDeleteGroupCmdResult = CommandUtil.createCmdForRoleDeleteGroup("testRole",
   getGroupStr(1));
 String createRoleDeleteGroupCmdExcepted = "REVOKE ROLE testRole FROM GROUP testGroup1";
 assertEquals(createRoleAddGroupCmdExcepted, createRoleAddGroupCmdResult);
 assertEquals(createRoleDeleteGroupCmdExcepted,
   createRoleDeleteGroupCmdResult);
}
origin: apache/incubator-sentry

@Test
public void testCreateCmdForRoleAddOrDeleteGroup2() {
 String createRoleAddGroupCmdResult = CommandUtil.createCmdForRoleAddGroup("testRole",
   getGroupStr(3));
 String createRoleAddGroupCmdExcepted = "GRANT ROLE testRole TO GROUP testGroup1, testGroup2, testGroup3";
 String createRoleDeleteGroupCmdResult = CommandUtil.createCmdForRoleDeleteGroup("testRole",
   getGroupStr(3));
 String createRoleDeleteGroupCmdExcepted = "REVOKE ROLE testRole FROM GROUP testGroup1, testGroup2, testGroup3";
 assertEquals(createRoleAddGroupCmdExcepted, createRoleAddGroupCmdResult);
 assertEquals(createRoleDeleteGroupCmdExcepted,
   createRoleDeleteGroupCmdResult);
}
origin: apache/incubator-sentry

@Test
public void testCreateCmdForRoleAddOrDeleteGroup1() {
 String createRoleAddGroupCmdResult = CommandUtil.createCmdForRoleAddGroup("testRole",
   getGroupStr(1));
 String createRoleAddGroupCmdExcepted = "GRANT ROLE testRole TO GROUP testGroup1";
 String createRoleDeleteGroupCmdResult = CommandUtil.createCmdForRoleDeleteGroup("testRole",
   getGroupStr(1));
 String createRoleDeleteGroupCmdExcepted = "REVOKE ROLE testRole FROM GROUP testGroup1";
 assertEquals(createRoleAddGroupCmdExcepted, createRoleAddGroupCmdResult);
 assertEquals(createRoleDeleteGroupCmdExcepted,
   createRoleDeleteGroupCmdResult);
}
origin: apache/sentry

@Test
public void testCreateCmdForRoleAddOrDeleteGroup2() {
 String createRoleAddGroupCmdResult = CommandUtil.createCmdForRoleAddGroup("testRole",
   getGroupStr(3));
 String createRoleAddGroupCmdExcepted = "GRANT ROLE testRole TO GROUP testGroup1, testGroup2, testGroup3";
 String createRoleDeleteGroupCmdResult = CommandUtil.createCmdForRoleDeleteGroup("testRole",
   getGroupStr(3));
 String createRoleDeleteGroupCmdExcepted = "REVOKE ROLE testRole FROM GROUP testGroup1, testGroup2, testGroup3";
 assertEquals(createRoleAddGroupCmdExcepted, createRoleAddGroupCmdResult);
 assertEquals(createRoleDeleteGroupCmdExcepted,
   createRoleDeleteGroupCmdResult);
}
org.apache.sentry.provider.db.log.utilCommandUtilcreateCmdForRoleDeleteGroup

Popular methods of CommandUtil

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • 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
  • JList (javax.swing)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now