Codota Logo
MSentryGMPrivilege.isNULL
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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