Coverage Report - org.kuali.rice.kim.service.KIMServiceLocator
 
Classes in this File Line Coverage Branch Coverage Complexity
KIMServiceLocator
0%
0/16
0%
0/6
1.375
 
 1  
 package org.kuali.rice.kim.service;
 2  
 
 3  
 import org.apache.log4j.Logger;
 4  
 import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader;
 5  
 
 6  
 import javax.xml.namespace.QName;
 7  
 
 8  0
 public class KIMServiceLocator {
 9  0
     private static final Logger LOG = Logger.getLogger(KIMServiceLocator.class);
 10  
 
 11  
     public static final String KIM_GROUP_SERVICE = "kimGroupService";
 12  
     public static final String KIM_IDENTITY_MANAGEMENT_SERVICE = "kimIdentityManagementService";
 13  
     public static final String KIM_IDENTITY_SERVICE = "kimIdentityService";
 14  
     public static final String KIM_PERMISSION_SERVICE = "kimPermissionService";
 15  
     public static final String KIM_RESPONSIBILITY_SERVICE = "kimResponsibilityService";
 16  
     public static final String KIM_ROLE_SERVICE = "kimRoleService";
 17  
     public static final String KIM_ROLE_MANAGEMENT_SERVICE = "kimRoleManagementService";
 18  
     public static final String KIM_PERSON_SERVICE = "personService";
 19  
 
 20  
     public static PersonService getPersonService() {
 21  0
         if (LOG.isDebugEnabled()) {
 22  0
             LOG.debug("Fetching service " + KIM_PERSON_SERVICE);
 23  
         }
 24  0
         return (PersonService) GlobalResourceLoader.getResourceLoader().getService(new QName(KIM_PERSON_SERVICE));
 25  
     }
 26  
 
 27  
     public static IdentityManagementService getIdentityManagementService() {
 28  0
             if ( LOG.isDebugEnabled() ) {
 29  0
                         LOG.debug("Fetching service " + KIM_IDENTITY_MANAGEMENT_SERVICE);
 30  
                 }
 31  0
             return (IdentityManagementService) GlobalResourceLoader.getService(new QName(KIM_IDENTITY_MANAGEMENT_SERVICE));
 32  
     }
 33  
 
 34  
     public static RoleService getRoleService() {
 35  0
         return (RoleService) GlobalResourceLoader.getService(new QName(KIM_ROLE_SERVICE));
 36  
     }
 37  
     
 38  
     public static GroupService getGroupService() {
 39  0
             return (GroupService) GlobalResourceLoader.getService(new QName(KIM_GROUP_SERVICE));
 40  
     }
 41  
     
 42  
     public static IdentityService getIdentityService() {
 43  0
             return (IdentityService) GlobalResourceLoader.getService(new QName(KIM_IDENTITY_SERVICE));
 44  
     }
 45  
     public static PermissionService getPermissionService() {
 46  0
             return (PermissionService) GlobalResourceLoader.getService(new QName(KIM_PERMISSION_SERVICE));
 47  
     }
 48  
     public static ResponsibilityService getResponsibilityService() {
 49  0
             return (ResponsibilityService) GlobalResourceLoader.getService(new QName(KIM_RESPONSIBILITY_SERVICE));
 50  
     }
 51  
     
 52  
     public static RoleManagementService getRoleManagementService() {
 53  0
             if ( LOG.isDebugEnabled() ) {
 54  0
                         LOG.debug("Fetching service " + KIM_ROLE_MANAGEMENT_SERVICE);
 55  
                 }
 56  0
             return (RoleManagementService) GlobalResourceLoader.getResourceLoader().getService(new QName(KIM_ROLE_MANAGEMENT_SERVICE));
 57  
     }
 58  
     
 59  
 }