View Javadoc

1   /*
2    * Copyright 2005-2007 The Kuali Foundation
3    *
4    *
5    * Licensed under the Educational Community License, Version 2.0 (the "License");
6    * you may not use this file except in compliance with the License.
7    * You may obtain a copy of the License at
8    *
9    * http://www.opensource.org/licenses/ecl2.php
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.kuali.rice.edl.impl.service;
18  
19  import java.io.InputStream;
20  import java.util.List;
21  
22  import javax.xml.transform.Templates;
23  import javax.xml.transform.TransformerConfigurationException;
24  
25  import org.kuali.rice.core.framework.impex.xml.XmlExporter;
26  import org.kuali.rice.core.framework.impex.xml.XmlLoader;
27  import org.kuali.rice.edl.impl.EDLController;
28  import org.kuali.rice.edl.impl.bo.EDocLiteAssociation;
29  import org.kuali.rice.edl.impl.bo.EDocLiteDefinition;
30  import org.w3c.dom.Document;
31  
32  
33  public interface EDocLiteService extends XmlLoader, XmlExporter {
34  
35  	public void saveEDocLiteDefinition(InputStream xml);
36      public void saveEDocLiteAssociation(InputStream xml);
37  
38      public EDocLiteDefinition getEDocLiteDefinition(String defName);
39      public EDocLiteAssociation getEDocLiteAssociation(String docType);
40      public EDocLiteAssociation getEDocLiteAssociation(Long associationId);
41  
42      public List<EDocLiteDefinition> getEDocLiteDefinitions();
43      public List<EDocLiteAssociation> getEDocLiteAssociations();
44  
45      public void removeDefinitionFromCache(String edlName);
46      public Templates getStyleAsTranslet(String styleName) throws TransformerConfigurationException;
47      public List<EDocLiteAssociation> search(EDocLiteAssociation edocLite);
48  
49      public EDLController getEDLControllerUsingEdlName(String edlName);
50  	public EDLController getEDLControllerUsingDocumentId(String documentId);
51  	public void initEDLGlobalConfig();
52      public void saveEDocLiteDefinition(EDocLiteDefinition data) ;
53      public void saveEDocLiteAssociation(EDocLiteAssociation assoc);
54      public Document getDefinitionXml(EDocLiteAssociation edlAssociation);
55  }