| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ActionListCustomizationHandlerService |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2005-2011 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 | ||
| 20 | import javax.jws.WebMethod; | |
| 21 | import javax.jws.WebParam; | |
| 22 | import javax.jws.WebResult; | |
| 23 | import javax.jws.WebService; | |
| 24 | import javax.jws.soap.SOAPBinding; | |
| 25 | import javax.xml.bind.annotation.XmlElement; | |
| 26 | ||
| 27 | import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; | |
| 28 | import org.kuali.rice.kew.api.KewApiConstants; | |
| 29 | import org.kuali.rice.kew.api.action.ActionItem; | |
| 30 | import org.kuali.rice.kew.api.action.ActionItemCustomization; | |
| 31 | import org.kuali.rice.kew.framework.KewFrameworkServiceLocator; | |
| 32 | ||
| 33 | /** | |
| 34 | * A remotable service which handles processing of a client application's custom processing of | |
| 35 | * action list attributes. | |
| 36 | * | |
| 37 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 38 | */ | |
| 39 | @WebService(name = KewFrameworkServiceLocator.ACTION_LIST_CUSTOMIZATION_HANDLER_SERVICE, targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0) | |
| 40 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
| 41 | public interface ActionListCustomizationHandlerService { | |
| 42 | ||
| 43 | // TODO Modeled from DocumentSecurityHandlerService, but get a better description | |
| 44 | /** | |
| 45 | * Returns a list of Action Item Customizations from the given list of Action Items and Principal ID. | |
| 46 | * | |
| 47 | * <p>This method essentially invokes CustomActionListAttribute??? | |
| 48 | * {@link DocumentSecurityAttribute#isAuthorizedForDocument(String, org.kuali.rice.kew.api.document.Document)} | |
| 49 | * method for each of the security attributes supplied in the document security directives, passing the associated | |
| 50 | * list of document ids.</p> | |
| 51 | * | |
| 52 | * @param principalId the id of the Principal ??? | |
| 53 | * @param actionItems the list of Action Items to be customized. | |
| 54 | * | |
| 55 | * @return the list of Action Item Customizations | |
| 56 | * | |
| 57 | * @throws RiceIllegalArgumentException if the given principalId is a null or blank value | |
| 58 | * @throws RiceIllegalArgumentException if any of the action items ??? | |
| 59 | */ | |
| 60 | @WebMethod(operationName = "customizeActionList") | |
| 61 | @WebResult(name = "actionList") | |
| 62 | @XmlElement(name = "actionList", required = false) | |
| 63 | List<ActionItemCustomization> customizeActionList( | |
| 64 | @WebParam(name = "principalId") String principalId, | |
| 65 | @WebParam(name = "actionItems") List<ActionItem> actionItems) | |
| 66 | throws RiceIllegalArgumentException; | |
| 67 | } |