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