org.kuali.kfs.module.bc.service.impl
Class BudgetConstructionPositionServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.bc.service.impl.BudgetConstructionPositionServiceImpl
All Implemented Interfaces:
BudgetConstructionPositionService

public class BudgetConstructionPositionServiceImpl
extends Object
implements BudgetConstructionPositionService

Implementation of BudgetConstructionPositionService that uses the HumanResourcesPayrollService

See Also:
BudgetConstructionPositionService, HumanResourcesPayrollService

Constructor Summary
BudgetConstructionPositionServiceImpl()
           
 
Method Summary
protected  BudgetConstructionPosition buildBudgetPosition(Position position, BudgetConstructionPosition budgetConstructionPosition)
          Populates a new BudgetConstructionPosition object from a Position object.
 BudgetConstructionPosition getByPrimaryId(String fiscalYear, String positionNumber)
          retrieve a Budget Construction Position object by its primary key.
 boolean isBudgetablePosition(BudgetConstructionPosition budgetConstructionPosition)
          determine whether the given position is budgetable (valid, active and budgeted)
 void pullNewPositionFromExternal(Integer universityFiscalYear, String positionNumber)
          Retrieves a new position record from an external system using HumanResourcesPayrollService then populates the record in the budget position table.
 void refreshPositionFromExternal(Integer universityFiscalYear, String positionNumber)
          Refreshes a position record from an external system using HumanResourcesPayrollService then updates the record in the budget position table.
 void setBudgetConstructionDao(BudgetConstructionDao budgetConstructionDao)
          Sets the budgetConstructionDao attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setHumanResourcesPayrollService(HumanResourcesPayrollService humanResourcesPayrollService)
          Sets the humanResourcesPayrollService attribute value.
protected  void updateFundingPositionChangeIndicators(Integer universityFiscalYear, String positionNumber)
          Retrieves all funding lines for the position that are not marked as delete and sets the position change indicator fields to true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BudgetConstructionPositionServiceImpl

public BudgetConstructionPositionServiceImpl()
Method Detail

pullNewPositionFromExternal

@Transactional
public void pullNewPositionFromExternal(Integer universityFiscalYear,
                                                      String positionNumber)
                                 throws BudgetPositionAlreadyExistsException
Description copied from interface: BudgetConstructionPositionService
Retrieves a new position record from an external system using HumanResourcesPayrollService then populates the record in the budget position table.

Specified by:
pullNewPositionFromExternal in interface BudgetConstructionPositionService
Parameters:
universityFiscalYear - budget fiscal year for the position
positionNumber - position number for the record
Throws:
BudgetPositionAlreadyExistsException - thrown when position is already in the budget table
See Also:
BudgetConstructionPositionService.pullNewPositionFromExternal(java.lang.Integer, java.lang.String)

refreshPositionFromExternal

@Transactional(propagation=REQUIRES_NEW)
public void refreshPositionFromExternal(Integer universityFiscalYear,
                                                      String positionNumber)
Description copied from interface: BudgetConstructionPositionService
Refreshes a position record from an external system using HumanResourcesPayrollService then updates the record in the budget position table.

Specified by:
refreshPositionFromExternal in interface BudgetConstructionPositionService
Parameters:
universityFiscalYear - budget fiscal year for the position
positionNumber - position number for the record
See Also:
BudgetConstructionPositionService.refreshPositionFromExternal(java.lang.Integer, java.lang.String)

updateFundingPositionChangeIndicators

protected void updateFundingPositionChangeIndicators(Integer universityFiscalYear,
                                                     String positionNumber)
Retrieves all funding lines for the position that are not marked as delete and sets the position change indicator fields to true.

Parameters:
universityFiscalYear - budget fiscal year for the position
positionNumber - position number for the record

buildBudgetPosition

protected BudgetConstructionPosition buildBudgetPosition(Position position,
                                                         BudgetConstructionPosition budgetConstructionPosition)
Populates a new BudgetConstructionPosition object from a Position object.

Parameters:
position - object to copy
budgetConstructionPosition - bc position to populate
Returns:
BudgetConstructionPosition populated from Position
See Also:
BudgetConstructionPosition, Position

getByPrimaryId

public BudgetConstructionPosition getByPrimaryId(String fiscalYear,
                                                 String positionNumber)
Description copied from interface: BudgetConstructionPositionService
retrieve a Budget Construction Position object by its primary key.

Specified by:
getByPrimaryId in interface BudgetConstructionPositionService
Parameters:
fiscalYear - the given fiscal year
positionNumber - the given position number
Returns:
a Budget Construction Position object retrived by its primary key
See Also:
BudgetConstructionPositionService.getByPrimaryId(java.lang.String, java.lang.String)

isBudgetablePosition

public boolean isBudgetablePosition(BudgetConstructionPosition budgetConstructionPosition)
Description copied from interface: BudgetConstructionPositionService
determine whether the given position is budgetable (valid, active and budgeted)

Specified by:
isBudgetablePosition in interface BudgetConstructionPositionService
Parameters:
budgetConstructionPosition - the given position
Returns:
true if the given position is budgetable; otherwise, false
See Also:
org.kuali.kfs.module.bc.service.BudgetConstructionPositionService#isBudgetingPosition(org.kuali.kfs.module.bc.businessobject.BudgetConstructionPosition)

setBusinessObjectService

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

Parameters:
businessObjectService - The businessObjectService to set.

setHumanResourcesPayrollService

public void setHumanResourcesPayrollService(HumanResourcesPayrollService humanResourcesPayrollService)
Sets the humanResourcesPayrollService attribute value.

Parameters:
humanResourcesPayrollService - The humanResourcesPayrollService to set.

setBudgetConstructionDao

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

Parameters:
budgetConstructionDao - The budgetConstructionDao to set.


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