@Service @Transactional(propagation=MANDATORY) public class TemplateDomainServiceImpl extends java.lang.Object implements TemplateDomainService
| Constructor and Description |
|---|
TemplateDomainServiceImpl() |
| 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(com.clusterra.iam.core.application.tenant.TenantId tenantId,
java.lang.Integer majorVersion,
java.lang.Integer minorVersion,
java.lang.String name) |
void |
deleteTemplate(TemplateId templateId) |
java.util.List<Template> |
findAllTemplates(com.clusterra.iam.core.application.tenant.TenantId tenantId) |
Template |
findBy(TemplateId templateId) |
org.springframework.data.domain.Page<Template> |
findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId,
org.springframework.data.domain.Pageable pageable,
java.lang.String searchBy) |
Template |
findByName(com.clusterra.iam.core.application.tenant.TenantId tenantId,
java.lang.String name) |
SectionTemplate |
findSectionTemplateBy(SectionTemplateId sectionTemplateId) |
java.util.List<SectionTemplate> |
findSectionTemplates(TemplateId templateId) |
java.util.Set<SectionType> |
findSectionTypesUsedBy(TemplateId templateId) |
void |
markReady(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) |
public Template createTemplate(com.clusterra.iam.core.application.tenant.TenantId tenantId, java.lang.Integer majorVersion, java.lang.Integer minorVersion, java.lang.String name) throws TemplateAlreadyExistsException
createTemplate in interface TemplateDomainServiceTemplateAlreadyExistsExceptionpublic Template updateTemplateName(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
updateTemplateName in interface TemplateDomainServiceTemplateNotFoundExceptionpublic void deleteTemplate(TemplateId templateId) throws TemplateNotFoundException
deleteTemplate in interface TemplateDomainServiceTemplateNotFoundExceptionpublic Template findBy(TemplateId templateId) throws TemplateNotFoundException
findBy in interface TemplateDomainServiceTemplateNotFoundExceptionpublic Template findByName(com.clusterra.iam.core.application.tenant.TenantId tenantId, java.lang.String name)
findByName in interface TemplateDomainServicepublic org.springframework.data.domain.Page<Template> findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId, org.springframework.data.domain.Pageable pageable, java.lang.String searchBy)
findBy in interface TemplateDomainServicepublic java.util.List<Template> findAllTemplates(com.clusterra.iam.core.application.tenant.TenantId tenantId)
findAllTemplates in interface TemplateDomainServicepublic void markReady(TemplateId templateId) throws TemplateNotFoundException
markReady in interface TemplateDomainServiceTemplateNotFoundExceptionpublic java.util.Set<SectionType> findSectionTypesUsedBy(TemplateId templateId) throws TemplateNotFoundException
findSectionTypesUsedBy in interface TemplateDomainServiceTemplateNotFoundExceptionpublic SectionTemplate addTextSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTextSection in interface TemplateDomainServiceTemplateNotFoundExceptionpublic SectionTemplate addTitleSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTitleSection in interface TemplateDomainServiceTemplateNotFoundExceptionpublic SectionTemplate addTocSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
addTocSection in interface TemplateDomainServiceTemplateNotFoundExceptionpublic SectionTemplate findSectionTemplateBy(SectionTemplateId sectionTemplateId) throws SectionTemplateNotFoundException
findSectionTemplateBy in interface TemplateDomainServiceSectionTemplateNotFoundExceptionpublic SectionTemplate addHistorySection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addHistorySection in interface TemplateDomainServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsExceptionpublic SectionTemplate addTermSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addTermSection in interface TemplateDomainServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsExceptionpublic SectionTemplate addReferenceSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
addReferenceSection in interface TemplateDomainServiceTemplateNotFoundExceptionSectionTemplateAlreadyExistsExceptionpublic void removeSection(TemplateId templateId, SectionTemplateId sectionTemplateId) throws TemplateNotFoundException, SectionTemplateNotFoundException
removeSection in interface TemplateDomainServiceTemplateNotFoundExceptionSectionTemplateNotFoundExceptionpublic java.util.List<SectionTemplate> findSectionTemplates(TemplateId templateId) throws TemplateNotFoundException
findSectionTemplates in interface TemplateDomainServiceTemplateNotFoundExceptionpublic SectionTemplate updateSectionOrder(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.Integer orderIndex) throws SectionTemplateNotFoundException, TemplateNotFoundException
updateSectionOrder in interface TemplateDomainServiceSectionTemplateNotFoundExceptionTemplateNotFoundExceptionpublic SectionTemplate updateSectionName(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateNotFoundException
updateSectionName in interface TemplateDomainServiceTemplateNotFoundExceptionSectionTemplateNotFoundException