@Component public class SectionFacadeImpl extends Object implements SectionFacade
SectionFacade.| Constructor and Description |
|---|
SectionFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<SectionDto> |
assembleSections(List<Section> sections)
Assemble all sections.
|
SectionDto |
createSection(String type)
Creates a new
SectionDto of the given type. |
void |
deleteSection(Section entity)
Deletes a
Section and all its dependencies. |
Collection<String> |
getSectionTypes()
Gets a collection of all defined section types.
|
Section |
persistSection(SectionDto dto,
Page page)
Persists a single
SectionDto. |
void |
setup() |
public SectionFacadeImpl()
@PostConstruct public void setup()
public List<SectionDto> assembleSections(List<Section> sections) throws CillaServiceException
SectionFacadeassembleSections in interface SectionFacadesections - List of Section to assembleSectionDto.CillaServiceExceptionpublic Section persistSection(SectionDto dto, Page page) throws CillaServiceException
SectionFacadeSectionDto.persistSection in interface SectionFacadedto - SectionDto to persistpage - Page this section belongs toSection that was persistedCillaServiceExceptionpublic void deleteSection(Section entity) throws CillaServiceException
SectionFacadeSection and all its dependencies.deleteSection in interface SectionFacadeentity - Section to deleteCillaServiceExceptionpublic SectionDto createSection(String type) throws CillaServiceException
SectionFacadeSectionDto of the given type.createSection in interface SectionFacadetype - Section typeSectionDto that was createdCillaServiceExceptionpublic Collection<String> getSectionTypes()
SectionFacadegetSectionTypes in interface SectionFacadeCopyright © 2009–2016. All rights reserved.