Coverage Report - org.kuali.rice.krms.api.validation.ValidationActionService
 
Classes in this File Line Coverage Branch Coverage Complexity
ValidationActionService
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 1.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/ecl1.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.krms.api.validation;
 17  
 
 18  
 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
 19  
 import org.kuali.rice.core.api.exception.RiceIllegalStateException;
 20  
 import org.kuali.rice.krms.api.KrmsConstants;
 21  
 import org.kuali.rice.krms.api.repository.action.ActionDefinition;
 22  
 
 23  
 import javax.jws.WebMethod;
 24  
 import javax.jws.WebParam;
 25  
 import javax.jws.WebResult;
 26  
 import javax.jws.WebService;
 27  
 import javax.jws.soap.SOAPBinding;
 28  
 
 29  
 /**
 30  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 31  
  */
 32  
 @WebService(name = "validationActionServiceSoap", targetNamespace = KrmsConstants.Namespaces.KRMS_NAMESPACE_2_0)
 33  
 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
 34  
 public interface ValidationActionService {
 35  
 
 36  
     @WebMethod(operationName = "getValidation")
 37  
     @WebResult(name = "validation")
 38  
     ActionDefinition getValidation(@WebParam(name = "validationId") String validationId)
 39  
             throws RiceIllegalArgumentException;
 40  
 
 41  
     @WebMethod(operationName = "getValidationByName")
 42  
     @WebResult(name = "validation")
 43  
     ActionDefinition getValidationByName(
 44  
             @WebParam(name = "namespaceCode") String namespaceCode,
 45  
             @WebParam(name = "name") String name)
 46  
         throws RiceIllegalArgumentException;
 47  
 
 48  
     /**
 49  
      * TODO...
 50  
      *
 51  
      * @param validation
 52  
      *
 53  
      * @return
 54  
      *
 55  
      * @throws RiceIllegalArgumentException if the given Validation definition is null
 56  
      * @throws RiceIllegalArgumentException if the given Validation definition has a non-null id.  When creating a new
 57  
      * Validation definition, the ID will be generated.
 58  
      * @throws RiceIllegalStateException if a Validation with the given namespace code and name already exists
 59  
      */
 60  
     @WebMethod(operationName = "createValidationAction")
 61  
     @WebResult(name = "validation")
 62  
     ActionDefinition createValidation(@WebParam(name = "validation") ActionDefinition validation)
 63  
         throws RiceIllegalArgumentException, RiceIllegalStateException;
 64  
 
 65  
     /**
 66  
      *
 67  
      * @param validation
 68  
      *
 69  
      * @return
 70  
      *
 71  
      * @throws RiceIllegalArgumentException
 72  
      * @throws RiceIllegalStateException if the Validation does not exist in the system under the given validationId
 73  
      */
 74  
     @WebMethod(operationName = "updateValidationAction")
 75  
     @WebResult(name = "validation")
 76  
     ActionDefinition updateValidation(@WebParam(name = "validation") ActionDefinition validation)
 77  
         throws RiceIllegalArgumentException, RiceIllegalStateException;
 78  
 
 79  
 
 80  
 }