Class OffloadingSetupUtil


  • public class OffloadingSetupUtil
    extends Object
    Utility class to help in the setup of offloading in CQ
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Constructor Detail

      • OffloadingSetupUtil

        public OffloadingSetupUtil()
    • Method Detail

      • setDAMUpdateAssetOffloading

        public static <T extends CQClient> void setDAMUpdateAssetOffloading​(T client)
                                                                     throws org.apache.sling.testing.clients.ClientException,
                                                                            InterruptedException
        Replaces the "DAM Update Asset" Workflow with the "Dam Update Asset Offloading" This is currently required as part of the offloading setup for the instance that delegates the offloading
        Type Parameters:
        T - client type
        Parameters:
        client - client to use
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
        InterruptedException - to mark this method as waiting
      • setDAMUpdateAsset

        public static <T extends CQClient> void setDAMUpdateAsset​(T client)
                                                           throws org.apache.sling.testing.clients.ClientException,
                                                                  InterruptedException
        Replaces the "DAM Update Asset Offloading" Workflow with the original "Dam Update Asset" This is currently required as part of the offloading setup for the instance that delegates the offloading
        Type Parameters:
        T - client type
        Parameters:
        client - client to use
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
        InterruptedException - to mark this method as waiting
      • enableDisableDAMUpdateAsset

        public static <T extends CQClient> void enableDisableDAMUpdateAsset​(T client,
                                                                            boolean enable)
                                                                     throws org.apache.sling.testing.clients.ClientException,
                                                                            InterruptedException
        Enables/ disables the DAM update asset Workflow
        Type Parameters:
        T - client type
        Parameters:
        client - client to use
        enable - true means enable, false means disable
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
        InterruptedException - to mark this method as waiting
      • enableDisableOffloadingTopic

        public static <T extends CQClient> void enableDisableOffloadingTopic​(T client,
                                                                             boolean enable)
                                                                      throws org.apache.sling.testing.clients.ClientException,
                                                                             InterruptedException
        Enables/disables the offloading topic for the instance the client points to, through the Offloading Browser
        Type Parameters:
        T - client type
        Parameters:
        client - client to use
        enable - true means enable, false means disable
        Throws:
        org.apache.sling.testing.clients.ClientException - if the request fails
        InterruptedException - to mark this method as waiting