org.kuali.kfs.module.ld.service.impl
Class LaborInquiryOptionsServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.ld.service.impl.LaborInquiryOptionsServiceImpl
All Implemented Interfaces:
LaborInquiryOptionsService

public class LaborInquiryOptionsServiceImpl
extends Object
implements LaborInquiryOptionsService

The LaborInquiryOptionsService class is a service that will generate Pending Ledger and Consilidation options for balance inquiries.


Constructor Summary
LaborInquiryOptionsServiceImpl()
           
 
Method Summary
 org.kuali.rice.kns.web.ui.Field getConsolidationField(Collection<org.kuali.rice.kns.web.ui.Row> rows)
          Examine a collection of Row instances for the consolidation field
 String getConsolidationFieldName()
          The expected name of the consolidation option field name
 String getConsolidationOption(Map fieldValues)
          Get the current state of the consolidation option
 String getSelectedPendingEntryOption(Map fieldValues)
          Get the Pending Entry Option selected
 boolean isConsolidationSelected(Map fieldValues)
          This method tests if the user selects to see the details or consolidated results
 boolean isConsolidationSelected(Map fieldValues, Collection<org.kuali.rice.kns.web.ui.Row> rows)
          This method tests if the user selects to see the details or consolidated results
protected  boolean isDetailDefaultFieldUsed(Map fieldValues, String fieldName)
          Determines if any of the fields that require a detail view are used
 void setLaborLedgerBalanceService(LaborLedgerBalanceService laborLedgerBalanceService)
          Sets the laborLedgerBalanceService attribute value.
 void setLaborLedgerPendingEntryService(LaborLedgerPendingEntryService laborLedgerPendingEntryService)
          Sets the laborLedgerPendingEntryService attribute value.
protected  void updateCollection(Collection entryCollection, Map fieldValues, boolean isApproved, boolean isConsolidated, Class clazz)
          update a given collection entry with the pending entry obtained from the given field values and isApproved
 void updateCurrentFundsByPendingLedgerEntry(Collection<AccountStatusCurrentFunds> balanceCollection, Map fieldValues, String pendingEntryOption, boolean isConsolidated)
          update a given balance collection with the pending entry obtained from the given field values and pending entry option
 void updateLedgerBalanceByPendingLedgerEntry(Collection<LedgerBalance> balanceCollection, Map fieldValues, String pendingEntryOption, boolean isConsolidated)
          update a given balance collection with the pending entry obtained from the given field values and pending entry option
 void updateLedgerEntryByPendingLedgerEntry(Collection<LedgerEntry> entryCollection, Map fieldValues, String pendingEntryOption)
          update a given ledger entry collection with the pending entry obtained from the given field values and pending entry option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaborInquiryOptionsServiceImpl

public LaborInquiryOptionsServiceImpl()
Method Detail

getConsolidationFieldName

public String getConsolidationFieldName()
Description copied from interface: LaborInquiryOptionsService
The expected name of the consolidation option field name

Specified by:
getConsolidationFieldName in interface LaborInquiryOptionsService
Returns:
String
See Also:
LaborInquiryOptionsService.getConsolidationFieldName()

getConsolidationField

public org.kuali.rice.kns.web.ui.Field getConsolidationField(Collection<org.kuali.rice.kns.web.ui.Row> rows)
Description copied from interface: LaborInquiryOptionsService
Examine a collection of Row instances for the consolidation field

Specified by:
getConsolidationField in interface LaborInquiryOptionsService
Returns:
Field
See Also:
LaborInquiryOptionsService.getConsolidationField(java.util.Collection)

getSelectedPendingEntryOption

public String getSelectedPendingEntryOption(Map fieldValues)
Description copied from interface: LaborInquiryOptionsService
Get the Pending Entry Option selected

Specified by:
getSelectedPendingEntryOption in interface LaborInquiryOptionsService
Returns:
String
See Also:
LaborInquiryOptionsService.getSelectedPendingEntryOption(java.util.Map)

getConsolidationOption

public String getConsolidationOption(Map fieldValues)
Description copied from interface: LaborInquiryOptionsService
Get the current state of the consolidation option

Specified by:
getConsolidationOption in interface LaborInquiryOptionsService
Returns:
String
See Also:
LaborInquiryOptionsService.getConsolidationOption(java.util.Map)

isConsolidationSelected

public boolean isConsolidationSelected(Map fieldValues,
                                       Collection<org.kuali.rice.kns.web.ui.Row> rows)
Description copied from interface: LaborInquiryOptionsService
This method tests if the user selects to see the details or consolidated results

