public interface TemplateDomainService
| 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) |
Template createTemplate(com.clusterra.iam.core.application.tenant.TenantId tenantId, java.lang.Integer majorVersion, java.lang.Integer minorVersion, java.lang.String name) throws TemplateAlreadyExistsException
TemplateAlreadyExistsExceptionTemplate updateTemplateName(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
TemplateNotFoundExceptionvoid deleteTemplate(TemplateId templateId) throws TemplateNotFoundException
TemplateNotFoundExceptionSectionTemplate addHistorySection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
SectionTemplate addReferenceSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
SectionTemplate addTermSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateAlreadyExistsException
SectionTemplate addTextSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
TemplateNotFoundExceptionSectionTemplate addTitleSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
TemplateNotFoundExceptionSectionTemplate addTocSection(TemplateId templateId, java.lang.String name) throws TemplateNotFoundException
TemplateNotFoundExceptionvoid removeSection(TemplateId templateId, SectionTemplateId sectionTemplateId) throws TemplateNotFoundException, SectionTemplateNotFoundException
SectionTemplate updateSectionOrder(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.Integer orderIndex) throws SectionTemplateNotFoundException, TemplateNotFoundException
SectionTemplate updateSectionName(TemplateId templateId, SectionTemplateId sectionTemplateId, java.lang.String name) throws TemplateNotFoundException, SectionTemplateNotFoundException
SectionTemplate findSectionTemplateBy(SectionTemplateId sectionTemplateId) throws SectionTemplateNotFoundException
SectionTemplateNotFoundExceptionjava.util.List<SectionTemplate> findSectionTemplates(TemplateId templateId) throws TemplateNotFoundException
TemplateNotFoundExceptionTemplate findBy(TemplateId templateId) throws TemplateNotFoundException
TemplateNotFoundExceptionTemplate findByName(com.clusterra.iam.core.application.tenant.TenantId tenantId, java.lang.String name)
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)
java.util.List<Template> findAllTemplates(com.clusterra.iam.core.application.tenant.TenantId tenantId)
void markReady(TemplateId templateId) throws TemplateNotFoundException
TemplateNotFoundExceptionjava.util.Set<SectionType> findSectionTypesUsedBy(TemplateId templateId) throws TemplateNotFoundException
TemplateNotFoundException