View Javadoc
1   /**
2    * Copyright 2005-2015 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.edl.impl.service;
17  
18  import java.io.InputStream;
19  import java.util.List;
20  
21  import javax.xml.transform.Templates;
22  import javax.xml.transform.TransformerConfigurationException;
23  
24  import org.kuali.rice.core.framework.impex.xml.XmlExporter;
25  import org.kuali.rice.core.framework.impex.xml.XmlLoader;
26  import org.kuali.rice.edl.impl.EDLController;
27  import org.kuali.rice.edl.impl.bo.EDocLiteAssociation;
28  import org.kuali.rice.edl.impl.bo.EDocLiteDefinition;
29  import org.w3c.dom.Document;
30  
31  
32  public interface EDocLiteService extends XmlLoader, XmlExporter {
33  
34  	void saveEDocLiteDefinition(InputStream xml);
35      void saveEDocLiteAssociation(InputStream xml);
36  
37      EDocLiteDefinition getEDocLiteDefinition(String defName);
38      EDocLiteAssociation getEDocLiteAssociation(String docType);
39      EDocLiteAssociation getEDocLiteAssociation(Long associationId);
40  
41      List<EDocLiteDefinition> getEDocLiteDefinitions();
42      List<EDocLiteAssociation> getEDocLiteAssociations();
43  
44      Templates getStyleAsTranslet(String styleName) throws TransformerConfigurationException;
45      List<EDocLiteAssociation> search(EDocLiteAssociation edocLite);
46  
47      EDLController getEDLControllerUsingEdlName(String edlName);
48  	EDLController getEDLControllerUsingDocumentId(String documentId);
49  	void initEDLGlobalConfig();
50      void saveEDocLiteDefinition(EDocLiteDefinition data) ;
51      void saveEDocLiteAssociation(EDocLiteAssociation assoc);
52      Document getDefinitionXml(EDocLiteAssociation edlAssociation);
53  }