Tabnine Logo
MSentryGMPrivilege.isNULL
Code IndexAdd Tabnine to your IDE (free)

How to use
isNULL
method
in
org.apache.sentry.provider.db.service.model.MSentryGMPrivilege

Best Java code snippets using org.apache.sentry.provider.db.service.model.MSentryGMPrivilege.isNULL (Showing top 2 results out of 315)

origin: apache/sentry

/**
 * Only allow strict hierarchies. That is, can level =1 be not null when level = 0 is null
 * @param authorizables
 */
public void setAuthorizables(List<? extends Authorizable> authorizables) {
 if (authorizables == null || authorizables.isEmpty()) {
  //service scope
  scope = SERVICE_SCOPE;
  return;
 }
 if (authorizables.size() > AUTHORIZABLE_LEVEL) {
  throw new IllegalStateException("This generic privilege model only supports maximum 4 level.");
 }
 for (int i = 0; i < authorizables.size(); i++) {
  Authorizable authorizable = authorizables.get(i);
  if (authorizable == null) {
   String msg = String.format("The authorizable can't be null. Please check authorizables[%d]:", i);
   throw new IllegalStateException(msg);
  }
  String resourceName = authorizable.getName();
  String resourceTYpe = authorizable.getTypeName();
  if (isNULL(resourceName) || isNULL(resourceTYpe)) {
   String msg = String.format("The name and type of authorizable can't be empty or null.Please check authorizables[%d]", i);
   throw new IllegalStateException(msg);
  }
  setField(this, PREFIX_RESOURCE_NAME + String.valueOf(i), toNULLCol(resourceName));
  setField(this, PREFIX_RESOURCE_TYPE + String.valueOf(i), toNULLCol(resourceTYpe));
  scope = resourceTYpe;
 }
}
origin: apache/incubator-sentry

/**
 * Only allow strict hierarchies. That is, can level =1 be not null when level = 0 is null
 * @param authorizables
 */
public void setAuthorizables(List<? extends Authorizable> authorizables) {
 if (authorizables == null || authorizables.isEmpty()) {
  //service scope
  scope = SERVICE_SCOPE;
  return;
 }
 if (authorizables.size() > AUTHORIZABLE_LEVEL) {
  throw new IllegalStateException("This generic privilege model only supports maximum 4 level.");
 }
 for (int i = 0; i < authorizables.size(); i++) {
  Authorizable authorizable = authorizables.get(i);
  if (authorizable == null) {
   String msg = String.format("The authorizable can't be null. Please check authorizables[%d]:", i);
   throw new IllegalStateException(msg);
  }
  String resourceName = authorizable.getName();
  String resourceTYpe = authorizable.getTypeName();
  if (isNULL(resourceName) || isNULL(resourceTYpe)) {
   String msg = String.format("The name and type of authorizable can't be empty or null.Please check authorizables[%d]", i);
   throw new IllegalStateException(msg);
  }
  setField(this, PREFIX_RESOURCE_NAME + String.valueOf(i), toNULLCol(resourceName));
  setField(this, PREFIX_RESOURCE_TYPE + String.valueOf(i), toNULLCol(resourceTYpe));
  scope = resourceTYpe;
 }
}
org.apache.sentry.provider.db.service.modelMSentryGMPrivilegeisNULL

Popular methods of MSentryGMPrivilege

  • <init>
  • appendRole
  • implies
    Return true if this privilege implies request privilege Otherwise, return false
  • removeRole
  • setAction
  • setAuthorizables
    Only allow strict hierarchies. That is, can level =1 be not null when level = 0 is null
  • getAction
  • getAuthorizables
  • getComponentName
  • getField
  • getGrantOption
  • getRoles
  • getGrantOption,
  • getRoles,
  • getScope,
  • getServiceName,
  • notNULL,
  • setComponentName,
  • setField,
  • setGrantOption,
  • setRoles

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Top Vim 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