Package org.kuali.rice.krad.service
Interface InactivateableFromToService
public interface InactivateableFromToService
Provides methods for retrieval of business objects implementing InactivateableFromTo and needing effective dating logic
- See Also:
-
org.kuali.rice.kns.bo.InactivateableFromTo
-
Method Summary
Modifier and TypeMethodDescriptionfilterOutNonActive(List<InactivatableFromTo> filterList) Removes instances from the given list that are inactive based on the current datefilterOutNonActive(List<InactivatableFromTo> filterList, Date activeAsOfDate) Removes instances from the given list that are inactive based on the given datefilterOutNonCurrent(List<InactivatableFromTo> filterList) Removes instances from the given list that are not current based on the current datefilterOutNonCurrent(List<InactivatableFromTo> filterList, Date currentAsOfDate) Removes instances from the given list that are not current based on the given datefindMatchingActive(Class<? extends InactivatableFromTo> clazz, Map fieldValues) Performs search on given class and criteria and returns only results that active based on the active to/from dates and the current datefindMatchingActiveAsOfDate(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date activeAsOfDate) Performs search on given class and criteria and returns only results that active based on the active to/from dates and the given active as of datefindMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues) Performs search on given class and criteria and returns that are active and most current.findMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date currentAsOfDate) Performs search on given class and criteria and returns that are active and most current based on the given date.
-
Method Details
-
findMatchingActive
List<InactivatableFromTo> findMatchingActive(Class<? extends InactivatableFromTo> clazz, Map fieldValues) Performs search on given class and criteria and returns only results that active based on the active to/from dates and the current date- Parameters:
clazz- - InactivateableFromTo class to searchfieldValues- - Search key values- Returns:
- List of InactivateableFromTo instances that match search criteria and are active
-
findMatchingActiveAsOfDate
List<InactivatableFromTo> findMatchingActiveAsOfDate(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date activeAsOfDate) Performs search on given class and criteria and returns only results that active based on the active to/from dates and the given active as of date- Parameters:
clazz- - InactivateableFromTo class to searchfieldValues- - Search key valuesactiveAsOfDate- - 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
-
filterOutNonActive
Removes instances from the given list that are inactive based on the current date- 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
-
filterOutNonActive
List<InactivatableFromTo> filterOutNonActive(List<InactivatableFromTo> filterList, Date activeAsOfDate) Removes instances from the given list that are inactive based on the given date- Parameters:
filterList- - List of InactivateableFromTo instances to filteractiveAsOfDate- - 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
-
findMatchingCurrent
List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues) Performs search on given class and criteria and returns that are active and most current. That is if two records are active the more current one will be the one with a later active begin date- Parameters:
clazz- - InactivateableFromTo class to searchfieldValues- - Search key values- Returns:
- List of InactivateableFromTo instances that match search criteria and are current
-
findMatchingCurrent
List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz, Map fieldValues, Date currentAsOfDate) Performs search on given class and criteria and returns that are active and most current based on the given date. That is if two records are active the more current one will be the one with a later active begin date- Parameters:
clazz- - InactivateableFromTo class to searchfieldValues- - Search key valuescurrentAsOfDate- - Date to compare to for determining active and current status- Returns:
- List of InactivateableFromTo instances that match search criteria and are current
-
filterOutNonCurrent
Removes instances from the given list that are not current based on the current date- 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
-
filterOutNonCurrent
List<InactivatableFromTo> filterOutNonCurrent(List<InactivatableFromTo> filterList, Date currentAsOfDate) Removes instances from the given list that are not current based on the given date- Parameters:
filterList- - List of InactivateableFromTo instances to filtercurrentAsOfDate- - 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
-