001: /*
002: * Copyright 2005-2007 The Kuali Foundation.
003: *
004: *
005: * Licensed under the Educational Community License, Version 1.0 (the "License");
006: * you may not use this file except in compliance with the License.
007: * You may obtain a copy of the License at
008: *
009: * http://www.opensource.org/licenses/ecl1.php
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package edu.iu.uis.eden.server;
018:
019: import java.rmi.RemoteException;
020:
021: import javax.xml.namespace.QName;
022:
023: import edu.iu.uis.eden.KEWServiceLocator;
024: import edu.iu.uis.eden.SpringLoader;
025: import edu.iu.uis.eden.clientapp.vo.AdHocRevokeVO;
026: import edu.iu.uis.eden.clientapp.vo.DocumentContentVO;
027: import edu.iu.uis.eden.clientapp.vo.MovePointVO;
028: import edu.iu.uis.eden.clientapp.vo.ResponsiblePartyVO;
029: import edu.iu.uis.eden.clientapp.vo.ReturnPointVO;
030: import edu.iu.uis.eden.clientapp.vo.RouteHeaderVO;
031: import edu.iu.uis.eden.clientapp.vo.UserIdVO;
032: import edu.iu.uis.eden.clientapp.vo.WorkgroupIdVO;
033: import edu.iu.uis.eden.exception.WorkflowException;
034:
035: /**
036: * @workflow.webservice name="WorkflowDocumentActions"
037: */
038: public class WorkflowDocumentActionsServiceEndpoint implements
039: WorkflowDocumentActions {
040:
041: private WorkflowDocumentActions documentActions;
042:
043: public void init(Object context) {
044: // fetch the service directly from the SpringLoader to gaurantee we are fetching the local, in-memory service
045: this .documentActions = (WorkflowDocumentActions) SpringLoader
046: .getInstance()
047: .getService(
048: new QName(
049: KEWServiceLocator.WORKFLOW_DOCUMENT_ACTIONS_SERVICE));
050: }
051:
052: public void destroy() {
053: }
054:
055: public RouteHeaderVO releaseWorkgroupAuthority(UserIdVO userId,
056: RouteHeaderVO routeHeader, WorkgroupIdVO workgroupId,
057: String annotation) throws RemoteException,
058: WorkflowException {
059: return documentActions.takeWorkgroupAuthority(userId,
060: routeHeader, workgroupId, annotation);
061: }
062:
063: public RouteHeaderVO acknowledgeDocument(UserIdVO userId,
064: RouteHeaderVO routeHeader, String annotation)
065: throws RemoteException, WorkflowException {
066: return documentActions.acknowledgeDocument(userId, routeHeader,
067: annotation);
068: }
069:
070: public RouteHeaderVO approveDocument(UserIdVO userId,
071: RouteHeaderVO routeHeader, String annotation)
072: throws RemoteException, WorkflowException {
073: return documentActions.approveDocument(userId, routeHeader,
074: annotation);
075: }
076:
077: public RouteHeaderVO appSpecificRouteDocument(UserIdVO userId,
078: RouteHeaderVO routeHeader, String actionRequested,
079: String nodeName, String annotation,
080: ResponsiblePartyVO responsibleParty,
081: String responsibilityDesc, boolean ignorePrevActions)
082: throws RemoteException, WorkflowException {
083: return documentActions
084: .appSpecificRouteDocument(userId, routeHeader,
085: actionRequested, nodeName, annotation,
086: responsibleParty, responsibilityDesc,
087: ignorePrevActions);
088: }
089:
090: public RouteHeaderVO revokeAdHocRequests(UserIdVO userId,
091: RouteHeaderVO routeHeader, AdHocRevokeVO revoke,
092: String annotation) throws RemoteException,
093: WorkflowException {
094: return documentActions.revokeAdHocRequests(userId, routeHeader,
095: revoke, annotation);
096: }
097:
098: /**
099: * @deprecated see WorkflowDocumentActions
100: */
101: public RouteHeaderVO blanketApproval(UserIdVO userId,
102: RouteHeaderVO routeHeader, String annotation,
103: Integer routeLevel) throws RemoteException,
104: WorkflowException {
105: return documentActions.blanketApproval(userId, routeHeader,
106: annotation, routeLevel);
107: }
108:
109: public RouteHeaderVO blanketApprovalToNodes(UserIdVO userId,
110: RouteHeaderVO routeHeader, String annotation,
111: String[] nodeNames) throws RemoteException,
112: WorkflowException {
113: return documentActions.blanketApprovalToNodes(userId,
114: routeHeader, annotation, nodeNames);
115: }
116:
117: public RouteHeaderVO cancelDocument(UserIdVO userId,
118: RouteHeaderVO routeHeader, String annotation)
119: throws RemoteException, WorkflowException {
120: return documentActions.cancelDocument(userId, routeHeader,
121: annotation);
122: }
123:
124: public RouteHeaderVO clearFYIDocument(UserIdVO userId,
125: RouteHeaderVO routeHeader) throws RemoteException,
126: WorkflowException {
127: return documentActions.clearFYIDocument(userId, routeHeader);
128: }
129:
130: public RouteHeaderVO completeDocument(UserIdVO userId,
131: RouteHeaderVO routeHeader, String annotation)
132: throws RemoteException, WorkflowException {
133: return documentActions.completeDocument(userId, routeHeader,
134: annotation);
135: }
136:
137: public RouteHeaderVO createDocument(UserIdVO userId,
138: RouteHeaderVO routeHeader) throws RemoteException,
139: WorkflowException {
140: return documentActions.createDocument(userId, routeHeader);
141: }
142:
143: public void deleteDocument(UserIdVO userId,
144: RouteHeaderVO routeHeader) throws RemoteException,
145: WorkflowException {
146: documentActions.deleteDocument(userId, routeHeader);
147: }
148:
149: public RouteHeaderVO disapproveDocument(UserIdVO userId,
150: RouteHeaderVO routeHeader, String annotation)
151: throws RemoteException, WorkflowException {
152: return documentActions.disapproveDocument(userId, routeHeader,
153: annotation);
154: }
155:
156: public void logDocumentAction(UserIdVO userId,
157: RouteHeaderVO routeHeader, String annotation)
158: throws RemoteException, WorkflowException {
159: documentActions.logDocumentAction(userId, routeHeader,
160: annotation);
161: }
162:
163: /**
164: * @deprecated see WorkflowDocumentActions
165: */
166: public RouteHeaderVO returnDocumentToPreviousRouteLevel(
167: UserIdVO userId, RouteHeaderVO routeHeader,
168: Integer destRouteLevel, String annotation)
169: throws RemoteException, WorkflowException {
170: return documentActions.returnDocumentToPreviousRouteLevel(
171: userId, routeHeader, destRouteLevel, annotation);
172: }
173:
174: public RouteHeaderVO routeDocument(UserIdVO userId,
175: RouteHeaderVO routeHeader, String annotation)
176: throws RemoteException, WorkflowException {
177: return documentActions.routeDocument(userId, routeHeader,
178: annotation);
179: }
180:
181: public RouteHeaderVO saveDocument(UserIdVO userId,
182: RouteHeaderVO routeHeader, String annotation)
183: throws RemoteException, WorkflowException {
184: return documentActions.saveDocument(userId, routeHeader,
185: annotation);
186: }
187:
188: public RouteHeaderVO saveRoutingData(UserIdVO userId,
189: RouteHeaderVO routeHeader) throws RemoteException,
190: WorkflowException {
191: return documentActions.saveRoutingData(userId, routeHeader);
192: }
193:
194: public RouteHeaderVO takeWorkgroupAuthority(UserIdVO userId,
195: RouteHeaderVO routeHeader, WorkgroupIdVO workgroupId,
196: String annotation) throws RemoteException,
197: WorkflowException {
198: return documentActions.takeWorkgroupAuthority(userId,
199: routeHeader, workgroupId, annotation);
200: }
201:
202: public RouteHeaderVO returnDocumentToPreviousNode(UserIdVO userId,
203: RouteHeaderVO routeHeader, ReturnPointVO returnPoint,
204: String annotation) throws RemoteException,
205: WorkflowException {
206: return documentActions.returnDocumentToPreviousNode(userId,
207: routeHeader, returnPoint, annotation);
208: }
209:
210: public RouteHeaderVO moveDocument(UserIdVO userId,
211: RouteHeaderVO routeHeader, MovePointVO movePoint,
212: String annotation) throws RemoteException,
213: WorkflowException {
214: return documentActions.moveDocument(userId, routeHeader,
215: movePoint, annotation);
216: }
217:
218: public RouteHeaderVO super UserApprove(UserIdVO userId,
219: RouteHeaderVO routeHeaderVO, String annotation)
220: throws RemoteException, WorkflowException {
221: return documentActions.super UserApprove(userId, routeHeaderVO,
222: annotation);
223: }
224:
225: public RouteHeaderVO super UserActionRequestApprove(UserIdVO userId,
226: RouteHeaderVO routeHeaderVO, Long actionRequestId,
227: String annotation) throws RemoteException,
228: WorkflowException {
229: return documentActions.super UserActionRequestApprove(userId,
230: routeHeaderVO, actionRequestId, annotation);
231: }
232:
233: public RouteHeaderVO super UserDisapprove(UserIdVO userId,
234: RouteHeaderVO routeHeaderVO, String annotation)
235: throws RemoteException, WorkflowException {
236: return documentActions.super UserDisapprove(userId,
237: routeHeaderVO, annotation);
238: }
239:
240: public RouteHeaderVO super UserCancel(UserIdVO userId,
241: RouteHeaderVO routeHeaderVO, String annotation)
242: throws RemoteException, WorkflowException {
243: return documentActions.super UserCancel(userId, routeHeaderVO,
244: annotation);
245: }
246:
247: public DocumentContentVO saveDocumentContent(
248: DocumentContentVO documentContent) throws RemoteException,
249: WorkflowException {
250: return documentActions.saveDocumentContent(documentContent);
251: }
252:
253: }
|