org.kuali.rice.kew.framework.document.security
Class Authorization

java.lang.Object
  extended by org.kuali.rice.kew.framework.document.security.Authorization

public final class Authorization
extends Object

Authorization response for document routing authorization checks

See Also:
DocumentTypeAuthorizer

Constructor Summary
Authorization(boolean authorized)
          Short-hand constructor for authorization without a reason
Authorization(boolean authorized, String reason)
          Construct authorization response with a reason
 
Method Summary
 String getReason()
           
 boolean isAuthorized()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Authorization

public Authorization(boolean authorized)
Short-hand constructor for authorization without a reason

Parameters:
authorized - whether the authorization check succeeded

Authorization

public Authorization(boolean authorized,
                     String reason)
Construct authorization response with a reason

Parameters:
authorized - whether the authorization check succeeded
reason - reason message
Method Detail

isAuthorized

public boolean isAuthorized()
Returns:
whether authorization succeeded

getReason

public String getReason()
Returns:
success or failure reason


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.