com.atlassian.jira.plugin.searchrequestview.auth
Class AuthorizerImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.searchrequestview.auth.AuthorizerImpl
All Implemented Interfaces:
Authorizer

public class AuthorizerImpl
extends Object
implements Authorizer

The one we deploy for production, other impls have unit tests, this one builds an aggregate of those.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.plugin.searchrequestview.auth.Authorizer
Authorizer.Failure, Authorizer.Result
 
Field Summary
 
Fields inherited from interface com.atlassian.jira.plugin.searchrequestview.auth.Authorizer
ALWAYS
 
Constructor Summary
AuthorizerImpl(SearchProvider searchProvider, ApplicationProperties properties, GroupManager groupManager)
           
 
Method Summary
 Authorizer.Result isSearchRequestAuthorized(com.atlassian.crowd.embedded.api.User user, SearchRequest searchRequest, SearchRequestParams params)
          Can the specified user perform this SearchRequest?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizerImpl

public AuthorizerImpl(SearchProvider searchProvider,
                      ApplicationProperties properties,
                      GroupManager groupManager)
Method Detail

isSearchRequestAuthorized

public Authorizer.Result isSearchRequestAuthorized(com.atlassian.crowd.embedded.api.User user,
                                                   SearchRequest searchRequest,
                                                   SearchRequestParams params)
Description copied from interface: Authorizer
Can the specified user perform this SearchRequest?

Specified by:
isSearchRequestAuthorized in interface Authorizer
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.