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