org.kuali.kfs.module.purap.document.authorization
Class PaymentRequestDocumentPresentationController

java.lang.Object
  extended by org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase
      extended by org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationControllerBase
          extended by org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentPresentationControllerBase
              extended by org.kuali.kfs.module.purap.document.authorization.PurchasingAccountsPayableDocumentPresentationController
                  extended by org.kuali.kfs.module.purap.document.authorization.PaymentRequestDocumentPresentationController
All Implemented Interfaces:
FinancialSystemTransactionalDocumentPresentationController, org.kuali.rice.kns.document.authorization.DocumentPresentationController, org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationController

public class PaymentRequestDocumentPresentationController
extends PurchasingAccountsPayableDocumentPresentationController


Constructor Summary
PaymentRequestDocumentPresentationController()
           
 
Method Summary
 boolean canApprove(org.kuali.rice.kns.document.Document document)
           
protected  boolean canCancel(org.kuali.rice.kns.document.Document document)
           
protected  boolean canDisapprove(org.kuali.rice.kns.document.Document document)
           
protected  boolean canEdit(org.kuali.rice.kns.document.Document document)
          None of the PURAP documents allowing editing by adhoc requests
protected  boolean canEditPreExtraction(PaymentRequestDocument paymentRequestDocument)
           
protected  boolean canHold(PaymentRequestDocument paymentRequestDocument)
          Determines whether the PaymentRequest Hold button shall be available.
protected  boolean canManagerCancel(PaymentRequestDocument paymentRequestDocument)
           
protected  boolean canProcessorCancel(PaymentRequestDocument paymentRequestDocument)
           
protected  boolean canReload(org.kuali.rice.kns.document.Document document)
           
protected  boolean canRemoveHold(PaymentRequestDocument paymentRequestDocument)
          Determines whether the Remove Hold button shall be available.
protected  boolean canRemoveRequestCancel(PaymentRequestDocument paymentRequestDocument)
          Determines whether the Remove Request Cancel button shall be available.
protected  boolean canRequestCancel(PaymentRequestDocument paymentRequestDocument)
          Determines whether the Request Cancel PaymentRequest button shall be available.
protected  boolean canSave(org.kuali.rice.kns.document.Document document)
           
 Set<String> getEditModes(org.kuali.rice.kns.document.Document document)
           
 
Methods inherited from class org.kuali.kfs.module.purap.document.authorization.PurchasingAccountsPayableDocumentPresentationController
canEditDocumentOverview
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentPresentationControllerBase
canErrorCorrect, canHaveBankEntry, getBankService, getDocumentActions
 
Methods inherited from class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase
canAcknowledge, canAddAdhocRequests, canAnnotate, canBlanketApprove, canClose, canCopy, canFyi, canInitiate, canPerformRouteReport, canRoute, canSendAdhocRequests, canSendNoteFyi, getParameterService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.document.authorization.DocumentPresentationController
canInitiate
 

Constructor Detail

PaymentRequestDocumentPresentationController

public PaymentRequestDocumentPresentationController()
Method Detail

canSave

protected boolean canSave(org.kuali.rice.kns.document.Document document)
Overrides:
canSave in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase

canReload

protected boolean canReload(org.kuali.rice.kns.document.Document document)
Overrides:
canReload in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase

canCancel

protected boolean canCancel(org.kuali.rice.kns.document.Document document)
Overrides:
canCancel in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase

canApprove

public boolean canApprove(org.kuali.rice.kns.document.Document document)
Overrides:
canApprove in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase

canDisapprove

protected boolean canDisapprove(org.kuali.rice.kns.document.Document document)
Overrides:
canDisapprove in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase

canEdit

protected boolean canEdit(org.kuali.rice.kns.document.Document document)
Description copied from class: PurchasingAccountsPayableDocumentPresentationController
None of the PURAP documents allowing editing by adhoc requests

Overrides:
canEdit in class PurchasingAccountsPayableDocumentPresentationController
See Also:
DocumentPresentationControllerBase.canEdit(org.kuali.rice.kns.document.Document)

getEditModes

public Set<String> getEditModes(org.kuali.rice.kns.document.Document document)
Specified by:
getEditModes in interface org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationController
Overrides:
getEditModes in class FinancialSystemTransactionalDocumentPresentationControllerBase
See Also:
TransactionalDocumentPresentationControllerBase.getEditModes(org.kuali.rice.kns.document.Document)

canProcessorCancel

protected boolean canProcessorCancel(PaymentRequestDocument paymentRequestDocument)

canManagerCancel

protected boolean canManagerCancel(PaymentRequestDocument paymentRequestDocument)

canHold

protected boolean canHold(PaymentRequestDocument paymentRequestDocument)
Determines whether the PaymentRequest Hold button shall be available. Conditions: - Payment Request is not already on hold, and - Payment Request is not already being requested to be canceled, and - Payment Request has not already been extracted to PDP, and - Payment Request status is not in the list of "STATUSES_DISALLOWING_HOLD" or document is being adhoc routed; and

Returns:
True if the document state allows placing the Payment Request on hold.

canRequestCancel

protected boolean canRequestCancel(PaymentRequestDocument paymentRequestDocument)
Determines whether the Request Cancel PaymentRequest button shall be available. Conditions: - Payment Request is not already on hold, and - Payment Request is not already being requested to be canceled, and - Payment Request has not already been extracted to PDP, and - Payment Request status is not in the list of "STATUSES_DISALLOWING_REQUEST_CANCEL" or document is being adhoc routed; and

Returns:
True if the document state allows placing the request that the Payment Request be canceled.

canRemoveHold

protected boolean canRemoveHold(PaymentRequestDocument paymentRequestDocument)
Determines whether the Remove Hold button shall be available. Conditions: - the hold indicator is set to true Because the state of the Payment Request cannot be changed while the document is on hold, we should not have to check the state of the document to remove the hold. For example, the document should not be allowed to be approved or extracted while on hold.

Returns:
True if the document state allows removing the Payment Request from hold.

canRemoveRequestCancel

protected boolean canRemoveRequestCancel(PaymentRequestDocument paymentRequestDocument)
Determines whether the Remove Request Cancel button shall be available. Conditions: - the request cancel indicator is set to true; and Because the state of the Payment Request cannot be changed while the document is set to request cancel, we should not have to check the state of the document to remove the request cancel. For example, the document should not be allowed to be approved or extracted while set to request cancel.

Returns:
True if the document state allows removing a request that the Payment Request be canceled.

canEditPreExtraction

protected boolean canEditPreExtraction(PaymentRequestDocument paymentRequestDocument)


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