Class ValidationDtoFactory
java.lang.Object
de.hybris.platform.cmsfacades.common.validator.ValidationDtoFactory
Factory for creating beans used for validation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildComponentAndContentSlotValidationDto(String componentUid, String contentSlotUid) Build a new DTO for use with predicates.buildComponentTypeAndContentSlotValidationDto(String typeCode, String contentSlotUid, String pageId) Build a new DTO for use with predicates.protected CatalogVersionServiceprotected CMSAdminComponentServiceprotected CMSAdminContentSlotServiceprotected CMSAdminPageServicevoidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsAdminComponentService(CMSAdminComponentService cmsAdminComponentService) voidsetCmsAdminContentSlotService(CMSAdminContentSlotService cmsAdminContentSlotService) voidsetCmsAdminPageService(CMSAdminPageService cmsAdminPageService)
-
Constructor Details
-
ValidationDtoFactory
public ValidationDtoFactory()
-
-
Method Details
-
buildComponentAndContentSlotValidationDto
public ComponentAndContentSlotValidationDto buildComponentAndContentSlotValidationDto(String componentUid, String contentSlotUid) Build a new DTO for use with predicates.- Parameters:
componentUid-contentSlotUid-- Returns:
- the new DTO
- Throws:
UnknownIdentifierException- when the component or the slot cannot be foundAmbiguousIdentifierException- when more than one component or slot is found
-
buildComponentTypeAndContentSlotValidationDto
public ComponentTypeAndContentSlotValidationDto buildComponentTypeAndContentSlotValidationDto(String typeCode, String contentSlotUid, String pageId) Build a new DTO for use with predicates.- Parameters:
typeCode-contentSlotUid- the content slot idpageId- the page id- Returns:
- the new DTO
- Throws:
UnknownIdentifierException- when the slot cannot be foundAmbiguousIdentifierException- when more than one slot is found
-
getCmsAdminContentSlotService
-
setCmsAdminContentSlotService
-
getCmsAdminComponentService
-
setCmsAdminComponentService
-
getCmsAdminPageService
-
setCmsAdminPageService
-
getCatalogVersionService
-
setCatalogVersionService
-