Class ClientUtil

java.lang.Object
org.alfresco.repo.events.ClientUtil

public class ClientUtil extends Object
Allows us to convert between a FileFilterMode.Client and org.alfresco.sync.events.Client. This is a one way conversion. org.alfresco.sync.events.Client may evolve independently from FileFilterMode.Client, ie. there's a "from" method but no "to" method.
Author:
Gethin James
  • Constructor Details

    • ClientUtil

      public ClientUtil()
  • Method Details

    • from

      public static org.alfresco.sync.repo.Client from(FileFilterMode.Client from)
      If a new client is added to the FileFilterMode.Client then the unit test will throw a IllegalArgument exception. To fix it you will need to add to the org.alfresco.sync.events.Client.ClientType.
      Parameters:
      from - FileFilterMode.Client
      Returns:
      org.alfresco.sync.events.Client