Class ClientUtil


  • public class ClientUtil
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      ClientUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.alfresco.sync.repo.Client from​(org.alfresco.util.FileFilterMode.Client from)
      If a new client is added to the FileFilterMode.Client then the unit test will throw a IllegalArgument exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientUtil

        public ClientUtil()
    • Method Detail

      • from

        public static org.alfresco.sync.repo.Client from​(org.alfresco.util.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