com.atlassian.jira.plugin.searchrequestview.auth
Interface Authorizer.Result

All Known Implementing Classes:
Authorizer.Failure
Enclosing interface:
Authorizer

public static interface Authorizer.Result

ResultObject that encapsulates the result and the reason if something is not OK.


Field Summary
static Authorizer.Result OK
          Convenient placeholder for ok result.
 
Method Summary
 String getReason()
           
 boolean isOK()
           
 

Field Detail

OK

static final Authorizer.Result OK
Convenient placeholder for ok result.

Method Detail

isOK

boolean isOK()
Returns:
boolean whether it is ok to proceed with this SearchRequest

getReason

String getReason()
Returns:
If not ok, return a String message why not.

Note: this is deliberately not i18n as it ends up in a 403 http code which should be ASCII only to be specs compliant.



Copyright © 2002-2010 Atlassian. All Rights Reserved.