Specified by:
isConsolidationSelected in interface LaborInquiryOptionsService
Parameters:
fieldValues - the map containing the search fields and values
Returns:
true if consolidation is selected and subaccount is not specified
See Also:
LaborInquiryOptionsService.isConsolidationSelected(java.util.Map, java.util.Collection)

isConsolidationSelected

public boolean isConsolidationSelected(Map fieldValues)
Description copied from interface: LaborInquiryOptionsService
This method tests if the user selects to see the details or consolidated results

Specified by:
isConsolidationSelected in interface LaborInquiryOptionsService
Parameters:
fieldValues - the map containing the search fields and values
Returns:
true if consolidation is selected and subaccount is not specified
See Also:
LaborInquiryOptionsService.isConsolidationSelected(java.util.Map)

updateLedgerBalanceByPendingLedgerEntry

public void updateLedgerBalanceByPendingLedgerEntry(Collection<LedgerBalance> balanceCollection,
                                                    Map fieldValues,
                                                    String pendingEntryOption,
                                                    boolean isConsolidated)
Description copied from interface: LaborInquiryOptionsService
update a given balance collection with the pending entry obtained from the given field values and pending entry option

Specified by:
updateLedgerBalanceByPendingLedgerEntry in interface LaborInquiryOptionsService
Parameters:
balanceCollection - the given ledger balance collection
fieldValues - the given field values
pendingEntryOption - the given pending entry option: all, approved or none
isConsolidated - indicate if the collection balances have been consolidated
See Also:
LaborInquiryOptionsService.updateLedgerBalanceByPendingLedgerEntry(java.util.Collection, java.util.Map, java.lang.String, boolean)

updateCurrentFundsByPendingLedgerEntry

public void updateCurrentFundsByPendingLedgerEntry(Collection<AccountStatusCurrentFunds> balanceCollection,
                                                   Map fieldValues,
                                                   String pendingEntryOption,
                                                   boolean isConsolidated)
Description copied from interface: LaborInquiryOptionsService
update a given balance collection with the pending entry obtained from the given field values and pending entry option

Specified by:
updateCurrentFundsByPendingLedgerEntry in interface LaborInquiryOptionsService
Parameters:
balanceCollection - the given ledger balance collection
fieldValues - the given field values
pendingEntryOption - the given pending entry option: all, approved or none
isConsolidated - indicate if the collection balances have been consolidated
See Also:
LaborInquiryOptionsService.updateCurrentFundsByPendingLedgerEntry(java.util.Collection, java.util.Map, java.lang.String, boolean)

updateLedgerEntryByPendingLedgerEntry

public void updateLedgerEntryByPendingLedgerEntry(Collection<LedgerEntry> entryCollection,
                                                  Map fieldValues,
                                                  String pendingEntryOption)
Description copied from interface: LaborInquiryOptionsService
update a given ledger entry collection with the pending entry obtained from the given field values and pending entry option

Specified by:
updateLedgerEntryByPendingLedgerEntry in interface LaborInquiryOptionsService
Parameters:
entryCollection - the given ledger entry collection
fieldValues - the given field values
pendingEntryOption - the given pending entry option: all, approved or none
See Also:
org.kuali.kfs.module.ld.service.LaborInquiryOptionsService#updateByPendingLedgerEntry(java.util.Collection, java.util.Map, java.lang.String, boolean)

updateCollection

protected void updateCollection(Collection entryCollection,
                                Map fieldValues,
                                boolean isApproved,
                                boolean isConsolidated,
                                Class clazz)
update a given collection entry with the pending entry obtained from the given field values and isApproved

Parameters:
entryCollection - the given entry collection
fieldValues - the given field values
isApproved - indicate if the resulting pending entry has been approved
isConsolidated - indicate if the collection entries have been consolidated

isDetailDefaultFieldUsed

protected boolean isDetailDefaultFieldUsed(Map fieldValues,
                                           String fieldName)
Determines if any of the fields that require a detail view are used

Parameters:
fieldValues -
fieldName -

setLaborLedgerBalanceService

public void setLaborLedgerBalanceService(LaborLedgerBalanceService laborLedgerBalanceService)
Sets the laborLedgerBalanceService attribute value.

Parameters:
laborLedgerBalanceService - The laborLedgerBalanceService to set.

setLaborLedgerPendingEntryService

public void setLaborLedgerPendingEntryService(LaborLedgerPendingEntryService laborLedgerPendingEntryService)
Sets the laborLedgerPendingEntryService attribute value.

Parameters:
laborLedgerPendingEntryService - The laborLedgerPendingEntryService to set.


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