
com.clusterra.pmbok.document.application.document.DocumentQueryService Maven / Gradle / Ivy
/*
* Copyright (c) 2014.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.clusterra.pmbok.document.application.document;
import com.clusterra.iam.core.application.tracker.NotAuthenticatedException;
import com.clusterra.pmbok.document.domain.model.document.DocumentId;
import com.clusterra.pmbok.document.domain.model.document.DocumentRevision;
import com.clusterra.pmbok.document.domain.model.template.Template;
import com.clusterra.pmbok.project.domain.model.ProjectVersionId;
import com.clusterra.pmbok.project.domain.service.ProjectNotFoundException;
import com.clusterra.pmbok.reference.domain.model.reference.Reference;
import com.clusterra.pmbok.document.domain.model.document.Document;
import com.clusterra.pmbok.document.domain.model.document.section.SectionContent;
import com.clusterra.pmbok.document.domain.service.document.DocumentNotFoundException;
import com.clusterra.pmbok.document.domain.service.template.TemplateNotFoundException;
import com.clusterra.pmbok.project.domain.model.ProjectId;
import com.clusterra.pmbok.term.domain.model.term.Term;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Set;
/**
* Created by dkuchugurov on 29.03.2014.
*/
public interface DocumentQueryService {
Document findBy(DocumentId documentId) throws DocumentNotFoundException;
Page findBy(Pageable pageable, String searchBy) throws NotAuthenticatedException;
Page findBy(Pageable pageable, ProjectId projectId, String searchBy) throws ProjectNotFoundException, NotAuthenticatedException;
Page findBy(Pageable pageable, ProjectVersionId projectVersionId, String searchBy) throws NotAuthenticatedException;
Set findUsedTemplates(ProjectVersionId projectVersionId);
DocumentRevision getRevision(DocumentId documentId) throws DocumentNotFoundException;
List findSectionContents(DocumentId documentId) throws DocumentNotFoundException, TemplateNotFoundException, NotAuthenticatedException;
Page getAssociatedTerms(Pageable pageable, DocumentId documentId, String searchBy) throws DocumentNotFoundException, NotAuthenticatedException;
Page getAssociatedReferences(Pageable pageable, DocumentId documentId, String searchBy) throws DocumentNotFoundException, NotAuthenticatedException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy