public class SecureRequestHandlerUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<org.apache.sentry.core.model.search.SearchModelAction> |
QUERY_AND_UPDATE |
static Set<org.apache.sentry.core.model.search.SearchModelAction> |
QUERY_ONLY |
static SentryIndexAuthorizationSingleton |
testOverride |
static Set<org.apache.sentry.core.model.search.SearchModelAction> |
UPDATE_ONLY |
| Constructor and Description |
|---|
SecureRequestHandlerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkSentryAdmin(SolrQueryRequest req,
Set<org.apache.sentry.core.model.search.SearchModelAction> andActions,
String operation,
boolean checkCollection,
String collection)
Attempt to authorize an administrative action.
|
static void |
checkSentryCollection(SolrQueryRequest req,
Set<org.apache.sentry.core.model.search.SearchModelAction> andActions,
String operation)
Attempt to authorize a collection action.
|
public static final Set<org.apache.sentry.core.model.search.SearchModelAction> QUERY_ONLY
public static final Set<org.apache.sentry.core.model.search.SearchModelAction> UPDATE_ONLY
public static final Set<org.apache.sentry.core.model.search.SearchModelAction> QUERY_AND_UPDATE
public static SentryIndexAuthorizationSingleton testOverride
public static void checkSentryAdmin(SolrQueryRequest req, Set<org.apache.sentry.core.model.search.SearchModelAction> andActions, String operation, boolean checkCollection, String collection)
req - request to checkandActions - set of actions to checkcheckCollection - check the collection the action is on, or only "admin"?collection - only relevant if checkCollection==true,
use collection (if non-null) instead pulling collection name from req (if null)public static void checkSentryCollection(SolrQueryRequest req, Set<org.apache.sentry.core.model.search.SearchModelAction> andActions, String operation)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.