Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.repository
Class HrRecords

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by com.esri.gpt.framework.request.Records<HrRecord>
                  extended by com.esri.gpt.catalog.harvest.repository.HrRecords
All Implemented Interfaces:
Serializable, Cloneable, Iterable<HrRecord>, Collection<HrRecord>, List<HrRecord>, RandomAccess

public class HrRecords
extends Records<HrRecord>

Collection of harvest repository data.

See Also:
HrRecord, Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
HrRecords()
           
 
Method Summary
 HrRecord findByUuid(String uuid)
          Looks for harvest repository.
 HrRecords findHarvestDue()
          Finds all records for which harvest is due now.
 HrRecord findNextDue()
          Finds the closest next record to harvest in the near future.
 HrRecords findSaved(boolean saved)
          Finds saved/non-saved harvest repositories.
 HrRecords findSelected()
          Finds selected harvest repositories.
 String[] getUuids()
          Gets all UUID's.
 void setAllSelected(boolean selected)
          Sets selected flag on all harvest repositories.
 
Methods inherited from class com.esri.gpt.framework.request.Records
getMaximumQueryHits, setMaximumQueryHits
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

HrRecords

public HrRecords()
Method Detail

getUuids

public String[] getUuids()
Gets all UUID's.

Returns:
array of UUID's

findByUuid

public HrRecord findByUuid(String uuid)
Looks for harvest repository.

Parameters:
uuid - repository id
Returns:
harvest repository or null if repository not found

findSelected

public HrRecords findSelected()
Finds selected harvest repositories.

Returns:
collection of selected harvest repositories

findSaved

public HrRecords findSaved(boolean saved)
Finds saved/non-saved harvest repositories.

Parameters:
saved - true to search for saved harvest repositories
Returns:
collection of saved/non-saved harvest repositories

findHarvestDue

public HrRecords findHarvestDue()
Finds all records for which harvest is due now.

Returns:
collection of records for which harvest is due now

findNextDue

public HrRecord findNextDue()
Finds the closest next record to harvest in the near future.

Returns:
record to harvest in the near future or null if no such a record

setAllSelected

public void setAllSelected(boolean selected)
Sets selected flag on all harvest repositories.

Parameters:
selected - selected flag value

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.