1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.service.support.impl; |
17 | |
|
18 | |
import org.kuali.rice.kim.api.role.RoleMembership; |
19 | |
import org.kuali.rice.kim.bo.types.dto.AttributeDefinitionMap; |
20 | |
import org.kuali.rice.kim.framework.type.KimRoleTypeService; |
21 | |
|
22 | |
import java.util.ArrayList; |
23 | |
import java.util.Collections; |
24 | |
import java.util.List; |
25 | |
import java.util.Map; |
26 | |
|
27 | 0 | public abstract class PassThruRoleTypeServiceBase implements KimRoleTypeService { |
28 | |
|
29 | 0 | private static final org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(PassThruRoleTypeServiceBase.class); |
30 | |
|
31 | |
public static final String UNMATCHABLE_QUALIFICATION = "!~!~!~!~!~"; |
32 | |
|
33 | |
@Override |
34 | |
public abstract Map<String, String> convertQualificationForMemberRoles(String namespaceCode, String roleName, String memberRoleNamespaceCode, String memberRoleName, Map<String, String> qualification); |
35 | |
|
36 | |
@Override |
37 | |
public List<RoleMembership> doRoleQualifiersMatchQualification(Map<String, String> qualification, List<RoleMembership> roleMemberList) { |
38 | 0 | return roleMemberList; |
39 | |
} |
40 | |
|
41 | |
@Override |
42 | |
public boolean doesRoleQualifierMatchQualification(Map<String, String> qualification, Map<String, String> roleQualifier) { |
43 | 0 | return true; |
44 | |
} |
45 | |
|
46 | |
@Override |
47 | |
public List<RoleMembership> getRoleMembersFromApplicationRole(String namespaceCode, String roleName, Map<String, String> qualification) { |
48 | 0 | return new ArrayList<RoleMembership>(0); |
49 | |
} |
50 | |
|
51 | |
@Override |
52 | |
public boolean hasApplicationRole(String principalId, List<String> groupIds, String namespaceCode, String roleName, Map<String, String> qualification) { |
53 | 0 | return false; |
54 | |
} |
55 | |
|
56 | |
@Override |
57 | |
public boolean isApplicationRoleType() { |
58 | 0 | return false; |
59 | |
} |
60 | |
|
61 | |
public List<String> getAcceptedAttributeNames() { |
62 | 0 | return Collections.emptyList(); |
63 | |
} |
64 | |
|
65 | |
@Override |
66 | |
public AttributeDefinitionMap getAttributeDefinitions(String kimTypeId) { |
67 | 0 | return null; |
68 | |
} |
69 | |
|
70 | |
@Override |
71 | |
public String getWorkflowDocumentTypeName() { |
72 | 0 | return null; |
73 | |
} |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
@Override |
79 | |
public List<String> getWorkflowRoutingAttributes(String routeLevel) { |
80 | 0 | return Collections.emptyList(); |
81 | |
} |
82 | |
|
83 | |
public boolean supportsAttributes(List<String> attributeNames) { |
84 | 0 | return true; |
85 | |
} |
86 | |
|
87 | |
public Map<String, String> translateInputAttributes(Map<String, String> inputAttributes) { |
88 | 0 | return inputAttributes; |
89 | |
} |
90 | |
|
91 | |
@Override |
92 | |
public Map<String, String> validateAttributes(String kimTypeId, Map<String, String> attributes) { |
93 | 0 | return null; |
94 | |
} |
95 | |
|
96 | |
@Override |
97 | |
public List<RoleMembership> sortRoleMembers(List<RoleMembership> roleMembers) { |
98 | 0 | return roleMembers; |
99 | |
} |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | |
@Override |
109 | |
public void principalInactivated(String principalId, String namespaceCode, |
110 | |
String roleName) { |
111 | 0 | if ( LOG.isDebugEnabled() ) { |
112 | 0 | LOG.debug( "Principal Inactivated called: principalId="+principalId+" role=" + namespaceCode + "/" + roleName ); |
113 | |
} |
114 | |
|
115 | 0 | } |
116 | |
|
117 | |
@Override |
118 | |
public boolean validateUniqueAttributes(String kimTypeId, Map<String, String> newAttributes, Map<String, String> oldAttributes){ |
119 | 0 | return true; |
120 | |
} |
121 | |
|
122 | |
@Override |
123 | |
public Map<String, String> validateUnmodifiableAttributes(String kimTypeId, Map<String, String> mainAttributes, Map<String, String> delegationAttributes){ |
124 | 0 | return Collections.emptyMap(); |
125 | |
} |
126 | |
|
127 | |
@Override |
128 | |
public List<String> getUniqueAttributes(String kimTypeId){ |
129 | 0 | return Collections.emptyList(); |
130 | |
} |
131 | |
|
132 | |
@Override |
133 | |
public Map<String, String> validateAttributesAgainstExisting(String kimTypeId, Map<String, String> newAttributes, Map<String, String> oldAttributes){ |
134 | 0 | return Collections.emptyMap(); |
135 | |
} |
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
@Override |
143 | |
public boolean shouldCacheRoleMembershipResults(String namespaceCode, |
144 | |
String roleName) { |
145 | 0 | return false; |
146 | |
} |
147 | |
|
148 | |
} |