Package io.meeds.layout.service
Class SectionTemplateService
java.lang.Object
io.meeds.layout.service.SectionTemplateService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSectionTemplateService(LayoutAclService layoutAclService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.attachment.AttachmentService attachmentService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, SectionTemplateStorage sectionTemplateStorage, SectionTemplateLayoutStorage sectionTemplateLayoutStorage, ContainerLayoutService containerLayoutService, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptioncreateSectionTemplate(SectionTemplate sectionTemplate) createSectionTemplate(SectionTemplate sectionTemplate, String username) voiddeleteSectionTemplate(long id) voiddeleteSectionTemplate(long id, String username) generateSectionTemplateContent(long id, String username) longgenerateSectionTemplateNodeId(long id, String username) getSectionTemplate(long id) getSectionTemplate(long id, Locale locale) getSectionTemplates(Locale locale) saveAsSectionTemplate(org.exoplatform.portal.mop.page.PageKey pageKey, long containerId, String username) updateSectionTemplate(SectionTemplate sectionTemplate) updateSectionTemplate(SectionTemplate sectionTemplate, String username)
-
Field Details
-
TEMPLATE_CREATED_EVENT
- See Also:
-
TEMPLATE_UPDATED_EVENT
- See Also:
-
TEMPLATE_DELETED_EVENT
- See Also:
-
-
Constructor Details
-
SectionTemplateService
public SectionTemplateService(LayoutAclService layoutAclService, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.social.attachment.AttachmentService attachmentService, org.exoplatform.services.resources.LocaleConfigService localeConfigService, SectionTemplateStorage sectionTemplateStorage, SectionTemplateLayoutStorage sectionTemplateLayoutStorage, ContainerLayoutService containerLayoutService, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
getSectionTemplates
-
getSectionTemplates
-
getSectionTemplate
-
getSectionTemplate
public SectionTemplateDetail getSectionTemplate(long id, Locale locale) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
createSectionTemplate
public SectionTemplate createSectionTemplate(SectionTemplate sectionTemplate, String username) throws IllegalAccessException - Throws:
IllegalAccessException
-
createSectionTemplate
-
deleteSectionTemplate
public void deleteSectionTemplate(long id, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteSectionTemplate
public void deleteSectionTemplate(long id) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
updateSectionTemplate
public SectionTemplate updateSectionTemplate(SectionTemplate sectionTemplate, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateSectionTemplate
public SectionTemplate updateSectionTemplate(SectionTemplate sectionTemplate) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
saveAsSectionTemplate
public SectionTemplate saveAsSectionTemplate(org.exoplatform.portal.mop.page.PageKey pageKey, long containerId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
generateSectionTemplateNodeId
public long generateSectionTemplateNodeId(long id, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
generateSectionTemplateContent
public String generateSectionTemplateContent(long id, String username) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-