1 package org.jahia.services.importexport; 2 3 import org.apache.webdav.lib.WebdavResource; 4 import org.jahia.content.ContentObject; 5 import org.jahia.exceptions.JahiaException; 6 import org.jahia.params.ParamBean; 7 import org.jahia.services.sites.JahiaSite; 8 import org.w3c.dom.Document ; 9 import org.xml.sax.ContentHandler ; 10 import org.xml.sax.SAXException ; 11 12 import java.io.IOException ; 13 import java.io.OutputStream ; 14 import java.util.Map ; 15 import java.util.Set ; 16 17 24 public interface ImportExportService { 25 String JCR_URI ="http://www.jcp.org/jcr/1.0"; 26 String NT_URI="http://www.jcp.org/jcr/nt/1.0"; 27 String PT_URI="http://www.jcp.org/jcr/pt/1.0"; 28 String SV_URI="http://www.jcp.org/jcr/sv/1.0"; 29 String JAHIA_URI="http://www.jahia.org/"; 30 String NS_URI = "http://www.w3.org/2000/xmlns/"; 31 32 String FROM = "from"; 33 String TO = "to"; 34 String LOCK_KEY = "lock"; 35 String INCLUDE_TEMPLATES = "templates"; 36 String INCLUDE_SITE_INFOS = "siteinfos"; 37 String INCLUDE_FILES = "files"; 38 String INCLUDE_ALL_FILES = "allfiles"; 39 String LINK = "link"; 40 String VIEW_CONTENT = "content"; 41 String VIEW_VERSION = "version"; 42 String VIEW_METADATA = "metadata"; 43 String VIEW_JAHIALINKS = "links"; 44 String VIEW_ACL = "acl"; 45 String INCLUDED = "included"; 46 47 49 Document exportDocument(ContentObject object, String languageCode, ParamBean jParams, Map params) throws JahiaException, SAXException ; 50 51 void exportAll(OutputStream out, Map params, ParamBean jParams) throws JahiaException, SAXException , IOException ; 52 53 void exportSite(JahiaSite jahiaSite, OutputStream out, ParamBean jParams, Map params) throws JahiaException, IOException , SAXException ; 54 55 void exportFile(ContentObject object, String languageCode, OutputStream out, ParamBean jParams, Map params) throws JahiaException, SAXException , IOException ; 56 57 void exportZip(ContentObject object, Set languageCodes, OutputStream out, ParamBean jParams, Map params) throws JahiaException, SAXException , IOException ; 58 59 void exportAllFilesAcl(OutputStream out, ParamBean jParams) throws JahiaException, SAXException , IOException ; 60 61 void export(ContentObject object, String languageCodes, ContentHandler h, Set files, ParamBean jParams, Map params) throws JahiaException, SAXException ; 62 63 } 64 | Popular Tags |