1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.service;
17
18 import java.sql.Date;
19
20 import javax.jws.WebParam;
21 import javax.jws.WebService;
22 import javax.jws.soap.SOAPBinding;
23 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
24
25 import org.kuali.rice.core.jaxb.AttributeSetAdapter;
26 import org.kuali.rice.core.jaxb.SqlDateAdapter;
27 import org.kuali.rice.kim.bo.role.dto.RoleMemberCompleteInfo;
28 import org.kuali.rice.kim.bo.types.dto.AttributeSet;
29 import org.kuali.rice.kim.util.KIMWebServiceConstants;
30
31
32
33
34
35
36
37 @WebService(name = KIMWebServiceConstants.RoleUpdateService.WEB_SERVICE_NAME, targetNamespace = KIMWebServiceConstants.MODULE_TARGET_NAMESPACE)
38 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
39 public interface RoleUpdateService {
40
41
42
43
44
45 void assignPrincipalToRole(@WebParam(name="principalId") String principalId,
46 @WebParam(name="namespaceCode") String namespaceCode,
47 @WebParam(name="roleName") String roleName,
48 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
49
50
51
52
53
54 void assignGroupToRole(@WebParam(name="groupId") String groupId,
55 @WebParam(name="namespaceCode") String namespaceCode,
56 @WebParam(name="roleName") String roleName,
57 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
58
59
60
61
62
63 void assignRoleToRole(@WebParam(name="roleId") String roleId,
64 @WebParam(name="namespaceCode") String namespaceCode,
65 @WebParam(name="roleName") String roleName,
66 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
67
68
69
70
71
72 RoleMemberCompleteInfo saveRoleMemberForRole(@WebParam(name="roleMemberId") String roleMemberId,
73 @WebParam(name="memberId") String memberId,
74 @WebParam(name="memberTypeCode") String memberTypeCode,
75 @WebParam(name="roleId") String roleId,
76 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications,
77 @XmlJavaTypeAdapter(value = SqlDateAdapter.class) @WebParam(name="activeFromDate") Date activeFromDate,
78 @XmlJavaTypeAdapter(value = SqlDateAdapter.class) @WebParam(name="activeToDate") Date activeToDate) throws UnsupportedOperationException;
79
80
81
82
83
84
85
86
87
88 void saveRoleRspActions(@WebParam(name="roleResponsibilityActionId") String roleResponsibilityActionId,
89 @WebParam(name="roleId") String roleId,
90 @WebParam(name="roleResponsibilityId") String roleResponsibilityId,
91 @WebParam(name="roleMemberId") String roleMemberId,
92 @WebParam(name="actionTypeCode") String actionTypeCode,
93 @WebParam(name="actionPolicyCode") String actionPolicyCode,
94 @WebParam(name="priorityNumber") Integer priorityNumber,
95 @WebParam(name="forceAction") Boolean forceAction);
96
97
98
99
100
101 public void saveDelegationMemberForRole(@WebParam(name="delegationMemberId") String delegationMemberId,
102 @WebParam(name="roleMemberId") String roleMemberId,
103 @WebParam(name="memberId") String memberId,
104 @WebParam(name="memberTypeCode") String memberTypeCode,
105 @WebParam(name="delegationTypeCode") String delegationTypeCode,
106 @WebParam(name="roleId") String roleId,
107 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications,
108 @XmlJavaTypeAdapter(value = SqlDateAdapter.class) @WebParam(name="activeFromDate") Date activeFromDate,
109 @XmlJavaTypeAdapter(value = SqlDateAdapter.class) @WebParam(name="activeToDate") Date activeToDate) throws UnsupportedOperationException;
110
111
112
113
114
115 void removePrincipalFromRole(@WebParam(name="principalId") String principalId,
116 @WebParam(name="namespaceCode") String namespaceCode,
117 @WebParam(name="roleName") String roleName,
118 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
119
120
121
122
123
124 void removeGroupFromRole(@WebParam(name="groupId") String groupId,
125 @WebParam(name="namespaceCode") String namespaceCode,
126 @WebParam(name="roleName") String roleName,
127 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
128
129
130
131
132
133 void removeRoleFromRole(@WebParam(name="roleId") String roleId,
134 @WebParam(name="namespaceCode") String namespaceCode,
135 @WebParam(name="roleName") String roleName,
136 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualifications) throws UnsupportedOperationException;
137
138
139
140
141 void saveRole(@WebParam(name = "roleId") String roleId, @WebParam(name = "roleName") String roleName, @WebParam(name = "roleDescription") String roleDescription, @WebParam(name = "active") boolean active, @WebParam(name = "kimTypeId") String kimTypeId,
142 @WebParam(name = "namespaceCode") String namespaceCode) throws UnsupportedOperationException;
143
144
145
146
147 String getNextAvailableRoleId() throws UnsupportedOperationException;
148
149
150
151
152 void assignPermissionToRole(String permissionId, String roleId) throws UnsupportedOperationException;
153 }