@Exported 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 |
EXTERNAL_TESTID_ATTR |
static String |
GA_PROVIDER_ID |
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 |
static String |
WCS_PROVIDER_ID |
Modifier and Type | Method and Description |
---|---|
String |
changeExternalTestStatus(AssetData assetData,
String newStatus) |
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 |
createOrUpdateExternalTest(AssetData assetData) |
AssetData |
getABTest(Long testId) |
Map<String,String> |
getABTestAccount(String 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) |
String |
getABTestSiteName(AssetData abTestAssetData) |
List<String> |
getABTestVariants(Long testId) |
Iterable<AssetData> |
getActiveTests() |
Iterable<AssetData> |
getAllTests() |
Map<String,List<String>> |
getArgumentsForSlot(String ab,
String assetType,
String assetId,
String slotName) |
Map<String,String> |
getExternalConversion(String abTestConversion)
Deprecated.
|
Map<String,String> |
getExternalConversion(String testId,
String abTestConversion) |
com.google.api.services.analytics.model.Experiment |
getExternalExperiment(AssetData abAsset) |
com.google.api.services.analytics.model.GaData |
getGAReportData(String testId,
String expStartTime,
String expEndTime,
String convQuery,
String experimentId) |
com.google.api.services.analytics.Analytics |
getGoogleAnalytics()
Deprecated.
|
com.google.api.services.analytics.Analytics |
getGoogleAnalytics(String testId) |
List<Long> |
getPublishTargetIds(Long testId) |
String |
getSitesVariant(String externalVariant,
Long testId)
Given a backend variant (prefixed with ga), we will find the equivalent site variant.
|
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 GA_PROVIDER_ID
static final String WCS_PROVIDER_ID
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 EXTERNAL_TESTID_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 AssetAccessExceptionAssetData createOrUpdateExternalTest(AssetData assetData) throws AssetAccessException
assetData
- AssetAccessException
String changeExternalTestStatus(AssetData assetData, String newStatus) throws AssetAccessException
assetData
- AssetAccessException
@Deprecated com.google.api.services.analytics.Analytics getGoogleAnalytics() throws GeneralSecurityException
ABTestAssetManager.getGoogleAnalytics(String testId)
GeneralSecurityException
com.google.api.services.analytics.model.Experiment getExternalExperiment(AssetData abAsset) throws AssetAccessException
AssetAccessException
@Deprecated Map<String,String> getExternalConversion(String abTestConversion)
ABTestAssetManager.getExternalConversion(String testId, String abTestConversion )
String getSitesVariant(String externalVariant, Long testId) throws AssetAccessException
externalVariant
- testVariants
- AssetAccessException
com.google.api.services.analytics.Analytics getGoogleAnalytics(String testId)
com.google.api.services.analytics.model.GaData getGAReportData(String testId, String expStartTime, String expEndTime, String convQuery, String experimentId)