001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.edl.impl.service;
017    
018    import java.io.InputStream;
019    import java.util.List;
020    
021    import javax.xml.transform.Templates;
022    import javax.xml.transform.TransformerConfigurationException;
023    
024    import org.kuali.rice.core.framework.impex.xml.XmlExporter;
025    import org.kuali.rice.core.framework.impex.xml.XmlLoader;
026    import org.kuali.rice.edl.impl.EDLController;
027    import org.kuali.rice.edl.impl.bo.EDocLiteAssociation;
028    import org.kuali.rice.edl.impl.bo.EDocLiteDefinition;
029    import org.w3c.dom.Document;
030    
031    
032    public interface EDocLiteService extends XmlLoader, XmlExporter {
033    
034            void saveEDocLiteDefinition(InputStream xml);
035        void saveEDocLiteAssociation(InputStream xml);
036    
037        EDocLiteDefinition getEDocLiteDefinition(String defName);
038        EDocLiteAssociation getEDocLiteAssociation(String docType);
039        EDocLiteAssociation getEDocLiteAssociation(Long associationId);
040    
041        List<EDocLiteDefinition> getEDocLiteDefinitions();
042        List<EDocLiteAssociation> getEDocLiteAssociations();
043    
044        Templates getStyleAsTranslet(String styleName) throws TransformerConfigurationException;
045        List<EDocLiteAssociation> search(EDocLiteAssociation edocLite);
046    
047        EDLController getEDLControllerUsingEdlName(String edlName);
048            EDLController getEDLControllerUsingDocumentId(String documentId);
049            void initEDLGlobalConfig();
050        void saveEDocLiteDefinition(EDocLiteDefinition data) ;
051        void saveEDocLiteAssociation(EDocLiteAssociation assoc);
052        Document getDefinitionXml(EDocLiteAssociation edlAssociation);
053    }