Coverage Report - org.kuali.rice.kim.service.support.impl.PassThruRoleTypeServiceBase
 
Classes in this File Line Coverage Branch Coverage Complexity
PassThruRoleTypeServiceBase
0%
0/23
0%
0/2
1.05
 
 1  
 /*
 2  
  * Copyright 2008 The Kuali Foundation
 3  
  * 
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  * 
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  * 
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 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  
      * @see org.kuali.rice.kim.service.support.KimTypeService#getWorkflowRoutingAttributes(java.lang.String)
 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  
          * This base implementation does nothing but log that the method was called.
 104  
          * 
 105  
          * @see org.kuali.rice.kim.framework.type.KimRoleTypeService#principalInactivated(java.lang.String, java.lang.String, java.lang.String)
 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  
                 // base implementation - do nothing
 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  
          * Returns false by default.
 138  
          * 
 139  
          * @see org.kuali.rice.kim.framework.type.KimRoleTypeService#shouldCacheRoleMembershipResults(java.lang.String, java.lang.String)
 140  
          */
 141  
         @Override
 142  
         public boolean shouldCacheRoleMembershipResults(String namespaceCode,
 143  
                         String roleName) {
 144  0
                 return false;
 145  
         }
 146  
 
 147  
 }