org.kuali.rice.krad.service.impl
Class InactivateableFromToServiceImpl

java.lang.Object
  extended by org.kuali.rice.krad.service.impl.InactivateableFromToServiceImpl
All Implemented Interfaces:
InactivateableFromToService

public class InactivateableFromToServiceImpl
extends Object
implements InactivateableFromToService

Implementation of InactivateableFromToService that uses the lookup service for query implementation

See Also:
InactivateableFromToService

Field Summary
protected  DataDictionaryService dataDictionaryService
           
protected  DateTimeService dateTimeService
           
protected  LookupService lookupService
           
 
Constructor Summary
InactivateableFromToServiceImpl()
           
 
Method Summary
protected  String buildGroupByValueString(BusinessObject businessObject, List<String> groupByList)
          Builds a string containing the values from the given business object for the fields in the given list, concatenated together using a bar.
 List<InactivatableFromTo> filterOutNonActive(List<InactivatableFromTo> filterList)
          Removes instances from the given list that are inactive based on the current date
 List<InactivatableFromTo> filterOutNonActive(List<InactivatableFromTo> filterList, Date activeAsOfDate)
          Removes instances from the given list that are inactive based on the given date
 List<InactivatableFromTo> filterOutNonCurrent(List<InactivatableFromTo> filterList)
          Removes instances from the given list that are not current based on the current date
 List<InactivatableFromTo> filterOutNonCurrent(List<InactivatableFromTo> filterList, Date currentAsOfDate)
          Removes instances from the given list that are not current based on the given date
 List<InactivatableFromTo> findMatchingActive(Class<? extends InactivatableFromTo> clazz, Map fieldValues)
          Uses lookup service which will convert the active criteria to active begin/to field criteria
 List<InactivatableFromTo> findMatchingActiveAsOfDate(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date activeAsOfDate)
          Uses lookup service which will convert the active criteria to active begin/to field criteria
 List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues)
          Uses lookup service which will convert the active and current criteria to active begin/to field criteria
 List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date currentAsOfDate)
          Uses lookup service which will convert the active and current criteria to active begin/to field criteria
protected  DataDictionaryService getDataDictionaryService()
           
 void setDataDictionaryService(DataDictionaryService dataDictionaryService)
           
 void setDateTimeService(DateTimeService dateTimeService)
           
 void setLookupService(LookupService lookupService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateTimeService

protected DateTimeService dateTimeService

lookupService

protected LookupService lookupService

dataDictionaryService

protected DataDictionaryService dataDictionaryService
Constructor Detail

InactivateableFromToServiceImpl

public InactivateableFromToServiceImpl()
Method Detail

findMatchingActive

public List<InactivatableFromTo> findMatchingActive(Class<? extends InactivatableFromTo> clazz,
                                                    Map fieldValues)
Uses lookup service which will convert the active criteria to active begin/to field criteria

Specified by:
findMatchingActive in interface InactivateableFromToService
Parameters:
clazz - - InactivateableFromTo class to search
fieldValues - - Search key values
Returns:
List of InactivateableFromTo instances that match search criteria and are active
See Also:
InactivateableFromToService.findMatchingActive(java.lang.Class, java.util.Map)

findMatchingActiveAsOfDate

public List<InactivatableFromTo> findMatchingActiveAsOfDate(Class<? extends InactivatableFromTo> clazz,
                                                            Map fieldValues,
                                                            Date activeAsOfDate)
Uses lookup service which will convert the active criteria to active begin/to field criteria

Specified by:
findMatchingActiveAsOfDate in interface InactivateableFromToService
Parameters:
clazz - - InactivateableFromTo class to search
fieldValues - - Search key values
activeAsOfDate - - Date to compare to for determining active status
Returns:
List of InactivateableFromTo instances that match search criteria and are active as of the given date
See Also:
InactivateableFromToService.findMatchingActiveAsOfDate(java.lang.Class, java.util.Map, java.util.Date)

filterOutNonActive

public List<InactivatableFromTo> filterOutNonActive(List<InactivatableFromTo> filterList)
Description copied from interface: InactivateableFromToService
Removes instances from the given list that are inactive based on the current date

Specified by:
filterOutNonActive in interface InactivateableFromToService
Parameters:
filterList - - List of InactivateableFromTo instances to filter
Returns:
List of InactivateableFromTo instances from the given list that are active as of the current date
See Also:
InactivateableFromToService.filterOutNonActive(java.util.List)

filterOutNonActive

public List<InactivatableFromTo> filterOutNonActive(List<InactivatableFromTo> filterList,
                                                    Date activeAsOfDate)
Description copied from interface: InactivateableFromToService
Removes instances from the given list that are inactive based on the given date

Specified by:
filterOutNonActive in interface InactivateableFromToService
Parameters:
filterList - - List of InactivateableFromTo instances to filter
activeAsOfDate - - Date to compare to for determining active status
Returns:
List of InactivateableFromTo instances from the given list that are active as of the given date
See Also:
InactivateableFromToService.filterOutNonActive(java.util.List, java.util.Date)

findMatchingCurrent

public List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz,
                                                     Map fieldValues)
