KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > lenya > cms > publishing > Publisher


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17
18 /* $Id: Publisher.java 42598 2004-03-01 16:18:28Z gregor $ */
19
20 package org.apache.lenya.cms.publishing;
21
22
23 /**
24  * A Publisher is used to copy XML sources from the authoring server to the pending server.
25  */

26 public interface Publisher {
27     /**
28      * Publish a document.
29      *
30      * @param publicationPath path to the publication
31      * @param authoringPath path to the authoring directory
32      * @param treeAuthoringPath path to the authoring tree
33      * @param resourcesAuthoringPath path to the authoring resources
34      * @param resourcesLivePath path to the live resources
35      * @param livePath path to the live directory
36      * @param treeLivePath path to the live tree
37      * @param replicationPath path to the replication directory
38      * @param sources array of xml sources to be published
39      * @exception PublishingException if an error occurs
40      */

41     void publish(String JavaDoc publicationPath, String JavaDoc authoringPath, String JavaDoc treeAuthoringPath,
42         String JavaDoc resourcesAuthoringPath, String JavaDoc livePath, String JavaDoc treeLivePath,
43         String JavaDoc resourcesLivePath, String JavaDoc replicationPath, String JavaDoc[] sources)
44         throws PublishingException;
45 }
46
Popular Tags