]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
78ed7b0eec9c278a9002a5e2b241625acc48bf37
[tmp/jakarta-migration.git] /
1 /*
2  * (C) Copyright 2009 Nuxeo SA (http://nuxeo.com/) and contributors.
3  *
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the GNU Lesser General Public License
6  * (LGPL) version 2.1 which accompanies this distribution, and is available at
7  * http://www.gnu.org/licenses/lgpl.html
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * Contributors:
15  *     mcedica
16  */
17 package org.collectionspace.ecm.platform.quote.workflow.services;
18
19 import java.util.ArrayList;
20
21 import org.nuxeo.ecm.core.api.ClientException;
22 import org.nuxeo.ecm.core.api.CoreSession;
23 import org.nuxeo.ecm.core.api.DocumentModel;
24
25 public interface QuotesModerationService {
26
27     /**
28      * Starts the moderation process on given Comment posted on a documentModel.
29      *
30      * @param session the coreSession
31      * @param document the document were the comment is posted
32      * @param commentId the commentId
33      * @throws ClientException
34      */
35     void startModeration(CoreSession session, DocumentModel document,
36             String commentId, ArrayList<String> moderators)
37             throws ClientException;
38
39     /**
40      * Gets the moderation process for the given Comment posted on a documentModel.
41      *
42      * @param session the coreSession
43      * @param document the document were the comment is posted
44      * @param commentId the commentId
45      * @throws ClientException
46      */
47     /**
48     ProcessInstance getModerationProcess(JbpmService jbpmService,
49             CoreSession session, DocumentModel doc, String commentId)
50             throws ClientException;
51             **/
52
53     /**
54      * Approve the comment with the given commentId.
55      *
56      * @param session the coreSession
57      * @param document the document were the comment is posted
58      * @param commentId the commentId
59      * @throws ClientException
60      */
61     void approveQuote(CoreSession session, DocumentModel document,
62             String commentId) throws ClientException;
63
64     /**
65      * Reject the comment with the given commentId.
66      *
67      * @param session the coreSession
68      * @param document the document were the comment is posted
69      * @param commentId the commentId
70      * @throws ClientException
71      */
72     void rejectQuote(CoreSession session, DocumentModel document,
73             String commentId) throws ClientException;
74
75     /**
76      * Publish the given comment.
77      *
78      * @param session the coreSession
79      * @param comment the comment to publish
80      * @throws ClientException
81      */
82     void publishQuote(CoreSession session, DocumentModel comment)
83             throws ClientException;
84
85 }