com.atlassian.jira.plugin.searchrequestview.auth
Class Authorizer.Failure

java.lang.Object
  extended by com.atlassian.jira.plugin.searchrequestview.auth.Authorizer.Failure
All Implemented Interfaces:
Authorizer.Result
Enclosing interface:
Authorizer

public static class Authorizer.Failure
extends Object
implements Authorizer.Result

Convenient impl for failures


Field Summary
 
Fields inherited from interface com.atlassian.jira.plugin.searchrequestview.auth.Authorizer.Result
OK
 
Method Summary
 String getReason()
           
 boolean isOK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isOK

public boolean isOK()
Specified by:
isOK in interface Authorizer.Result
Returns:
boolean whether it is ok to proceed with this SearchRequest

getReason

public String getReason()
Specified by:
getReason in interface Authorizer.Result
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-2012 Atlassian. All Rights Reserved.