Codota Logo
MSentryPrivilege.appendPrincipal
Code IndexAdd Codota to your IDE (free)

How to use
appendPrincipal
method
in
org.apache.sentry.provider.db.service.model.MSentryPrivilege

Best Java code snippets using org.apache.sentry.provider.db.service.model.MSentryPrivilege.appendPrincipal (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: apache/sentry

public void appendPrivilege(MSentryPrivilege privilege) {
 if (privileges.add(privilege)) {
  privilege.appendPrincipal(this);
 }
}
origin: apache/sentry

public void appendPrivilege(MSentryPrivilege privilege) {
 if (privileges.add(privilege)) {
  privilege.appendPrincipal(this);
 }
}
origin: apache/sentry

 mPrivilege = convertToMSentryPrivilege(privilege);
mPrivilege.appendPrincipal(mEntity);
pm.makePersistent(mPrivilege);
return mPrivilege;
origin: apache/sentry

private void revokePrivilegeAndGrantPartial(PersistenceManager pm, PrivilegePrincipal mEntity,
                      MSentryPrivilege currentPrivilege,
                      MSentryPrivilege persistedPriv,
                      Set<String> addActions) throws SentryInvalidInputException {
 // If table / URI, remove ALL
 persistedPriv = getMSentryPrivilege(convertToTSentryPrivilege(persistedPriv), pm);
 if (persistedPriv != null) {
  persistedPriv.removePrincipal(mEntity);
  persistPrivilege(pm, persistedPriv);
 }
 currentPrivilege.setAction(AccessConstants.ALL);
 persistedPriv = getMSentryPrivilege(convertToTSentryPrivilege(currentPrivilege), pm);
 if (persistedPriv != null && mEntity.getPrivileges().contains(persistedPriv)) {
  persistedPriv.removePrincipal(mEntity);
  persistPrivilege(pm, persistedPriv);
  // add decomposed actions
  for (String addAction : addActions) {
   currentPrivilege.setAction(addAction);
   TSentryPrivilege tSentryPrivilege = convertToTSentryPrivilege(currentPrivilege);
   persistedPriv = getMSentryPrivilege(tSentryPrivilege, pm);
   if (persistedPriv == null) {
    persistedPriv = convertToMSentryPrivilege(tSentryPrivilege);
   }
   mEntity.appendPrivilege(persistedPriv);
  }
  persistedPriv.appendPrincipal(mEntity);
  pm.makePersistent(persistedPriv);
 }
}
origin: apache/sentry

hivePrivilege.appendPrincipal(role);
solrPrivilege.appendRole(role);
pm.makePersistent(hivePrivilege);
origin: apache/sentry

hivePrivilege.appendPrincipal(role);
pm.makePersistent(hivePrivilege);
commitTransaction(pm);
origin: apache/sentry

MSentryRole role = getMSentryRole(pm, roleName);
solrPrivilege.appendRole(role);
hivePrivilege.appendPrincipal(role);
pm.makePersistent(solrPrivilege);
pm.makePersistent(hivePrivilege);
origin: apache/sentry

MSentryRole role1 = getMSentryRole(pm, roleName1);
MSentryRole role2 = getMSentryRole(pm, roleName2);
hivePrivilege.appendPrincipal(role1);
solrPrivilege.appendRole(role1);
hivePrivilege.appendPrincipal(role2);
solrPrivilege.appendRole(role2);
pm.makePersistent(hivePrivilege);
origin: apache/sentry

hivePrivilege.appendPrincipal(role);
solrPrivilege.appendRole(role);
pm.makePersistent(hivePrivilege);
origin: apache/sentry

hivePrivilege.appendPrincipal(role);
solrPrivilege.appendRole(role);
pm.makePersistent(hivePrivilege);
org.apache.sentry.provider.db.service.modelMSentryPrivilegeappendPrincipal

Javadoc

Appends Role/User in the privilege.

Popular methods of MSentryPrivilege

  • <init>
  • getAction
  • getColumnName
  • getDbName
  • getGrantOption
  • getServerName
  • getTableName
  • implies
    Return true if this privilege implies other privilege Otherwise, return false
  • setAction
  • setColumnName
  • setDbName
  • setGrantOption
  • setDbName,
  • setGrantOption,
  • setPrivilegeScope,
  • setServerName,
  • setTableName,
  • setURI,
  • appendRole,
  • getCreateTime,
  • getPrivilegeScope

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now