View Javadoc
1   /**
2    * Copyright 2005-2016 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.ksb.impl.registry;
17  
18  import java.util.List;
19  
20  import javax.xml.namespace.QName;
21  
22  /**
23   * This is a description of what this class does - ewestfal don't forget to fill this in. 
24   * 
25   * @author Kuali Rice Team (rice.collab@kuali.org)
26   *
27   */
28  public interface ServiceRegistryDao {
29  
30  	ServiceInfoBo getServiceInfo(String serviceId);
31  	
32  	List<ServiceInfoBo> getOnlineServiceInfosByName(QName serviceName);
33  	
34  	List<ServiceInfoBo> getAllOnlineServiceInfos();
35  	
36  	List<ServiceInfoBo> getAllServiceInfos();
37  	
38  	List<ServiceInfoBo> getAllServiceInfosForInstance(String instanceId);
39  
40      List<ServiceInfoBo> getAllServiceInfosForApplication(String applicationId);
41  	
42  	ServiceDescriptorBo getServiceDescriptor(String serviceDescriptorId);
43  	
44  	ServiceDescriptorBo saveServiceDescriptor(ServiceDescriptorBo serviceDescriptor);
45  	
46  	ServiceInfoBo saveServiceInfo(ServiceInfoBo serviceInfo);
47  	
48  	void removeServiceInfo(String serviceId);
49  	
50  	void removeServiceDescriptor(String serviceDescriptorId);
51  	
52  	boolean updateStatus(String serviceId, String statusCode);
53  	
54  	void updateStatusForInstanceId(String instanceId, String statusCode);
55  	
56  }