@Service @Transactional(propagation=MANDATORY) public class DocumentDomainServiceImpl extends java.lang.Object implements DocumentDomainService
| Constructor and Description |
|---|
DocumentDomainServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Document |
approve(DocumentId documentId,
java.lang.String message) |
Document |
create(com.clusterra.iam.core.application.tenant.TenantId tenantId,
com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId,
TemplateId templateId) |
void |
deleteBy(DocumentId documentId) |
void |
deleteBy(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId) |
Document |
edit(DocumentId documentId) |
Document |
findBy(DocumentId documentId) |
java.util.List<Document> |
findBy(TemplateId documentId) |
org.springframework.data.domain.Page<Document> |
findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId,
org.springframework.data.domain.Pageable pageable,
com.clusterra.pmbok.project.domain.model.ProjectId projectId,
java.lang.String searchBy) |
org.springframework.data.domain.Page<Document> |
findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId,
org.springframework.data.domain.Pageable pageable,
com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId,
java.lang.String searchBy) |
org.springframework.data.domain.Page<Document> |
findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId,
org.springframework.data.domain.Pageable pageable,
java.lang.String searchBy) |
java.util.List<SectionContent> |
findSectionContentsBy(com.clusterra.iam.core.application.tenant.TenantId tenantId,
DocumentId documentId) |
java.util.Set<Template> |
findUsedTemplates(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId) |
DocumentRevision |
getRevision(DocumentId documentId) |
Document |
publish(DocumentId documentId,
java.lang.String message) |
PersistedTextSectionContent |
updateTextSection(DocumentId documentId,
SectionTemplateId sectionTemplateId,
java.lang.String text) |
public Document create(com.clusterra.iam.core.application.tenant.TenantId tenantId, com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId, TemplateId templateId) throws DocumentAlreadyExistsException, com.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundException, TemplateNotFoundException
create in interface DocumentDomainServiceDocumentAlreadyExistsExceptioncom.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundExceptionTemplateNotFoundExceptionpublic void deleteBy(DocumentId documentId) throws DocumentNotFoundException
deleteBy in interface DocumentDomainServiceDocumentNotFoundExceptionpublic void deleteBy(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId)
throws DocumentNotFoundException
deleteBy in interface DocumentDomainServiceDocumentNotFoundExceptionpublic Document publish(DocumentId documentId, java.lang.String message) throws DocumentNotFoundException
publish in interface DocumentDomainServiceDocumentNotFoundExceptionpublic Document approve(DocumentId documentId, java.lang.String message) throws DocumentNotFoundException
approve in interface DocumentDomainServiceDocumentNotFoundExceptionpublic Document edit(DocumentId documentId) throws DocumentNotFoundException, DocumentNotEditableException
edit in interface DocumentDomainServiceDocumentNotFoundExceptionDocumentNotEditableExceptionpublic Document findBy(DocumentId documentId) throws DocumentNotFoundException
findBy in interface DocumentDomainServiceDocumentNotFoundExceptionpublic java.util.List<Document> findBy(TemplateId documentId) throws TemplateNotFoundException
findBy in interface DocumentDomainServiceTemplateNotFoundExceptionpublic org.springframework.data.domain.Page<Document> findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId, org.springframework.data.domain.Pageable pageable, java.lang.String searchBy)
findBy in interface DocumentDomainServicepublic org.springframework.data.domain.Page<Document> findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId, org.springframework.data.domain.Pageable pageable, com.clusterra.pmbok.project.domain.model.ProjectId projectId, java.lang.String searchBy) throws com.clusterra.pmbok.project.domain.service.ProjectNotFoundException
findBy in interface DocumentDomainServicecom.clusterra.pmbok.project.domain.service.ProjectNotFoundExceptionpublic org.springframework.data.domain.Page<Document> findBy(com.clusterra.iam.core.application.tenant.TenantId tenantId, org.springframework.data.domain.Pageable pageable, com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId, java.lang.String searchBy)
findBy in interface DocumentDomainServicepublic java.util.Set<Template> findUsedTemplates(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId)
findUsedTemplates in interface DocumentDomainServicepublic DocumentRevision getRevision(DocumentId documentId) throws DocumentNotFoundException
getRevision in interface DocumentDomainServiceDocumentNotFoundExceptionpublic java.util.List<SectionContent> findSectionContentsBy(com.clusterra.iam.core.application.tenant.TenantId tenantId, DocumentId documentId) throws DocumentNotFoundException, TemplateNotFoundException
findSectionContentsBy in interface DocumentDomainServiceDocumentNotFoundExceptionTemplateNotFoundExceptionpublic PersistedTextSectionContent updateTextSection(DocumentId documentId, SectionTemplateId sectionTemplateId, java.lang.String text) throws DocumentNotFoundException, SectionTemplateNotFoundException
updateTextSection in interface DocumentDomainServiceDocumentNotFoundExceptionSectionTemplateNotFoundException