org.kuali.kfs.module.bc.document.service.impl
Class BudgetPushPullServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.bc.document.service.impl.BudgetPushPullServiceImpl
All Implemented Interfaces:
BudgetPushPullService

@Transactional
public class BudgetPushPullServiceImpl
extends Object
implements BudgetPushPullService

Implements BudgetPushPullService by populating temporary tables with the potential set of documents to push down or pull up. The temporary tables are then used to drive the entire push down or pull up process. First, an attempt is made to place budget locks on each document. Successfully locked documents are then pushed down or pulled up by setting the associated BudgetConstructionHeader (ld_bcnstr_hdr_t) row with the appropriate level attribute values and releasing the locks.


Constructor Summary
BudgetPushPullServiceImpl()
           
 
Method Summary
 int buildPullUpBudgetedDocuments(String principalId, Integer FiscalYear, String pointOfViewCharOfAccountsCode, String pointOfViewOrganizationCode)
          Builds list of budget documents that are in the selected organizations and above the user's point of view.
 int buildPushDownBudgetedDocuments(String principalId, Integer FiscalYear, String pointOfViewCharOfAccountsCode, String pointOfViewOrganizationCode)
          Builds list of budget documents that are in the selected organizations and at the user's point of view.
 void pullupSelectedOrganizationDocuments(String principalId, Integer FiscalYear, String pointOfViewCharOfAccountsCode, String pointOfViewOrganizationCode)
          Pulls up Budget Construction documents based on user selected Organizations and the current point of view Organization on the Organization Selection screen running in Pullup mode.
 void pushdownSelectedOrganizationDocuments(String principalId, Integer FiscalYear, String pointOfViewCharOfAccountsCode, String pointOfViewOrganizationCode)
          Pushes down Budget Construction documents based on user selected Organizations and the current point of view Organization on the Organization Selection screen running in Pushdown mode.
 void setBudgetOrganizationPushPullDao(BudgetOrganizationPushPullDao budgetOrganizationPushPullDao)
          Sets the budgetOrganizationPushPullDao attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BudgetPushPullServiceImpl

public BudgetPushPullServiceImpl()
Method Detail

pullupSelectedOrganizationDocuments

public void pullupSelectedOrganizationDocuments(String principalId,
                                                Integer FiscalYear,
                                                String pointOfViewCharOfAccountsCode,
                                                String pointOfViewOrganizationCode)
Description copied from interface: BudgetPushPullService
Pulls up Budget Construction documents based on user selected Organizations and the current point of view Organization on the Organization Selection screen running in Pullup mode.

Specified by:
pullupSelectedOrganizationDocuments in interface BudgetPushPullService
See Also:
BudgetPushPullService.pullupSelectedOrganizationDocuments(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String)

pushdownSelectedOrganizationDocuments

public void pushdownSelectedOrganizationDocuments(String principalId,
                                                  Integer FiscalYear,
                                                  String pointOfViewCharOfAccountsCode,
                                                  String pointOfViewOrganizationCode)
Description copied from interface: BudgetPushPullService
Pushes down Budget Construction documents based on user selected Organizations and the current point of view Organization on the Organization Selection screen running in Pushdown mode.

Specified by:
pushdownSelectedOrganizationDocuments in interface BudgetPushPullService
See Also:
BudgetPushPullService.pushdownSelectedOrganizationDocuments(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String)

buildPullUpBudgetedDocuments

public int buildPullUpBudgetedDocuments(String principalId,
                                        Integer FiscalYear,
                                        String pointOfViewCharOfAccountsCode,
                                        String pointOfViewOrganizationCode)
Description copied from interface: BudgetPushPullService
Builds list of budget documents that are in the selected organizations and above the user's point of view. Called from the Org Pull Up screen to display the documents that will be affected by the pull up.

Specified by:
buildPullUpBudgetedDocuments in interface BudgetPushPullService
Parameters:
principalId - current user doing the pullup
FiscalYear - budget fiscal year
pointOfViewCharOfAccountsCode - user's point of view chart
pointOfViewOrganizationCode - user's point of view org
Returns:
int number of rows affected (number of documents)
See Also:
BudgetPushPullService.buildPullUpBudgetedDocuments(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String)

buildPushDownBudgetedDocuments

public int buildPushDownBudgetedDocuments(String principalId,
                                          Integer FiscalYear,
                                          String pointOfViewCharOfAccountsCode,
                                          String pointOfViewOrganizationCode)
Description copied from interface: BudgetPushPullService
Builds list of budget documents that are in the selected organizations and at the user's point of view. Called from the Org Push Down screen to display the documents that will be affected by the push down.

Specified by:
buildPushDownBudgetedDocuments in interface BudgetPushPullService
Parameters:
principalId - current user doing the pushdown
FiscalYear - budget fiscal year
pointOfViewCharOfAccountsCode - user's point of view chart
pointOfViewOrganizationCode - user's point of view org
Returns:
int number of rows affected (number of documents)
See Also:
BudgetPushPullService.buildPushDownBudgetedDocuments(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String)

setBudgetOrganizationPushPullDao

public void setBudgetOrganizationPushPullDao(BudgetOrganizationPushPullDao budgetOrganizationPushPullDao)
Sets the budgetOrganizationPushPullDao attribute value.

Parameters:
budgetOrganizationPushPullDao - The budgetOrganizationPushPullDao to set.


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