Tabnine Logo
JsonLogEntityFactory.createJsonLogEntities
Code IndexAdd Tabnine to your IDE (free)

How to use
createJsonLogEntities
method
in
org.apache.sentry.provider.db.log.entity.JsonLogEntityFactory

Best Java code snippets using org.apache.sentry.provider.db.log.entity.JsonLogEntityFactory.createJsonLogEntities (Showing top 4 results out of 315)

origin: apache/sentry

/**
 * Creates an audit log for the revoke role privilege event.
 *
 * @param request The revoke role privilege request received by the Sentry server.
 * @param response The revoke role privilege response generated by the Sentry server.
 */
public void onRevokeRolePrivilege(TAlterSentryRoleRevokePrivilegeRequest request, TAlterSentryRoleRevokePrivilegeResponse response) {
 try {
  info(JSON_LOG_ENTITY.createJsonLogEntities(request, response, conf));
 } catch (Exception e) {
  String msg = "Cannot generate an audit log for revoke role privilege: " + e.getMessage();
  ERROR_LOGGER.error(msg, e);
 }
}
origin: apache/sentry

/**
 * Creates an audit log for the grant role privilege event.
 *
 * @param request The grant role privilege request received by the Sentry server.
 * @param response The grant role privilege response generated by the Sentry server.
 */
public void onGrantRolePrivilege(TAlterSentryRoleGrantPrivilegeRequest request, TAlterSentryRoleGrantPrivilegeResponse response) {
 try {
  info(JSON_LOG_ENTITY.createJsonLogEntities(request, response, conf));
 } catch (Exception e) {
  String msg = "Cannot generate an audit log for grant role privilege: " + e.getMessage();
  ERROR_LOGGER.error(msg, e);
 }
}
origin: apache/sentry

DBAuditMetadataLogEntity amle = new DBAuditMetadataLogEntity();
Set<JsonLogEntity> amles =  JsonLogEntityFactory
  .getInstance().createJsonLogEntities(request, response, conf);
assertEquals(amles.size(),1);
amle = (DBAuditMetadataLogEntity) amles.iterator().next();
response.setStatus(Status.InvalidInput("", null));
amles =  JsonLogEntityFactory.getInstance()
  .createJsonLogEntities(request, response, conf);
assertEquals(amles.size(),1);
amle = (DBAuditMetadataLogEntity) amles.iterator().next();
origin: apache/sentry

DBAuditMetadataLogEntity amle = new DBAuditMetadataLogEntity();
Set<JsonLogEntity> amles =  JsonLogEntityFactory
  .getInstance().createJsonLogEntities(request, response, conf);
assertEquals(amles.size(),1);
amle = (DBAuditMetadataLogEntity) amles.iterator().next();
response.setStatus(Status.InvalidInput("", null));
amles =  JsonLogEntityFactory.getInstance()
  .createJsonLogEntities(request, response, conf);
assertEquals(amles.size(),1);
amle = (DBAuditMetadataLogEntity) amles.iterator().next();
org.apache.sentry.provider.db.log.entityJsonLogEntityFactorycreateJsonLogEntities

Popular methods of JsonLogEntityFactory

  • createJsonLogEntity
  • getInstance
  • createCommonGMAMLE
  • createCommonHAMLE
  • createJsonLogEntitys
  • getGroupsStr
  • isAllowed
  • setCommAttrForAMLE
  • getUsersStr
  • toObjectType
  • toOperationType
  • toOperationType

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 25 Plugins for Webstorm
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