1 /*
2 * Copyright 2006-2008 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
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.ole.module.purap.document.service;
17
18 import org.kuali.ole.module.purap.util.cxml.B2BShoppingCart;
19 import org.kuali.rice.kew.api.exception.WorkflowException;
20 import org.kuali.rice.kim.api.identity.Person;
21
22 import java.util.List;
23
24 /**
25 * These items will allow a user to punch out for shopping and will create requisitions from an order.
26 */
27 public interface B2BShoppingService {
28
29 /**
30 * Get URL to punch out to
31 *
32 * @param User ID punching out
33 * @return URL to punch out to
34 */
35 public String getPunchOutUrl(Person user);
36
37 /**
38 * Create requisition(s) from cxml and return list for display
39 *
40 * @param cxml cXml string
41 * @param user User doing the requisitioning
42 * @return List of requisitions
43 */
44 public List createRequisitionsFromCxml(B2BShoppingCart message, Person user) throws WorkflowException;
45
46
47 }