Coverage Report - org.kuali.rice.kim.api.services.KimApiServiceLocator
 
Classes in this File Line Coverage Branch Coverage Complexity
KimApiServiceLocator
0%
0/22
0%
0/6
1.214
 
 1  
 package org.kuali.rice.kim.api.services;
 2  
 
 3  
 import org.apache.log4j.Logger;
 4  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 5  
 import org.kuali.rice.kim.api.group.GroupUpdateService;
 6  
 import org.kuali.rice.kim.api.responsibility.ResponsibilityService;
 7  
 import org.kuali.rice.kim.api.type.KimTypeInfoService;
 8  
 import org.kuali.rice.kim.api.identity.services.IdentityService;
 9  
 import org.kuali.rice.kim.service.IdentityUpdateService;
 10  
 import org.kuali.rice.kim.service.PermissionService;
 11  
 import org.kuali.rice.kim.service.PermissionUpdateService;
 12  
 import org.kuali.rice.kim.service.PersonService;
 13  
 import org.kuali.rice.kim.service.RoleManagementService;
 14  
 import org.kuali.rice.kim.service.RoleService;
 15  
 import org.kuali.rice.kim.service.RoleUpdateService;
 16  
 
 17  0
 public class KimApiServiceLocator {
 18  0
     private static final Logger LOG = Logger.getLogger(KimApiServiceLocator.class);
 19  
 
 20  
     public static final String KIM_GROUP_SERVICE = "kimGroupService";
 21  
     public static final String KIM_IDENTITY_MANAGEMENT_SERVICE = "kimIdentityManagementService";
 22  
     public static final String KIM_IDENTITY_SERVICE = "kimIdentityService";
 23  
     public static final String KIM_PERMISSION_SERVICE = "kimPermissionService";
 24  
     public static final String KIM_RESPONSIBILITY_SERVICE = "kimResponsibilityService";
 25  
     public static final String KIM_ROLE_SERVICE = "kimRoleService";
 26  
     public static final String KIM_ROLE_MANAGEMENT_SERVICE = "kimRoleManagementService";
 27  
     public static final String KIM_PERSON_SERVICE = "personService";
 28  
 
 29  
     public static final String KIM_IDENTITY_UPDATE_SERVICE = "kimIdentityUpdateService";
 30  
         public static final String KIM_GROUP_UPDATE_SERVICE = "kimGroupUpdateService";
 31  
     public static final String KIM_ROLE_UPDATE_SERVICE = "kimRoleUpdateService";
 32  
         public static final String KIM_PERMISSION_UPDATE_SERVICE = "kimPermissionUpdateService";
 33  
     public static final String KIM_TYPE_INFO_SERVICE = "kimTypeInfoService";
 34  
 
 35  
     static <T> T getService(String serviceName) {
 36  0
         return GlobalResourceLoader.<T>getService(serviceName);
 37  
     }
 38  
 
 39  
     public static KimTypeInfoService getKimTypeInfoService() {
 40  0
         return getService(KIM_TYPE_INFO_SERVICE);
 41  
     }
 42  
 
 43  
     public static PersonService getPersonService() {
 44  0
         if (LOG.isDebugEnabled()) {
 45  0
             LOG.debug("Fetching service " + KIM_PERSON_SERVICE);
 46  
         }
 47  0
         return getService(KIM_PERSON_SERVICE);
 48  
     }
 49  
 
 50  
     public static IdentityManagementService getIdentityManagementService() {
 51  0
             if ( LOG.isDebugEnabled() ) {
 52  0
                         LOG.debug("Fetching service " + KIM_IDENTITY_MANAGEMENT_SERVICE);
 53  
                 }
 54  0
             return getService(KIM_IDENTITY_MANAGEMENT_SERVICE);
 55  
     }
 56  
 
 57  
     public static RoleService getRoleService() {
 58  0
         return getService(KIM_ROLE_SERVICE);
 59  
     }
 60  
     
 61  
     public static org.kuali.rice.kim.api.group.GroupService getGroupService() {
 62  0
             return getService(KIM_GROUP_SERVICE);
 63  
     }
 64  
     
 65  
     public static IdentityService getIdentityService() {
 66  0
             return getService(KIM_IDENTITY_SERVICE);
 67  
     }
 68  
     public static PermissionService getPermissionService() {
 69  0
             return getService(KIM_PERMISSION_SERVICE);
 70  
     }
 71  
     public static ResponsibilityService getResponsibilityService() {
 72  0
             return getService(KIM_RESPONSIBILITY_SERVICE);
 73  
     }
 74  
     
 75  
     public static RoleManagementService getRoleManagementService() {
 76  0
             if ( LOG.isDebugEnabled() ) {
 77  0
                         LOG.debug("Fetching service " + KIM_ROLE_MANAGEMENT_SERVICE);
 78  
                 }
 79  0
             return getService(KIM_ROLE_MANAGEMENT_SERVICE);
 80  
     }
 81  
 
 82  
     public static IdentityUpdateService getIdentityUpdateService() {
 83  0
             return getService(KIM_IDENTITY_UPDATE_SERVICE);
 84  
     }
 85  
 
 86  
     public static GroupUpdateService getGroupUpdateService() {
 87  0
             return getService(KIM_GROUP_UPDATE_SERVICE);
 88  
     }
 89  
 
 90  
     public static RoleUpdateService getRoleUpdateService() {
 91  0
             return getService(KIM_ROLE_UPDATE_SERVICE);
 92  
     }
 93  
 
 94  
 
 95  
     public static PermissionUpdateService getPermissionUpdateService() {
 96  0
             return getService(KIM_PERMISSION_UPDATE_SERVICE);
 97  
     }
 98  
 }