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.
 
Field Summary
static Authorizer ALWAYS
           
 
Method Summary
 Authorizer.Result isSearchRequestAuthorized(com.atlassian.crowd.embedded.api.User user, SearchRequest searchRequest, SearchRequestParams params)
          Can the specified user perform this SearchRequest?
 

Field Detail

ALWAYS

static final Authorizer ALWAYS
Method Detail

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 the
searchRequest - they are attempting
params - the parameters for the search (such as tempMax etc)
Returns:
Result that says yay or nay, must not be null


Copyright © 2002-2013 Atlassian. All Rights Reserved.