Uses lookup service which will convert the active and current criteria to active begin/to field criteria

Specified by:
findMatchingCurrent in interface InactivateableFromToService
Parameters:
clazz - - InactivateableFromTo class to search
fieldValues - - Search key values
Returns:
List of InactivateableFromTo instances that match search criteria and are current
See Also:
InactivateableFromToService.findMatchingCurrent(java.lang.Class, java.util.Map)

findMatchingCurrent

public List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz,
                                                     Map fieldValues,
                                                     Date currentAsOfDate)
Uses lookup service which will convert the active and current criteria to active begin/to field criteria

Specified by:
findMatchingCurrent in interface InactivateableFromToService
Parameters:
clazz - - InactivateableFromTo class to search
fieldValues - - Search key values
currentAsOfDate - - Date to compare to for determining active and current status
Returns:
List of InactivateableFromTo instances that match search criteria and are current
See Also:
InactivateableFromToService.findMatchingCurrent(java.lang.Class, java.util.Map, java.util.Date)

filterOutNonCurrent

public List<InactivatableFromTo> filterOutNonCurrent(List<InactivatableFromTo> filterList)
Description copied from interface: InactivateableFromToService
Removes instances from the given list that are not current based on the current date

Specified by:
filterOutNonCurrent in interface InactivateableFromToService
Parameters:
filterList - - List of InactivateableFromTo instances to filter
Returns:
List of InactivateableFromTo instances from the given list that are current as of the current date
See Also:
InactivateableFromToService.filterOutNonCurrent(java.util.List)

filterOutNonCurrent

public List<InactivatableFromTo> filterOutNonCurrent(List<InactivatableFromTo> filterList,
                                                     Date currentAsOfDate)
Description copied from interface: InactivateableFromToService
Removes instances from the given list that are not current based on the given date

Specified by:
filterOutNonCurrent in interface InactivateableFromToService
Parameters:
filterList - - List of InactivateableFromTo instances to filter
currentAsOfDate - - Date to compare to for determining active and current status
Returns:
List of InactivateableFromTo instances from the given list that are current as of the given date
See Also:
InactivateableFromToService.filterOutNonCurrent(java.util.List, java.util.Date)

buildGroupByValueString

protected String buildGroupByValueString(BusinessObject businessObject,
                                         List<String> groupByList)
Builds a string containing the values from the given business object for the fields in the given list, concatenated together using a bar. Null values are treated as an empty string

Parameters:
businessObject - - business object instance to get values from
groupByList - - list of fields to get values for
Returns:
String

setDateTimeService

public void setDateTimeService(DateTimeService dateTimeService)

setLookupService

public void setLookupService(LookupService lookupService)

getDataDictionaryService

protected DataDictionaryService getDataDictionaryService()

setDataDictionaryService

public void setDataDictionaryService(DataDictionaryService dataDictionaryService)


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