Tabnine Logo
AuditMetadataLogEntity.setAllowed
Code IndexAdd Tabnine to your IDE (free)

How to use
setAllowed
method
in
org.apache.sentry.provider.db.log.entity.AuditMetadataLogEntity

Best Java code snippets using org.apache.sentry.provider.db.log.entity.AuditMetadataLogEntity.setAllowed (Showing top 2 results out of 315)

origin: apache/incubator-sentry

 private void setCommAttrForAMLE(AuditMetadataLogEntity amle, Configuration conf,
   TSentryResponseStatus responseStatus, String userName, String requestClassName) {
  amle.setUserName(userName);
  amle.setServiceName(conf.get(ServerConfig.SENTRY_SERVICE_NAME,
    ServerConfig.SENTRY_SERVICE_NAME_DEFAULT).trim());
  amle.setImpersonator(ThriftUtil.getImpersonator());
  amle.setIpAddress(ThriftUtil.getIpAddress());
  amle.setOperation(Constants.requestTypeToOperationMap.get(requestClassName));
  amle.setEventTime(Long.toString(System.currentTimeMillis()));
  amle.setAllowed(isAllowed(responseStatus));
  amle.setObjectType(Constants.requestTypeToObjectTypeMap
    .get(requestClassName));
 }
}
origin: apache/sentry

private void setCommAttrForAMLE(AuditMetadataLogEntity amle, Configuration conf,
  TSentryResponseStatus responseStatus, String userName, String operationType, String objectType) {
 amle.setUserName(userName);
 amle.setServiceName(conf.get(ServerConfig.SENTRY_SERVICE_NAME,
   ServerConfig.SENTRY_SERVICE_NAME_DEFAULT).trim());
 amle.setImpersonator(ThriftUtil.getImpersonator());
 amle.setIpAddress(ThriftUtil.getIpAddress());
 amle.setOperation(operationType);
 amle.setEventTime(Long.toString(System.currentTimeMillis()));
 amle.setAllowed(isAllowed(responseStatus));
 amle.setObjectType(objectType);
}
org.apache.sentry.provider.db.log.entityAuditMetadataLogEntitysetAllowed

Popular methods of AuditMetadataLogEntity

  • parse
    For use in tests
  • setEventTime
  • setImpersonator
  • setIpAddress
  • setObjectType
  • setOperation
  • setServiceName
  • setUserName
  • setOperationText

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JLabel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best Atom Packages for 2021
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