Tabnine Logo
BitFieldActionFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
BitFieldActionFactory
in
org.apache.sentry.core.common

Best Java code snippets using org.apache.sentry.core.common.BitFieldActionFactory (Showing top 7 results out of 315)

origin: apache/sentry

private boolean impliesAction(String policyValue, String requestValue,
               BitFieldActionFactory bitFieldActionFactory) {
 BitFieldAction currentAction;
 BitFieldAction requestAction;
 try {
  currentAction = bitFieldActionFactory.getActionByName(policyValue);
  requestAction = bitFieldActionFactory.getActionByName(requestValue);
 } catch (SentryUserException e) {
  return false;
 }
 // the action in privilege is not supported
 if (currentAction == null || requestAction == null) {
  return false;
 }
 return currentAction.implies(requestAction);
}
origin: apache/sentry

List<? extends BitFieldAction> actions = getActionFactory(component).getActionsByCode(allAction.getActionCode());
for (BitFieldAction ac : actions) {
 grantPrivilege.setAction(ac.getValue());
origin: apache/incubator-sentry

List<? extends BitFieldAction> actions = getActionFactory(component).getActionsByCode(allAction.getActionCode());
for (BitFieldAction ac : actions) {
 grantPrivilege.setAction(ac.getValue());
origin: apache/incubator-sentry

private BitFieldAction getAction(String component, String name) {
 BitFieldActionFactory actionFactory = getActionFactory(component);
 BitFieldAction action = actionFactory.getActionByName(name);
 if (action == null) {
  throw new RuntimeException("can't get BitFieldAction for name:" + name);
 }
 return action;
}
origin: apache/incubator-sentry

pm.makePersistent(persistedPriv);
List<? extends BitFieldAction> actions = getActionFactory(component).getActionsByCode(allAction.getActionCode());
for (BitFieldAction ac: actions) {
 if (ac.getActionCode() != revokeaction.getActionCode()) {
origin: apache/sentry

private BitFieldAction getAction(String component, String name) throws SentryUserException {
 BitFieldActionFactory actionFactory = getActionFactory(component);
 BitFieldAction action = actionFactory.getActionByName(name);
 if (action == null) {
  throw new SentryUserException("Can not get BitFieldAction for name: " + name);
 }
 return action;
}
origin: apache/sentry

pm.makePersistent(persistedPriv);
List<? extends BitFieldAction> actions = getActionFactory(component).getActionsByCode(allAction.getActionCode());
for (BitFieldAction ac: actions) {
 if (ac.getActionCode() != revokeaction.getActionCode()) {
org.apache.sentry.core.commonBitFieldActionFactory

Most used methods

  • getActionByName
    Get the BitFieldAction from the given name
  • getActionsByCode
    Get BitFieldAction list by the given action code. Take the Solr for example, the ALL action code is

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Reference (javax.naming)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text 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