public interface ABTestAssetManager extends AssetDataManager
Modifier and Type | Interface and Description |
---|---|
static interface |
ABTestAssetManager.ABTestStateBean |
Modifier and Type | Field and Description |
---|---|
static String |
ABTEST_ASSET_NAME |
static String |
BLOBS_ATTR |
static String |
CONTEXT_ATTR |
static String |
CONTEXT_SEPARATOR |
static String |
CONVERSION_ATTR |
static String |
ELIGIBILITY_ATTR |
static String |
ELIGIBILITY_CRITERIA_SEGMENTS |
static String |
ELIGIBILITY_CRITERIA_VISITORS |
static String |
ELIGIBILITY_SEGMENTS_SEPARATOR |
static String |
ELIGIBILITYVISITORS_ATTR |
static String |
ENDDATE_ATTR |
static String |
EXCLUDEBASE_ATTR |
static String |
EXIT_CRITERIA_DATE |
static String |
EXIT_CRITERIA_VISITORS |
static String |
EXITCRITERIA_ATTR |
static String |
ID_ATTR |
static String |
MINCOUNT_ATTR |
static String |
NAME_ATTR |
static String |
SCONFIDENCE_ATTR |
static String |
STARTDATE_ATTR |
static String |
TARGETCRITERIA_ATTR |
static String |
TARGETVISITORS_ATTR |
static String |
VARIANTS_ATTR |
Modifier and Type | Method and Description |
---|---|
AssetData |
createABTest(String testName, String testContext)
Create a new WCS_ABTest asset
|
AssetData |
createABTest(String testName, String testContext, String copyFromAssetId)
Create a new WCS_ABTest asset from the existing WCS_ABTest asset.
|
AssetData |
getABTest(Long testId) |
String |
getABTestConversion(Long testId) |
List<AssetData> |
getABTests(long siteid) |
List<AssetData> |
getABTests(long siteid, String assetType, String assetId) |
List<AssetData> |
getABTests(long siteid, String assetType, String assetId, String pageName) |
List<String> |
getABTestVariants(Long testId) |
Iterable<AssetData> |
getActiveTests() |
Iterable<AssetData> |
getAllTests() |
Map<String,List<String>> |
getArgumentsForSlot(String ab, String assetType, String assetId, String slotName) |
List<Long> |
getPublishTargetIds(Long testId) |
String |
getTemplateForSlot(String ab, String assetType, String assetId, String slotName) |
ABTestAssetManager.ABTestStateBean |
getTestState(Long testId) |
Iterable<ABTestAssetManager.ABTestStateBean> |
getTestStates() |
String |
getValueForField(String ab, String assetType, String assetId, String fieldName, int fieldIndex) |
String[] |
getValuesForField(String ab, String assetType, String assetId, String fieldName) |
boolean |
isTestField(String assetType, String assetId, String fieldName) |
void |
refreshActiveTests(boolean fullRefresh) |
boolean |
removeReferences(AssetId staged, AssetId ref)
Removes the reference to an asset from the WCS_ABTest asset, if the asset has not already been published.
|
void |
setTestState(Long testId, String testState) |
delete, insert, newAssetData, newAssetData, newAttribiteData, newAttributeData, newAttributeData, read, read, readAttributes, readForUpdate, readForUpdate, update, update
static final String ABTEST_ASSET_NAME
static final String ID_ATTR
static final String NAME_ATTR
static final String ENDDATE_ATTR
static final String STARTDATE_ATTR
static final String MINCOUNT_ATTR
static final String SCONFIDENCE_ATTR
static final String VARIANTS_ATTR
static final String CONTEXT_ATTR
static final String EXCLUDEBASE_ATTR
static final String EXITCRITERIA_ATTR
static final String TARGETCRITERIA_ATTR
static final String ELIGIBILITY_ATTR
static final String ELIGIBILITYVISITORS_ATTR
static final String TARGETVISITORS_ATTR
static final String CONVERSION_ATTR
static final String BLOBS_ATTR
static final String EXIT_CRITERIA_DATE
static final String EXIT_CRITERIA_VISITORS
static final String ELIGIBILITY_CRITERIA_VISITORS
static final String ELIGIBILITY_CRITERIA_SEGMENTS
static final String CONTEXT_SEPARATOR
static final String ELIGIBILITY_SEGMENTS_SEPARATOR
Iterable<AssetData> getActiveTests() throws AssetAccessException
AssetAccessException
Iterable<AssetData> getAllTests() throws AssetAccessException
AssetAccessException
String getValueForField(String ab, String assetType, String assetId, String fieldName, int fieldIndex)
String[] getValuesForField(String ab, String assetType, String assetId, String fieldName)
String getTemplateForSlot(String ab, String assetType, String assetId, String slotName)
Map<String,List<String>> getArgumentsForSlot(String ab, String assetType, String assetId, String slotName)
boolean isTestField(String assetType, String assetId, String fieldName) throws AssetAccessException
AssetAccessException
AssetData getABTest(Long testId) throws AssetAccessException
AssetAccessException
List<AssetData> getABTests(long siteid, String assetType, String assetId, String pageName) throws AssetAccessException
AssetAccessException
List<AssetData> getABTests(long siteid, String assetType, String assetId) throws AssetAccessException
AssetAccessException
List<AssetData> getABTests(long siteid) throws AssetAccessException
AssetAccessException
List<String> getABTestVariants(Long testId) throws AssetAccessException
AssetAccessException
String getABTestConversion(Long testId) throws AssetAccessException
AssetAccessException
void refreshActiveTests(boolean fullRefresh)
Iterable<ABTestAssetManager.ABTestStateBean> getTestStates() throws AssetAccessException
AssetAccessException
ABTestAssetManager.ABTestStateBean getTestState(Long testId) throws AssetAccessException
AssetAccessException
void setTestState(Long testId, String testState) throws AssetAccessException
AssetAccessException
List<Long> getPublishTargetIds(Long testId) throws AssetAccessException
AssetAccessException
AssetData createABTest(String testName, String testContext) throws AssetAccessException
testName
- the name of the new assettestContext
- the test contextAssetAccessException
- an AssetAccessExceptionAssetData createABTest(String testName, String testContext, String copyFromAssetId) throws AssetAccessException
testName
- the name of the new assettestContext
- the test contextcopyFromAssetId
- the id of an existing asset from which data attributes will be copied.AssetAccessException
- an AssetAccessExceptionboolean removeReferences(AssetId staged, AssetId ref) throws AssetAccessException
staged
- The asset to be removedref
- The WCS_ABTest assetAssetAccessException
- an AssetAccessException