01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.purap.service;
17:
18: import org.kuali.core.bo.user.UniversalUser;
19: import org.kuali.core.document.Document;
20: import org.kuali.module.purap.PurapWorkflowConstants.NodeDetails;
21: import org.kuali.module.purap.document.PurchasingAccountsPayableDocument;
22:
23: import edu.iu.uis.eden.exception.EdenUserNotFoundException;
24: import edu.iu.uis.eden.routeheader.DocumentRouteHeaderValue;
25:
26: public interface PurApWorkflowIntegrationService {
27:
28: /**
29: * Determine if action is requested of user at given node name
30: *
31: * @param documentNumber
32: * @param nodeName
33: * @param user
34: * @return boolean indicating if action is requested of user at given node name
35: */
36: public boolean isActionRequestedOfUserAtNodeName(
37: String documentNumber, String nodeName, UniversalUser user);
38:
39: /**
40: * Take all actions on the given document based on the given criteria
41: *
42: * @param document
43: * @param potentialAnnotation
44: * @param nodeName
45: * @param user
46: * @param networkIdToImpersonate
47: * @return
48: */
49: public boolean takeAllActionsForGivenCriteria(Document document,
50: String potentialAnnotation, String nodeName,
51: UniversalUser user, String super UserNetworkId);
52:
53: /**
54: * Determine if the document will stop at the given node in the future routing process
55: *
56: * @param document
57: * @param givenNodeDetail
58: * @return boolean indicating if document is going to stop at the given node
59: */
60: public boolean willDocumentStopAtGivenFutureRouteNode(
61: PurchasingAccountsPayableDocument document,
62: NodeDetails givenNodeDetail);
63:
64: public String getLastUserId(DocumentRouteHeaderValue routeHeader)
65: throws EdenUserNotFoundException;
66: }
|