org.kuali.kfs.module.purap.document.service.impl
Class ReceivingAddressServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.purap.document.service.impl.ReceivingAddressServiceImpl
All Implemented Interfaces:
ReceivingAddressService

@Transactional
public class ReceivingAddressServiceImpl
extends Object
implements ReceivingAddressService


Constructor Summary
ReceivingAddressServiceImpl()
           
 
Method Summary
 int countActiveByChartOrg(String chartCode, String orgCode)
          Counts the number of the active receiving addresses with the specified chart/org code.
 Collection<ReceivingAddress> findActiveByChartOrg(String chartCode, String orgCode)
          Finds all of the active receiving addresses with the specified chart/org code.
 Collection<ReceivingAddress> findDefaultByChartOrg(String chartCode, String orgCode)
          Finds all of the active default receiving addresses with the specified chart/org code.
 ReceivingAddress findUniqueDefaultByChartOrg(String chartCode, String orgCode)
          Finds the unique active default receiving addresses with the specified chart/org code.
 void setReceivingAddressDao(ReceivingAddressDao dao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceivingAddressServiceImpl

public ReceivingAddressServiceImpl()
Method Detail

setReceivingAddressDao

public void setReceivingAddressDao(ReceivingAddressDao dao)

findActiveByChartOrg

public Collection<ReceivingAddress> findActiveByChartOrg(String chartCode,
                                                         String orgCode)
Description copied from interface: ReceivingAddressService
Finds all of the active receiving addresses with the specified chart/org code.

Specified by:
findActiveByChartOrg in interface ReceivingAddressService
Parameters:
chartCode - - chart of accounts code.
orgCode - - organization code.
Returns:
- collection of receiving addresses found.
See Also:
ReceivingAddressService.findActiveByChartOrg(java.lang.String,java.lang.String)

findDefaultByChartOrg

public Collection<ReceivingAddress> findDefaultByChartOrg(String chartCode,
                                                          String orgCode)
Description copied from interface: ReceivingAddressService
Finds all of the active default receiving addresses with the specified chart/org code. When the database is not in consistent state, there could be more than one active default address per chart/org.

Specified by:
findDefaultByChartOrg in interface ReceivingAddressService
Parameters:
chartCode - - chart of accounts code.
orgCode - - organization code.
Returns:
- collection of receiving addresses found.
See Also:
ReceivingAddressService.findDefaultByChartOrg(java.lang.String,java.lang.String)

findUniqueDefaultByChartOrg

public ReceivingAddress findUniqueDefaultByChartOrg(String chartCode,
                                                    String orgCode)
Description copied from interface: ReceivingAddressService
Finds the unique active default receiving addresses with the specified chart/org code. When the database is in consistent state, there shall be no more than one active default address per chart/org.

Specified by:
findUniqueDefaultByChartOrg in interface ReceivingAddressService
Parameters:
chartCode - - chart of accounts code.
orgCode - - organization code.
Returns:
- receiving addresses found.
See Also:
ReceivingAddressService.findUniqueDefaultByChartOrg(java.lang.String,java.lang.String)

countActiveByChartOrg

public int countActiveByChartOrg(String chartCode,
                                 String orgCode)
Description copied from interface: ReceivingAddressService
Counts the number of the active receiving addresses with the specified chart/org code.

Specified by:
countActiveByChartOrg in interface ReceivingAddressService
Parameters:
chartCode - - chart of accounts code.
orgCode - - organization code.
Returns:
- number of receiving addresses found.
See Also:
ReceivingAddressService.countActiveByChartOrg(java.lang.String,java.lang.String)


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