Class DefaultABTestService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
-
- de.hybris.platform.cms2.servicelayer.services.impl.DefaultABTestService
-
- All Implemented Interfaces:
ABTestService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultABTestService extends AbstractCMSService implements ABTestService
Default implementation ofABTestServiceinterface.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
CURRENTCATALOGVERSION, CURRENTSITE
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultABTestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetRandFromSession(ABTestCMSComponentContainerModel container, int size)SimpleCMSComponentModelgetRandomCmsComponent(ABTestCMSComponentContainerModel container)Gets the randomSimpleCMSComponentobject.java.util.List<SimpleCMSComponentModel>getRandomCMSComponents(ABTestCMSComponentContainerModel container)Gets the list of randomSimpleCMSComponentobjects.-
Methods inherited from class de.hybris.platform.cms2.servicelayer.services.impl.AbstractCMSService
getBaseSiteService, getCurrentCatalogVersion, getCurrentSite, getSearchRestrictionService, getUserService, setBaseSiteService, setSearchRestrictionService, setUserService
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getRandomCmsComponent
public SimpleCMSComponentModel getRandomCmsComponent(ABTestCMSComponentContainerModel container)
Gets the randomSimpleCMSComponentobject.- Specified by:
getRandomCmsComponentin interfaceABTestService- Parameters:
container- theABTestCMSComponentContainerModelobject for which random object will be obtained.- Returns:
- the random
SimpleCMSComponentModelobject.
-
getRandomCMSComponents
public java.util.List<SimpleCMSComponentModel> getRandomCMSComponents(ABTestCMSComponentContainerModel container)
Gets the list of randomSimpleCMSComponentobjects.- Specified by:
getRandomCMSComponentsin interfaceABTestService- Parameters:
container- theABTestCMSComponentContainerModelobject for which list will be obtained.- Returns:
- the list of random
SimpleCMSComponentModelobjects.
-
getRandFromSession
protected int getRandFromSession(ABTestCMSComponentContainerModel container, int size)
-
-