View Javadoc
1   /**
2    * Copyright 2005-2016 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.rice.kew.framework.actionlist;
17  
18  import java.util.List;
19  import java.util.Map;
20  
21  import javax.jws.WebMethod;
22  import javax.jws.WebParam;
23  import javax.jws.WebResult;
24  import javax.jws.WebService;
25  import javax.jws.soap.SOAPBinding;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.XmlElementWrapper;
28  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
29  
30  import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
31  import org.kuali.rice.kew.api.KewApiConstants;
32  import org.kuali.rice.kew.api.action.ActionItem;
33  import org.kuali.rice.kew.api.action.ActionItemCustomization;
34  import org.kuali.rice.kew.framework.KewFrameworkServiceLocator;
35  
36  /**
37   * A remotable service which handles processing of a client application's custom processing of
38   * action list attributes.
39   *
40   * @author Kuali Rice Team (rice.collab@kuali.org)
41   */
42  @WebService(name = KewFrameworkServiceLocator.ACTION_LIST_CUSTOMIZATION_HANDLER_SERVICE, targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0)
43  @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
44  public interface ActionListCustomizationHandlerService {
45      
46      /**
47       * <p>Returns a list of Action Item Customizations from the given list of Action Items and Principal ID.
48       * </p>
49       *
50       * @param principalId the id of the principal on whose behalf these customizations are being processed
51       * @param actionItems the list of Action Items to get customizations for.
52       * @return the list of Action Item Customizations
53       * @throws RiceIllegalArgumentException if the given principalId is a null or blank value
54       */
55      @WebMethod(operationName = "customizeActionList")
56      @WebResult(name = "actionListCustomizations")
57      @XmlElementWrapper(name = "actionListCustomizations", required = false)
58      @XmlElement(name = "actionListCustomization", required = false)
59      List<ActionItemCustomization> customizeActionList(
60              @WebParam(name = "principalId") String principalId,
61              @WebParam(name = "actionItems") List<ActionItem> actionItems)
62          throws RiceIllegalArgumentException;
63  
64  }