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

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

Best Java code snippets using org.apache.sentry.provider.db.service.model.MSentryPrivilege.setPrivilegeScope (Showing top 13 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/incubator-sentry

for (Object[] privObj : (List<Object[]>) query.execute()) {
 MSentryPrivilege priv = new MSentryPrivilege();
 priv.setPrivilegeScope((String) privObj[0]);
 priv.setServerName((String) privObj[1]);
 priv.setDbName((String) privObj[2]);
origin: apache/sentry

/**
 * Converts thrift object to model object. Additionally does normalization
 * such as trimming whitespace and setting appropriate case.
 * @throws SentryInvalidInputException
 */
private MSentryPrivilege convertToMSentryPrivilege(TSentryPrivilege privilege)
  throws SentryInvalidInputException {
 MSentryPrivilege mSentryPrivilege = new MSentryPrivilege();
 mSentryPrivilege.setServerName(toNULLCol(safeTrimLower(privilege.getServerName())));
 mSentryPrivilege.setDbName(toNULLCol(safeTrimLower(privilege.getDbName())));
 mSentryPrivilege.setTableName(toNULLCol(safeTrimLower(privilege.getTableName())));
 mSentryPrivilege.setColumnName(toNULLCol(safeTrimLower(privilege.getColumnName())));
 mSentryPrivilege.setPrivilegeScope(safeTrim(privilege.getPrivilegeScope()));
 mSentryPrivilege.setAction(toNULLCol(safeTrimLower(privilege.getAction())));
 mSentryPrivilege.setCreateTime(System.currentTimeMillis());
 mSentryPrivilege.setURI(toNULLCol(safeTrim(privilege.getURI())));
 if ( !privilege.getGrantOption().equals(TSentryGrantOption.UNSET) ) {
  mSentryPrivilege.setGrantOption(Boolean.valueOf(privilege.getGrantOption().toString()));
 } else {
  mSentryPrivilege.setGrantOption(null);
 }
 return mSentryPrivilege;
}
origin: apache/incubator-sentry

/**
 * Converts thrift object to model object. Additionally does normalization
 * such as trimming whitespace and setting appropriate case.
 * @throws SentryInvalidInputException
 */
private MSentryPrivilege convertToMSentryPrivilege(TSentryPrivilege privilege)
  throws SentryInvalidInputException {
 MSentryPrivilege mSentryPrivilege = new MSentryPrivilege();
 mSentryPrivilege.setServerName(toNULLCol(safeTrimLower(privilege.getServerName())));
 mSentryPrivilege.setDbName(toNULLCol(safeTrimLower(privilege.getDbName())));
 mSentryPrivilege.setTableName(toNULLCol(safeTrimLower(privilege.getTableName())));
 mSentryPrivilege.setColumnName(toNULLCol(safeTrimLower(privilege.getColumnName())));
 mSentryPrivilege.setPrivilegeScope(safeTrim(privilege.getPrivilegeScope()));
 mSentryPrivilege.setAction(toNULLCol(safeTrimLower(privilege.getAction())));
 mSentryPrivilege.setCreateTime(System.currentTimeMillis());
 mSentryPrivilege.setURI(toNULLCol(safeTrim(privilege.getURI())));
 if ( !privilege.getGrantOption().equals(TSentryGrantOption.UNSET) ) {
  mSentryPrivilege.setGrantOption(Boolean.valueOf(privilege.getGrantOption().toString()));
 } else {
  mSentryPrivilege.setGrantOption(null);
 }
 return mSentryPrivilege;
}
private static String safeTrim(String s) {
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
origin: apache/incubator-sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
origin: apache/incubator-sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
origin: apache/incubator-sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
origin: apache/sentry

hivePrivilege.setDbName("db1");
hivePrivilege.setTableName("tb1");
hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
org.apache.sentry.provider.db.service.modelMSentryPrivilegesetPrivilegeScope

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,
  • setServerName,
  • setTableName,
  • setURI,
  • appendPrincipal,
  • appendRole,
  • getCreateTime,
  • getPrivilegeScope

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • orElseThrow (Optional)
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Notification (javax.management)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 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