@Service public class TemplateServiceImpl extends java.lang.Object implements TemplateService
| Constructor and Description |
|---|
TemplateServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
SectionTemplate |
addHistorySection(TemplateId templateId,
java.lang.String name) |
SectionTemplate |
addReferenceSection(TemplateId templateId,
java.lang.String name) |
SectionTemplate |
addTermSection(TemplateId templateId,
java.lang.String name) |
SectionTemplate |
addTextSection(TemplateId templateId,
java.lang.String name) |
SectionTemplate |
addTitleSection(TemplateId templateId,
java.lang.String name) |
SectionTemplate |
addTocSection(TemplateId templateId,
java.lang.String name) |
Template |
createTemplate(java.lang.Integer majorVersion,
java.lang.Integer minorVersion,
java.lang.String name) |
void |
deleteTemplate(TemplateId templateId) |
java.util.List<Template> |
findAllTemplates() |
org.springframework.data.domain.Page<Template> |
findBy(org.springframework.data.domain.Pageable pageable,
java.lang.String searchBy) |
Template |
findBy(TemplateId templateId) |
SectionTemplate |
findSectionTemplateBy(SectionTemplateId sectionTemplateId) |
java.util.List<SectionTemplate> |
findSectionTemplates(TemplateId templateId) |
java.util.Set<SectionType> |
findSectionTypesUsedBy(TemplateId templateId) |
void |
removeSection(TemplateId templateId,
SectionTemplateId sectionTemplateId) |
SectionTemplate |
updateSectionName(TemplateId templateId,
SectionTemplateId sectionTemplateId,
java.lang.String name) |
SectionTemplate |
updateSectionOrder(TemplateId templateId,
SectionTemplateId sectionTemplateId,
java.lang.Integer orderIndex) |
Template |
updateTemplateName(TemplateId templateId,
java.lang.String name) |
@Transactional public Template createTemplate(java.lang.Integer majorVersion, java.lang.Integer minorVersion, java.lang.String name) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException, TemplateAlreadyExistsException
createTemplate in interface TemplateServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedExceptionTemplateAlreadyExistsException@Transactional public Template updateTemplateName(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
updateTemplateName in interface TemplateServiceTemplateNotFoundException@Transactional public void deleteTemplate(TemplateId templateId) throws TemplateNotFoundException
deleteTemplate in interface TemplateServiceTemplateNotFoundException@Transactional public SectionTemplate addHistorySection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addHistorySection in interface TemplateServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsException@Transactional public SectionTemplate addReferenceSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addReferenceSection in interface TemplateServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsException@Transactional public SectionTemplate addTermSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addTermSection in interface TemplateServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsException@Transactional public SectionTemplate addTextSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTextSection in interface TemplateServiceTemplateNotFoundException@Transactional public SectionTemplate addTitleSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTitleSection in interface TemplateServiceTemplateNotFoundException@Transactional public SectionTemplate addTocSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTocSection in interface TemplateServiceTemplateNotFoundException@Transactional public void removeSection(TemplateId templateId, SectionTemplateId sectionTemplateId) throws TemplateNotFoundException, SectionTemplateNotFoundException
removeSection in interface TemplateServiceTemplateNotFoundExceptionSectionTemplateNotFoundException@Transactional public SectionTemplate updateSectionOrder(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.Integer orderIndex) throws SectionTemplateNotFoundException, TemplateNotFoundException
updateSectionOrder in interface TemplateServiceSectionTemplateNotFoundExceptionTemplateNotFoundException@Transactional public SectionTemplate updateSectionName(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.String name) throws SectionTemplateNotFoundException, TemplateNotFoundException
updateSectionName in interface TemplateServiceSectionTemplateNotFoundExceptionTemplateNotFoundException@Transactional public java.util.List<Template> findAllTemplates() throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException
findAllTemplates in interface TemplateServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedException@Transactional public org.springframework.data.domain.Page<Template> findBy(org.springframework.data.domain.Pageable pageable, java.lang.String searchBy) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException
findBy in interface TemplateServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedException@Transactional public java.util.List<SectionTemplate> findSectionTemplates(TemplateId templateId) throws TemplateNotFoundException
findSectionTemplates in interface TemplateServiceTemplateNotFoundException@Transactional public SectionTemplate findSectionTemplateBy(SectionTemplateId sectionTemplateId) throws SectionTemplateNotFoundException
findSectionTemplateBy in interface TemplateServiceSectionTemplateNotFoundException@Transactional public java.util.Set<SectionType> findSectionTypesUsedBy(TemplateId templateId) throws TemplateNotFoundException
findSectionTypesUsedBy in interface TemplateServiceTemplateNotFoundException@Transactional public Template findBy(TemplateId templateId) throws TemplateNotFoundException
findBy in interface TemplateServiceTemplateNotFoundException