01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.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 edu.iu.uis.eden.edl;
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.w3c.dom.Document;
26:
27: import edu.iu.uis.eden.XmlLoader;
28: import edu.iu.uis.eden.xml.export.XmlExporter;
29:
30: public interface EDocLiteService extends XmlLoader, XmlExporter {
31: //looks like these are here only for tests, the question is why...
32: public void saveEDocLiteStyle(InputStream xml);
33:
34: public void saveEDocLiteDefinition(InputStream xml);
35:
36: public void saveEDocLiteAssociation(InputStream xml);
37:
38: public EDocLiteStyle getEDocLiteStyle(String styleName);
39:
40: public EDocLiteDefinition getEDocLiteDefinition(String defName);
41:
42: public EDocLiteAssociation getEDocLiteAssociation(String docType);
43:
44: public EDocLiteAssociation getEDocLiteAssociation(Long associationId);
45:
46: public List<String> getEDocLiteStyles();
47:
48: public List getEDocLiteDefinitions();
49:
50: public List getEDocLiteAssociations();
51:
52: public void removeStyleFromCache(String styleName);
53:
54: public void removeDefinitionFromCache(String edlName);
55:
56: public Templates getStyleAsTranslet(String styleName)
57: throws TransformerConfigurationException;
58:
59: public List search(EDocLiteAssociation edocLite);
60:
61: public EDLController getEDLController(String edlName);
62:
63: public EDLController getEDLController(Long documentTypeId);
64:
65: public void initEDLGlobalConfig();
66:
67: public void saveEDocLiteStyle(EDocLiteStyle data);
68:
69: public void saveEDocLiteDefinition(EDocLiteDefinition data);
70:
71: public void saveEDocLiteAssociation(EDocLiteAssociation assoc);
72:
73: public Document getDefinitionXml(EDocLiteAssociation edlAssociation);
74: }
|