Class OffloadingSetupUtil

java.lang.Object
com.adobe.cq.testing.util.offloading.OffloadingSetupUtil

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

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends CQClient>
    void
    enableDisableDAMUpdateAsset(T client, boolean enable)
    Enables/ disables the DAM update asset Workflow
    static <T extends CQClient>
    void
    enableDisableOffloadingTopic(T client, boolean enable)
    Enables/disables the offloading topic for the instance the client points to, through the Offloading Browser
    static <T extends CQClient>
    void
    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
    static <T extends CQClient>
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

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

    • OffloadingSetupUtil

      public OffloadingSetupUtil()
  • Method Details

    • 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