Tabnine Logo
CommandUtil.createCmdForCreateOrDropRole
Code IndexAdd Tabnine 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)

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

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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