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.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  
 //    public List<KeyLabelPair> getAttributeValidValues(String attributeName) {
 63  
 //        return new ArrayList<KeyLabelPair>(0);
 64  
 //    }
 65  
 
 66  
     public String getWorkflowDocumentTypeName() {
 67  0
         return null;
 68  
     }
 69  
     
 70  
     /**
 71  
      * @see org.kuali.rice.kim.service.support.KimTypeService#getWorkflowRoutingAttributes(java.lang.String)
 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  
          * This base implementation does nothing but log that the method was called.
 97  
          * 
 98  
          * @see org.kuali.rice.kim.service.support.KimRoleTypeService#principalInactivated(java.lang.String, java.lang.String, java.lang.String)
 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  
                 // base implementation - do nothing
 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  
          * Returns false by default.
 126  
          * 
 127  
          * @see org.kuali.rice.kim.service.support.KimRoleTypeService#shouldCacheRoleMembershipResults(java.lang.String, java.lang.String)
 128  
          */
 129  
         public boolean shouldCacheRoleMembershipResults(String namespaceCode,
 130  
                         String roleName) {
 131  0
                 return false;
 132  
         }
 133  
 
 134  
 }