com.atlassian.jira.plugin.searchrequestview.auth
Interface Authorizer
- All Known Implementing Classes:
- AuthorizerImpl
public interface Authorizer
Authorise that a SearchRequest may be permitted.
Nested Class Summary |
static class |
Authorizer.Failure
Convenient impl for failures |
static interface |
Authorizer.Result
ResultObject that encapsulates the result and the reason if something is not OK. |
ALWAYS
static final Authorizer ALWAYS
isSearchRequestAuthorized
Authorizer.Result isSearchRequestAuthorized(com.atlassian.crowd.embedded.api.User user,
SearchRequest searchRequest,
SearchRequestParams params)
- Can the specified user perform this SearchRequest?
- Parameters:
user
- who is trying to perform thesearchRequest
- they are attemptingparams
- the parameters for the search (such as tempMax etc)
- Returns:
- Result that says yay or nay, must not be null
Copyright © 2002-2012 Atlassian. All Rights Reserved.