public class UniqueMostRecentPickingStrategie extends Object implements ResourcePickingStrategie
| Constructor and Description |
|---|
UniqueMostRecentPickingStrategie() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMostRecent(List<URL> filteredResources,
URL urlNew,
String resourceSearchName)
Will look to add the urlNew in the filteredResource. if duplicate exists (based on resourceSearchName) it will look at
last modification date and take the most recent one.
|
List<URL> |
filter(List<URL> resources,
String resourceSearchName) |
public List<URL> filter(List<URL> resources, String resourceSearchName)
filter in interface ResourcePickingStrategieorg.unitils.dbmaintainer.locator.resourcepickingstrategie.ResourcePickingStrategie#filter(java.util.List)public void addMostRecent(List<URL> filteredResources, URL urlNew, String resourceSearchName) throws IOException
filteredResources - urlNew - resourceSearchName - IOExceptionCopyright © 2017. All rights reserved.