1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.coreservice.api.namespace;
17
18 import org.kuali.rice.core.api.CoreConstants;
19 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
20 import org.kuali.rice.coreservice.api.parameter.Parameter;
21 import org.springframework.cache.annotation.Cacheable;
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 java.util.List;
29
30 @WebService(name = "namespaceService", targetNamespace = CoreConstants.Namespaces.CORE_NAMESPACE_2_0)
31 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
32 public interface NamespaceService {
33
34
35
36
37
38
39
40
41
42
43
44
45 @WebMethod(operationName="getNamespace")
46 @WebResult(name = "namespace")
47 @Cacheable(value= Namespace.Cache.NAME, key="'key=' + #p0")
48 Namespace getNamespace(@WebParam(name = "code") String code) throws RiceIllegalArgumentException;
49
50
51
52
53
54
55 @WebMethod(operationName = "findAllNamespaces")
56 @WebResult(name = "namespaces")
57 @Cacheable(value=Namespace.Cache.NAME, key="'all'")
58 List<Namespace> findAllNamespaces();
59 }