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

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

@Transactional
public class BudgetOrganizationTreeServiceImpl
extends Object
implements BudgetOrganizationTreeService

This class implements the BudgetOrganizationTreeService interface


Field Summary
protected static int MAXLEVEL
           
 
Constructor Summary
BudgetOrganizationTreeServiceImpl()
           
 
Method Summary
 void buildPullup(String principalName, String chartOfAccountsCode, String organizationCode)
          This method populates BudgetConstructionPullup with rows that represent the subtree of the passed in point of view organization for a user.
 void buildPullupSql(String principalName, String chartOfAccountsCode, String organizationCode)
          This method populates BudgetConstructionPullup with rows that represent the subtree of the passed in point of view organization for a user.
protected  void buildSubTree(String principalName, BudgetConstructionOrganizationReports bcOrgRpts, int curLevel)
           
protected  void buildSubTreeSql(String principalName, BudgetConstructionOrganizationReports bcOrgRpts, int curLevel)
           
 void cleanPullup(String principalName)
          This method depopulates BudgetConstructionPullup of any rows associated with the user
 BudgetConstructionDao getBudgetConstructionDao()
          Gets the budgetConstructionDao attribute.
 BudgetConstructionOrganizationReportsService getBudgetConstructionOrganizationReportsService()
          Gets the budgetConstructionOrganizationReportsService attribute.
 BudgetPullupDao getBudgetPullupDao()
          Gets the budgetPullupDao attribute.
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
 List<BudgetConstructionPullup> getPullupChildOrgs(String principalId, String chartOfAccountsCode, String organizationCode)
          This method returns a list of child organizations for the passed in organization and user
 List<BudgetConstructionPullup> getSelectedOrgs(String principalId)
          This method returns a list of selected BudgetConstructionPullup rows for the user.
 void resetPullFlag(String principalId)
          This method resets the pullflag for the BudgetConstructionPullup set of records owned by the user
 void setBudgetConstructionDao(BudgetConstructionDao budgetConstructionDao)
          Sets the budgetConstructionDao attribute value.
 void setBudgetConstructionOrganizationReportsService(BudgetConstructionOrganizationReportsService budgetConstructionOrganizationReportsService)
          Sets the budgetConstructionOrganizationReportsService attribute value.
 void setBudgetPullupDao(BudgetPullupDao budgetPullupDao)
          Sets the budgetPullupDao attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXLEVEL

protected static final int MAXLEVEL
See Also:
Constant Field Values
Constructor Detail

BudgetOrganizationTreeServiceImpl

public BudgetOrganizationTreeServiceImpl()
Method Detail

buildPullup

public void buildPullup(String principalName,
                        String chartOfAccountsCode,
                        String organizationCode)
Description copied from interface: BudgetOrganizationTreeService
This method populates BudgetConstructionPullup with rows that represent the subtree of the passed in point of view organization for a user. All organizations reporting to the point of view are inserted.

Specified by:
buildPullup in interface BudgetOrganizationTreeService
See Also:
BudgetOrganizationTreeService.buildPullup(java.lang.String, java.lang.String, java.lang.String)

buildSubTree

protected void buildSubTree(String principalName,
                            BudgetConstructionOrganizationReports bcOrgRpts,
                            int curLevel)

buildPullupSql

public void buildPullupSql(String principalName,
                           String chartOfAccountsCode,
                           String organizationCode)
Description copied from interface: BudgetOrganizationTreeService
This method populates BudgetConstructionPullup with rows that represent the subtree of the passed in point of view organization for a user. All organizations reporting to the point of view are inserted. This uses raw SQL

Specified by:
buildPullupSql in interface BudgetOrganizationTreeService
See Also:
BudgetOrganizationTreeService.buildPullupSql(java.lang.String, java.lang.String, java.lang.String)

buildSubTreeSql

protected void buildSubTreeSql(String principalName,
                               BudgetConstructionOrganizationReports bcOrgRpts,
                               int curLevel)

cleanPullup

public void cleanPullup(String principalName)
Description copied from interface: BudgetOrganizationTreeService
This method depopulates BudgetConstructionPullup of any rows associated with the user

Specified by:
cleanPullup in interface BudgetOrganizationTreeService
See Also:
BudgetOrganizationTreeService.cleanPullup(java.lang.String)

getPullupChildOrgs

public List<BudgetConstructionPullup> getPullupChildOrgs(String principalId,
                                                         String chartOfAccountsCode,
                                                         String organizationCode)
Description copied from interface: BudgetOrganizationTreeService
This method returns a list of child organizations for the passed in organization and user

Specified by:
getPullupChildOrgs in interface BudgetOrganizationTreeService
Returns:
See Also:
BudgetOrganizationTreeService.getPullupChildOrgs(java.lang.String, java.lang.String, java.lang.String)

resetPullFlag

public void resetPullFlag(String principalId)
Description copied from interface: BudgetOrganizationTreeService
This method resets the pullflag for the BudgetConstructionPullup set of records owned by the user

Specified by:
resetPullFlag in interface BudgetOrganizationTreeService
See Also:
BudgetOrganizationTreeService.resetPullFlag(java.lang.String)

getSelectedOrgs

public List<BudgetConstructionPullup> getSelectedOrgs(String principalId)
Description copied from interface: BudgetOrganizationTreeService
This method returns a list of selected BudgetConstructionPullup rows for the user.

Specified by:
getSelectedOrgs in interface BudgetOrganizationTreeService
Returns:
See Also:
BudgetOrganizationTreeService.getSelectedOrgs(java.lang.String)

getBudgetConstructionOrganizationReportsService

public BudgetConstructionOrganizationReportsService getBudgetConstructionOrganizationReportsService()
Gets the budgetConstructionOrganizationReportsService attribute.

Returns:
Returns the budgetConstructionOrganizationReportsService.

setBudgetConstructionOrganizationReportsService

public void setBudgetConstructionOrganizationReportsService(BudgetConstructionOrganizationReportsService budgetConstructionOrganizationReportsService)
Sets the budgetConstructionOrganizationReportsService attribute value.

Parameters:
budgetConstructionOrganizationReportsService - The budgetConstructionOrganizationReportsService to set.

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

getBudgetConstructionDao

public BudgetConstructionDao getBudgetConstructionDao()
Gets the budgetConstructionDao attribute.

Returns:
Returns the budgetConstructionDao.

setBudgetConstructionDao

public void setBudgetConstructionDao(BudgetConstructionDao budgetConstructionDao)
Sets the budgetConstructionDao attribute value.

Parameters:
budgetConstructionDao - The budgetConstructionDao to set.

getBudgetPullupDao

public BudgetPullupDao getBudgetPullupDao()
Gets the budgetPullupDao attribute.

Returns:
Returns the budgetPullupDao.

setBudgetPullupDao

public void setBudgetPullupDao(BudgetPullupDao budgetPullupDao)
Sets the budgetPullupDao attribute value.

Parameters:
budgetPullupDao - The budgetPullupDao to set.


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