Package org.apache.sentry.core.model.search

Examples of org.apache.sentry.core.model.search.SearchModelAuthorizable


  public static Iterable<SearchModelAuthorizable> parseRole(String string) {
    List<SearchModelAuthorizable> result = Lists.newArrayList();
    for(String section : AUTHORIZABLE_SPLITTER.split(string)) {
      // XXX this ugly hack is because action is not an authorizeable
      if(!section.toLowerCase().startsWith(PRIVILEGE_PREFIX)) {
        SearchModelAuthorizable authorizable = SearchModelAuthorizables.from(section);
        if(authorizable == null) {
          String msg = "No authorizable found for " + section;
          throw new ConfigurationException(msg);
        }
        result.add(authorizable);
View Full Code Here


    List<SearchModelAuthorizable> result = Lists.newArrayList();
    System.err.println("privilege = " + string);
    for(String section : AUTHORIZABLE_SPLITTER.split(string)) {
      // XXX this ugly hack is because action is not an authorizable
      if(!section.toLowerCase().startsWith(PRIVILEGE_PREFIX)) {
        SearchModelAuthorizable authorizable = SearchModelAuthorizables.from(section);
        if(authorizable == null) {
          String msg = "No authorizable found for " + section;
          throw new ConfigurationException(msg);
        }
        result.add(authorizable);
View Full Code Here

TOP

Related Classes of org.apache.sentry.core.model.search.SearchModelAuthorizable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.