@Service public class DocumentCommandServiceImpl extends java.lang.Object implements DocumentCommandService
| Constructor and Description |
|---|
DocumentCommandServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Document |
approve(DocumentId documentId,
java.lang.String message) |
Document |
create(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId,
TemplateId templateId) |
void |
createAssociation(DocumentId documentId,
com.clusterra.pmbok.reference.domain.model.reference.ReferenceId referenceId) |
void |
createAssociation(DocumentId documentId,
com.clusterra.pmbok.term.domain.model.term.TermId termId) |
void |
deleteAssociation(DocumentId documentId,
com.clusterra.pmbok.reference.domain.model.reference.ReferenceId referenceId) |
void |
deleteAssociation(DocumentId documentId,
com.clusterra.pmbok.term.domain.model.term.TermId termId) |
void |
deleteBy(DocumentId documentId) |
Document |
edit(DocumentId documentId) |
Document |
publish(DocumentId documentId,
java.lang.String message) |
PersistedTextSectionContent |
updateTextSection(DocumentId documentId,
SectionTemplateId sectionTemplateId,
java.lang.String text) |
@Transactional public Document create(com.clusterra.pmbok.project.domain.model.ProjectVersionId projectVersionId, TemplateId templateId) throws com.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundException, DocumentAlreadyExistsException, TemplateNotFoundException, com.clusterra.iam.core.application.tracker.NotAuthenticatedException
create in interface DocumentCommandServicecom.clusterra.pmbok.project.domain.service.ProjectVersionNotFoundExceptionDocumentAlreadyExistsExceptionTemplateNotFoundExceptioncom.clusterra.iam.core.application.tracker.NotAuthenticatedException@Transactional public void deleteBy(DocumentId documentId) throws DocumentNotFoundException
deleteBy in interface DocumentCommandServiceDocumentNotFoundException@Transactional public Document publish(DocumentId documentId, java.lang.String message) throws DocumentNotFoundException
publish in interface DocumentCommandServiceDocumentNotFoundException@Transactional public Document approve(DocumentId documentId, java.lang.String message) throws DocumentNotFoundException
approve in interface DocumentCommandServiceDocumentNotFoundException@Transactional public Document edit(DocumentId documentId) throws DocumentNotFoundException, DocumentNotEditableException
edit in interface DocumentCommandServiceDocumentNotFoundExceptionDocumentNotEditableException@Transactional public PersistedTextSectionContent updateTextSection(DocumentId documentId, SectionTemplateId sectionTemplateId, java.lang.String text) throws DocumentNotFoundException, SectionTemplateNotFoundException
updateTextSection in interface DocumentCommandServiceDocumentNotFoundExceptionSectionTemplateNotFoundException@Transactional public void createAssociation(DocumentId documentId, com.clusterra.pmbok.reference.domain.model.reference.ReferenceId referenceId) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException, com.clusterra.pmbok.reference.domain.service.ReferenceNotFoundException, DocumentNotFoundException
createAssociation in interface DocumentCommandServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedExceptioncom.clusterra.pmbok.reference.domain.service.ReferenceNotFoundExceptionDocumentNotFoundException@Transactional public void deleteAssociation(DocumentId documentId, com.clusterra.pmbok.reference.domain.model.reference.ReferenceId referenceId) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException, com.clusterra.pmbok.reference.domain.service.ReferenceNotFoundException, DocumentNotFoundException
deleteAssociation in interface DocumentCommandServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedExceptioncom.clusterra.pmbok.reference.domain.service.ReferenceNotFoundExceptionDocumentNotFoundException@Transactional public void createAssociation(DocumentId documentId, com.clusterra.pmbok.term.domain.model.term.TermId termId) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException, com.clusterra.pmbok.term.domain.service.TermNotFoundException, DocumentNotFoundException
createAssociation in interface DocumentCommandServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedExceptioncom.clusterra.pmbok.term.domain.service.TermNotFoundExceptionDocumentNotFoundException@Transactional public void deleteAssociation(DocumentId documentId, com.clusterra.pmbok.term.domain.model.term.TermId termId) throws com.clusterra.iam.core.application.tracker.NotAuthenticatedException, com.clusterra.pmbok.term.domain.service.TermNotFoundException, DocumentNotFoundException
deleteAssociation in interface DocumentCommandServicecom.clusterra.iam.core.application.tracker.NotAuthenticatedExceptioncom.clusterra.pmbok.term.domain.service.TermNotFoundExceptionDocumentNotFoundException