| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| KENIntegrationServiceAPIImpl |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-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.kcb.service.impl; | |
| 17 | ||
| 18 | import java.util.Collection; | |
| 19 | ||
| 20 | import javax.xml.namespace.QName; | |
| 21 | ||
| 22 | import org.kuali.rice.core.config.ConfigContext; | |
| 23 | import org.kuali.rice.core.resourceloader.GlobalResourceLoader; | |
| 24 | import org.kuali.rice.kcb.service.KENIntegrationService; | |
| 25 | import org.kuali.rice.ken.service.KENAPIService; | |
| 26 | import org.kuali.rice.ken.service.KENServiceConstants; | |
| 27 | ||
| 28 | /** | |
| 29 | * Integrates with KEN via the exposed KENAPIService (meaning there is a runtime dependency on KEN) | |
| 30 | * | |
| 31 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 32 | */ | |
| 33 | 0 | public class KENIntegrationServiceAPIImpl implements KENIntegrationService { |
| 34 | ||
| 35 | /** | |
| 36 | * Calls the {@link KENAPIService#getAllChannelNames()} | |
| 37 | * @see org.kuali.rice.kcb.service.KENIntegrationService#getAllChannelNames() | |
| 38 | */ | |
| 39 | public Collection<String> getAllChannelNames() { | |
| 40 | 0 | KENAPIService api = (KENAPIService) GlobalResourceLoader.getService(new QName(ConfigContext.getCurrentContextConfig().getServiceNamespace(), KENServiceConstants.KENAPI_SERVICE)); |
| 41 | 0 | return api.getAllChannelNames(); |
| 42 | } | |
| 43 | ||
| 44 | } |