KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > importexport > ImportExportService


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 JavaDoc;
9 import org.xml.sax.ContentHandler JavaDoc;
10 import org.xml.sax.SAXException JavaDoc;
11
12 import java.io.IOException JavaDoc;
13 import java.io.OutputStream JavaDoc;
14 import java.util.Map JavaDoc;
15 import java.util.Set JavaDoc;
16
17 /**
18  * Created by IntelliJ IDEA.
19  * User: toto
20  * Date: 13 d�c. 2004
21  * Time: 12:21:48
22  * To change this template use File | Settings | File Templates.
23  */

24 public interface ImportExportService {
25     String JavaDoc JCR_URI ="http://www.jcp.org/jcr/1.0";
26     String JavaDoc NT_URI="http://www.jcp.org/jcr/nt/1.0";
27     String JavaDoc PT_URI="http://www.jcp.org/jcr/pt/1.0";
28     String JavaDoc SV_URI="http://www.jcp.org/jcr/sv/1.0";
29     String JavaDoc JAHIA_URI="http://www.jahia.org/";
30     String JavaDoc NS_URI = "http://www.w3.org/2000/xmlns/";
31
32     String JavaDoc FROM = "from";
33     String JavaDoc TO = "to";
34     String JavaDoc LOCK_KEY = "lock";
35     String JavaDoc INCLUDE_TEMPLATES = "templates";
36     String JavaDoc INCLUDE_SITE_INFOS = "siteinfos";
37     String JavaDoc INCLUDE_FILES = "files";
38     String JavaDoc INCLUDE_ALL_FILES = "allfiles";
39     String JavaDoc LINK = "link";
40     String JavaDoc VIEW_CONTENT = "content";
41     String JavaDoc VIEW_VERSION = "version";
42     String JavaDoc VIEW_METADATA = "metadata";
43     String JavaDoc VIEW_JAHIALINKS = "links";
44     String JavaDoc VIEW_ACL = "acl";
45     String JavaDoc INCLUDED = "included";
46
47     // Export
48

49     Document JavaDoc exportDocument(ContentObject object, String JavaDoc languageCode, ParamBean jParams, Map JavaDoc params) throws JahiaException, SAXException JavaDoc;
50
51     void exportAll(OutputStream JavaDoc out, Map JavaDoc params, ParamBean jParams) throws JahiaException, SAXException JavaDoc, IOException JavaDoc;
52
53     void exportSite(JahiaSite jahiaSite, OutputStream JavaDoc out, ParamBean jParams, Map JavaDoc params) throws JahiaException, IOException JavaDoc, SAXException JavaDoc;
54
55     void exportFile(ContentObject object, String JavaDoc languageCode, OutputStream JavaDoc out, ParamBean jParams, Map JavaDoc params) throws JahiaException, SAXException JavaDoc, IOException JavaDoc;
56
57     void exportZip(ContentObject object, Set JavaDoc languageCodes, OutputStream JavaDoc out, ParamBean jParams, Map JavaDoc params) throws JahiaException, SAXException JavaDoc, IOException JavaDoc;
58
59     void exportAllFilesAcl(OutputStream JavaDoc out, ParamBean jParams) throws JahiaException, SAXException JavaDoc, IOException JavaDoc;
60
61     void export(ContentObject object, String JavaDoc languageCodes, ContentHandler JavaDoc h, Set JavaDoc files, ParamBean jParams, Map JavaDoc params) throws JahiaException, SAXException JavaDoc;
62
63 }
64
Popular Tags