Coverage Report - org.kuali.rice.kew.framework.docsearch.SearchableAttribute
 
Classes in this File Line Coverage Branch Coverage Complexity
SearchableAttribute
N/A
N/A
1
 
 1  
 /*
 2  
  * Copyright 2005-2007 The Kuali Foundation
 3  
  *
 4  
  *
 5  
  * Licensed under the Educational Community License, Version 2.0 (the "License"); you may not use this file except in
 6  
  * compliance with the License. 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 distributed under the License is distributed on an "AS
 11  
  * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
 12  
  * language governing permissions and limitations under the License.
 13  
  */
 14  
 package org.kuali.rice.kew.framework.docsearch;
 15  
 
 16  
 import org.kuali.rice.core.api.uif.RemotableAttributeField;
 17  
 import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter;
 18  
 import org.kuali.rice.kew.api.KewApiConstants;
 19  
 import org.kuali.rice.kew.api.document.attribute.DocumentAttribute;
 20  
 import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition;
 21  
 import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeValidationError;
 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  
 import javax.xml.bind.annotation.XmlElement;
 29  
 import javax.xml.bind.annotation.XmlElementWrapper;
 30  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 31  
 import java.io.Serializable;
 32  
 import java.util.List;
 33  
 import java.util.Map;
 34  
 
 35  
 /**
 36  
  * TODO...
 37  
  *
 38  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 39  
  */
 40  
 @WebService(name = "searchableAttributeServiceSoap", targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0)
 41  
 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
 42  
 public interface SearchableAttribute {
 43  
 
 44  
     @WebMethod(operationName = "generateSearchContent")
 45  
     @WebResult(name = "searchContent")
 46  
     public String generateSearchContent(@WebParam(name = "documentTypeName") String documentTypeName,
 47  
             @WebParam(name = "attributeDefinition") WorkflowAttributeDefinition attributeDefinition);
 48  
 
 49  
     @WebMethod(operationName = "getDocumentAttributes")
 50  
     @WebResult(name = "documentAttributes")
 51  
     @XmlElementWrapper(name = "documentAttributes", required = false)
 52  
     @XmlElement(name = "documentAttribute", required = false)
 53  
     public List<DocumentAttribute<?>> getDocumentAttributes(@WebParam(name = "documentSearchContext") DocumentSearchContext documentSearchContext);
 54  
 
 55  
     @WebMethod(operationName = "getSearchFields")
 56  
     @WebResult(name = "searchFields")
 57  
     @XmlElementWrapper(name = "searchFields", required = false)
 58  
     @XmlElement(name = "searchField", required = false)
 59  
     public List<RemotableAttributeField> getSearchFields(@WebParam(name = "documentTypeName") String documentTypeName);
 60  
 
 61  
     @WebMethod(operationName = "validateSearchParameters")
 62  
     @WebResult(name = "validationErrors")
 63  
     @XmlElementWrapper(name = "validationErrors", required = false)
 64  
     @XmlElement(name = "validationError", required = false)
 65  
     public List<WorkflowAttributeValidationError> validateSearchParameters(
 66  
             @WebParam(name = "parameters")
 67  
             @XmlJavaTypeAdapter(MapStringStringAdapter.class) Map<String, String> parameters,
 68  
             @WebParam(name = "documentSearchContext") DocumentSearchContext searchContext);
 69  
 
 70  
 }