@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
SectionFacade
assembleSections
in interface SectionFacade
sections
- List of Section
to assembleSectionDto
.CillaServiceException
public Section persistSection(SectionDto dto, Page page) throws CillaServiceException
SectionFacade
SectionDto
.persistSection
in interface SectionFacade
dto
- SectionDto
to persistpage
- Page
this section belongs toSection
that was persistedCillaServiceException
public void deleteSection(Section entity) throws CillaServiceException
SectionFacade
Section
and all its dependencies.deleteSection
in interface SectionFacade
entity
- Section
to deleteCillaServiceException
public SectionDto createSection(String type) throws CillaServiceException
SectionFacade
SectionDto
of the given type.createSection
in interface SectionFacade
type
- Section typeSectionDto
that was createdCillaServiceException
public Collection<String> getSectionTypes()
SectionFacade
getSectionTypes
in interface SectionFacade
Copyright © 2009–2016. All rights reserved.