Tabnine Logo
MSentryPrivilege.setURI
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/incubator-sentry

priv.setTableName((String) privObj[3]);
priv.setColumnName((String) privObj[4]);
priv.setURI((String) privObj[5]);
priv.setAction((String) privObj[6]);
priv.setGrantOption((Boolean) privObj[7]);
origin: apache/sentry

my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/../../other");
assertFalse(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/../../other");
assertFalse(my.implies(your));
my.setURI("blah");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path/to/some/dir");
your.setURI("blah");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file:///path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode1:9000/path");
your.setURI("hdfs://namenode2:9000/path");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9001/path");
assertFalse(my.implies(your));
origin: apache/incubator-sentry

my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/../../other");
assertFalse(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/../../other");
assertFalse(my.implies(your));
my.setURI("blah");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path/to/some/dir");
your.setURI("blah");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file:///path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("file://namenode:9000/path/to/some/dir");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode1:9000/path");
your.setURI("hdfs://namenode2:9000/path");
assertFalse(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9001/path");
assertFalse(my.implies(your));
origin: apache/incubator-sentry

your.setServerName("server1");
your.setAction(actionMap[actions][1]);
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path");
assertTrue(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("");
your.setURI("file:///path");
assertTrue(my.implies(your));
origin: apache/sentry

your.setServerName("server1");
your.setAction(actionMap[actions][1]);
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path");
assertTrue(my.implies(your));
my.setURI("hdfs://namenode:9000/path");
your.setURI("hdfs://namenode:9000/path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path");
assertTrue(my.implies(your));
my.setURI("file:///path");
your.setURI("file:///path/to/some/dir");
assertTrue(my.implies(your));
my.setURI("");
your.setURI("file:///path");
assertTrue(my.implies(your));
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.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/incubator-sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryStore.NULL_COL);
hivePrivilege.setColumnName(SentryStore.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
origin: apache/sentry

hivePrivilege.setPrivilegeScope("table");
hivePrivilege.setAction("select");
hivePrivilege.setURI(SentryConstants.NULL_COL);
hivePrivilege.setColumnName(SentryConstants.NULL_COL);
hivePrivilege.setGrantOption(true);
org.apache.sentry.provider.db.service.modelMSentryPrivilegesetURI

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

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top PhpStorm 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