Class ProviderUtil

java.lang.Object
org.eclipse.lyo.trs.client.util.ProviderUtil

public class ProviderUtil extends Object
  • Constructor Details

    • ProviderUtil

      public ProviderUtil()
  • Method Details

    • 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
    • baseChangeEventsOptimizationSafe

      public static List<URI> baseChangeEventsOptimizationSafe(List<ChangeEvent> compressedChangesList, List<URI> baseMembers)