Package org.eclipse.lyo.trs.client.util
Class ProviderUtil
- java.lang.Object
-
- org.eclipse.lyo.trs.client.util.ProviderUtil
-
public class ProviderUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ProviderUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<URI>
baseChangeEventsOptimizationSafe(List<ChangeEvent> compressedChangesList, List<URI> baseMembers)
static boolean
changeLogContainsEvent(URI syncPointUri, ChangeLog changeLog)
returns true if the change log pojo contains the change event with the given uri and false otherwisestatic boolean
isNilUri(URI currentPageUri)
static boolean
isNotEmpty(Object[] deletions)
static boolean
isNotEmptySingletonArray(Object[] changeLogs)
static List<ChangeEvent>
optimizedChangesList(List<ChangeLog> changeLogs, URI lastProcessedChangeEventUri)
1.
-
-
-
Method Detail
-
isNotEmptySingletonArray
public static boolean isNotEmptySingletonArray(Object[] changeLogs)
-
isNotEmpty
public static boolean isNotEmpty(Object[] deletions)
-
isNilUri
public static boolean isNilUri(URI currentPageUri)
-
changeLogContainsEvent
public static boolean changeLogContainsEvent(URI syncPointUri, ChangeLog changeLog)
returns true if the change log pojo contains the change event with the given uri and false otherwise
-
optimizedChangesList
public static List<ChangeEvent> optimizedChangesList(List<ChangeLog> changeLogs, URI lastProcessedChangeEventUri)
1. create an ordered list of change events from the list of change logs given as an argument 2. Cut the list at the last processed change event 3. Optimize the changes list by removing all redundant events for the same resource- Parameters:
changeLogs
- the list of change logs containing the change events to be processed- Returns:
- the optimized ordered list of change events
-
-