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 org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description OffloadingSetupUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends CQClient>
voidenableDisableDAMUpdateAsset(T client, boolean enable)
Enables/ disables the DAM update asset Workflowstatic <T extends CQClient>
voidenableDisableOffloadingTopic(T client, boolean enable)
Enables/disables the offloading topic for the instance the client points to, through the Offloading Browserstatic <T extends CQClient>
voidsetDAMUpdateAsset(T client)
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 offloadingstatic <T extends CQClient>
voidsetDAMUpdateAssetOffloading(T client)
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
-
-
-
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 failsInterruptedException
- 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 failsInterruptedException
- 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 useenable
- true means enable, false means disable- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failsInterruptedException
- 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 useenable
- true means enable, false means disable- Throws:
org.apache.sling.testing.clients.ClientException
- if the request failsInterruptedException
- to mark this method as waiting
-
-