org.kuali.kfs.module.ar.document.authorization
Class CashControlDocumentPresentationController

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.ar.document.authorization.CashControlDocumentPresentationController
All Implemented Interfaces:
FinancialSystemTransactionalDocumentPresentationController, org.kuali.rice.kns.document.authorization.DocumentPresentationController, org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationController

public class CashControlDocumentPresentationController
extends FinancialSystemTransactionalDocumentPresentationControllerBase


Constructor Summary
CashControlDocumentPresentationController()
           
 
Method Summary
 boolean canApprove(org.kuali.rice.kns.document.Document document)
           
 boolean canBlanketApprove(org.kuali.rice.kns.document.Document document)
           
 boolean canCancel(org.kuali.rice.kns.document.Document document)
           
 boolean canDisapprove(org.kuali.rice.kns.document.Document document)
           
 boolean canErrorCorrect(FinancialSystemTransactionalDocument document)
          Makes sure that the given document implements error correction, that error correction is turned on for the document in the data dictionary, and that the document is in a workflow state that allows error correction.
protected  boolean containsGLPEs(CashControlDocument document)
           
 Set<String> getEditModes(org.kuali.rice.kns.document.Document document)
           
protected  boolean hasAllAppDocsApproved(CashControlDocument cashControlDocument)
          This method chech if all application document have been approved
protected  boolean hasAtLeastOneAppDocApproved(CashControlDocument cashControlDocument)
          This method checks if the CashControlDocument has at least one application document that has been approved
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentPresentationControllerBase
canHaveBankEntry, getBankService, getDocumentActions
 
Methods inherited from class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase
canAcknowledge, canAddAdhocRequests, canAnnotate, canClose, canCopy, canEdit, canEditDocumentOverview, canFyi, canInitiate, canPerformRouteReport, canReload, canRoute, canSave, 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

CashControlDocumentPresentationController

public CashControlDocumentPresentationController()
Method Detail

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)

canBlanketApprove

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

canDisapprove

public boolean canDisapprove(org.kuali.rice.kns.document.Document document)
Overrides:
canDisapprove 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

canErrorCorrect

public boolean canErrorCorrect(FinancialSystemTransactionalDocument document)
Description copied from class: FinancialSystemTransactionalDocumentPresentationControllerBase
Makes sure that the given document implements error correction, that error correction is turned on for the document in the data dictionary, and that the document is in a workflow state that allows error correction.

Specified by:
canErrorCorrect in interface FinancialSystemTransactionalDocumentPresentationController
Overrides:
canErrorCorrect in class FinancialSystemTransactionalDocumentPresentationControllerBase
Parameters:
document - the document to error correct
Returns:
true if the document can be error corrected, false otherwise
See Also:
FinancialSystemTransactionalDocumentPresentationController.canErrorCorrect(org.kuali.kfs.sys.document.FinancialSystemTransactionalDocument)

canCancel

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

containsGLPEs

protected boolean containsGLPEs(CashControlDocument document)

hasAtLeastOneAppDocApproved

protected boolean hasAtLeastOneAppDocApproved(CashControlDocument cashControlDocument)
This method checks if the CashControlDocument has at least one application document that has been approved

Parameters:
ccDoc - the CashControlDocument
Returns:
true if it has at least one application document approved, false otherwise

hasAllAppDocsApproved

protected boolean hasAllAppDocsApproved(CashControlDocument cashControlDocument)
This method chech if all application document have been approved

Parameters:
cashControlDocument - the CashControlDocument
Returns:
true if all application documents have been approved, false otherwise


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