org.kuali.kfs.fp.document.authorization
Class CashManagementDocumentPresentationControllerBase

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.sys.document.authorization.LedgerPostingDocumentPresentationControllerBase
                  extended by org.kuali.kfs.fp.document.authorization.CashManagementDocumentPresentationControllerBase
All Implemented Interfaces:
CashManagementDocumentPresentationController, FinancialSystemTransactionalDocumentPresentationController, org.kuali.rice.kns.document.authorization.DocumentPresentationController, org.kuali.rice.kns.document.authorization.TransactionalDocumentPresentationController

public class CashManagementDocumentPresentationControllerBase
extends LedgerPostingDocumentPresentationControllerBase
implements CashManagementDocumentPresentationController


Constructor Summary
CashManagementDocumentPresentationControllerBase()
           
 
Method Summary
protected  boolean canAddAdhocRequests(org.kuali.rice.kns.document.Document document)
           
protected  boolean canApprove(org.kuali.rice.kns.document.Document document)
           
protected  boolean canBlanketApprove(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)
           
 boolean canOpenCashDrawer(org.kuali.rice.kns.document.Document document)
          Determines if the cash drawer can be opened by testing two things: That the cash drawer is currently closed. That no cash drawer maintenance documents have a lock on the cash drawer.
protected  boolean canRoute(org.kuali.rice.kns.document.Document document)
           
protected  boolean canSave(org.kuali.rice.kns.document.Document document)
           
protected  org.kuali.rice.kns.maintenance.Maintainable createCashDrawerMaintainable(org.kuali.rice.kns.datadictionary.MaintenanceDocumentEntry cashDrawerMaintenanceDocumentEntry)
          Builds an instance of the appropriate Maintainable implementation for the Cash Drawer Maintainable
 Set<String> getEditModes(org.kuali.rice.kns.document.Document document)
           
protected  boolean noExistCashDrawerMaintLocks(CashDrawer cashDrawer, String documentNumber)
          Determines that no maintenance documents have locks on the given cash drawer
protected  CashDrawer retrieveCashDrawer(org.kuali.rice.kns.document.Document document)
          Retrieves the cash drawer associated with the given cash management document
 
Methods inherited from class org.kuali.kfs.sys.document.authorization.LedgerPostingDocumentPresentationControllerBase
canErrorCorrect
 
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, canAnnotate, canClose, canCopy, canEdit, canEditDocumentOverview, canFyi, canInitiate, canPerformRouteReport, canReload, 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.kfs.sys.document.authorization.FinancialSystemTransactionalDocumentPresentationController
canErrorCorrect
 
Methods inherited from interface org.kuali.rice.kns.document.authorization.DocumentPresentationController
canInitiate, getDocumentActions
 

Constructor Detail

CashManagementDocumentPresentationControllerBase

public CashManagementDocumentPresentationControllerBase()
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:
FinancialSystemTransactionalDocumentPresentationControllerBase.getEditModes(org.kuali.rice.kns.document.Document)

canApprove

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

canBlanketApprove

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

canCancel

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

canDisapprove

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

canRoute

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

canSave

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

canAddAdhocRequests

protected boolean canAddAdhocRequests(org.kuali.rice.kns.document.Document document)
Overrides:
canAddAdhocRequests in class org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase
See Also:
org.kuali.rice.kns.document.authorization.DocumentPresentationControllerBase#canAdHocRoute(org.kuali.rice.kns.document.Document)

canOpenCashDrawer

public boolean canOpenCashDrawer(org.kuali.rice.kns.document.Document document)
Determines if the cash drawer can be opened by testing two things:
  1. That the cash drawer is currently closed.
  2. That no cash drawer maintenance documents have a lock on the cash drawer.

Specified by:
canOpenCashDrawer in interface CashManagementDocumentPresentationController
Parameters:
document - the document that wishes to open the cash drawer
Returns:
true if the cash drawer can be opened, false otherwise

retrieveCashDrawer

protected CashDrawer retrieveCashDrawer(org.kuali.rice.kns.document.Document document)
Retrieves the cash drawer associated with the given cash management document

Parameters:
document - a CashManagementDocument with an associated cash drawer
Returns:
the associated cash drawer

noExistCashDrawerMaintLocks

protected boolean noExistCashDrawerMaintLocks(CashDrawer cashDrawer,
                                              String documentNumber)
Determines that no maintenance documents have locks on the given cash drawer

Parameters:
cashDrawer - the cash drawer that may have locks on it
Returns:
true if there are no maintenance documents with locks on the cash drawer, false otherwise

createCashDrawerMaintainable

protected org.kuali.rice.kns.maintenance.Maintainable createCashDrawerMaintainable(org.kuali.rice.kns.datadictionary.MaintenanceDocumentEntry cashDrawerMaintenanceDocumentEntry)
Builds an instance of the appropriate Maintainable implementation for the Cash Drawer Maintainable

Parameters:
cashDrawerMaintenanceDocumentEntry - the data dictionary entry from the Cash Drawer's maintenance document
Returns:
an appropriate Maintainable


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