Package com.nuix.superutilities.cases
Class CaseHistoryHelper
- java.lang.Object
-
- com.nuix.superutilities.cases.CaseHistoryHelper
-
- All Implemented Interfaces:
java.util.Iterator<nuix.HistoryEvent>
public class CaseHistoryHelper extends java.lang.Object implements java.util.Iterator<nuix.HistoryEvent>
Helper class for iterating a case's history. The reason for this class is mainly for the functionality to iterate multiple event types at once without having to iterate them all. Same functionality in API requires you either return all history event types or just a single type.
-
-
Constructor Summary
Constructors Constructor Description CaseHistoryHelper(nuix.Case nuixCase, java.util.List<java.lang.String> eventTypes, org.joda.time.DateTime minStart, org.joda.time.DateTime maxStart)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.joda.time.DateTime
getEarliestEventStart(nuix.Case nuixCase)
Convenience method for obtaining earliest case history event.static org.joda.time.DateTime
getLatestEventStart(nuix.Case nuixCase)
Convenience method for obtaining most recent case history event.boolean
hasNext()
nuix.HistoryEvent
next()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<nuix.HistoryEvent>
-
next
public nuix.HistoryEvent next()
- Specified by:
next
in interfacejava.util.Iterator<nuix.HistoryEvent>
-
getEarliestEventStart
public static org.joda.time.DateTime getEarliestEventStart(nuix.Case nuixCase) throws java.lang.Exception
Convenience method for obtaining earliest case history event.- Parameters:
nuixCase
- Case to obtain history event from- Returns:
- Earliest case history event
- Throws:
java.lang.Exception
- Thrown if an error occurs
-
getLatestEventStart
public static org.joda.time.DateTime getLatestEventStart(nuix.Case nuixCase) throws java.lang.Exception
Convenience method for obtaining most recent case history event.- Parameters:
nuixCase
- Case to obtain history event from- Returns:
- Earliest case history event
- Throws:
java.lang.Exception
- Thrown if an error occurs
-
-