org.kuali.rice.kew.framework.document.security
Class Authorization
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 succeededreason
- reason message
isAuthorized
public boolean isAuthorized()
- Returns:
- whether authorization succeeded
getReason
public String getReason()
- Returns:
- success or failure reason
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.