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

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ImageIO (javax.imageio)
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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