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