Class AbstractModelMother<T extends ItemModel>
- java.lang.Object
-
- de.hybris.platform.cmsfacades.util.models.AbstractModelMother<T>
-
- Direct Known Subclasses:
ABTestCMSComponentContainerModelMother
,BaseStoreModelMother
,CatalogVersionModelMother
,CatalogVersionSyncJobModelMother
,CategoryModelMother
,CMSCategoryRestrictionModelMother
,CMSComponentTypeModelMother
,CMSNavigationEntryModelMother
,CMSNavigationNodeModelMother
,CMSPageTypeModelMother
,CMSSiteModelMother
,CMSTimeRestrictionModelMother
,CMSUserGroupRestrictionModelMother
,ComponentTypeGroupModelMother
,ContentCatalogModelMother
,ContentPageModelMother
,ContentSlotForPageModelMother
,ContentSlotForTemplateModelMother
,ContentSlotModelMother
,ContentSlotNameModelMother
,CountryModelMother
,CurrencyModelMother
,DeliveryModeModelMother
,FlashComponentModelMother
,LanguageModelMother
,LinkComponentModelMother
,MediaContainerModelMother
,MediaFormatModelMother
,MediaModelMother
,PageTemplateModelMother
,ParagraphComponentModelMother
,ProductCatalogModelMother
,ProductCategoryModelMother
,ProductModelMother
,ProductPageModelMother
,RestrictionTypeModelMother
,SiteModelMother
,UserGroupModelMother
,WorkflowActionModelMother
,WorkflowActionTemplateModelMother
,WorkflowDecisionModelMother
,WorkflowDecisionTemplateModelMother
,WorkflowItemAttachmentModelMother
,WorkflowModelMother
,WorkflowTemplateModelMother
public abstract class AbstractModelMother<T extends ItemModel> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractModelMother()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlexibleSearchService
getFlexibleSearchService()
protected T
getFromCollectionOrSaveAndReturn(java.util.function.Supplier<java.util.Collection<T>> getter, java.util.function.Supplier<T> creator)
protected java.util.Optional<T>
getModelFromCollection(java.util.function.Supplier<java.util.Collection<T>> getter)
ModelService
getModelService()
protected T
getOrSaveAndReturn(java.util.function.Supplier<T> getter, java.util.function.Supplier<T> creator)
protected T
saveModel(java.util.function.Supplier<T> creator)
void
setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
void
setModelService(ModelService modelService)
-
-
-
Method Detail
-
getFromCollectionOrSaveAndReturn
protected T getFromCollectionOrSaveAndReturn(java.util.function.Supplier<java.util.Collection<T>> getter, java.util.function.Supplier<T> creator)
-
getModelFromCollection
protected java.util.Optional<T> getModelFromCollection(java.util.function.Supplier<java.util.Collection<T>> getter)
-
getOrSaveAndReturn
protected T getOrSaveAndReturn(java.util.function.Supplier<T> getter, java.util.function.Supplier<T> creator)
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getFlexibleSearchService
public FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-