Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/opencms/file/CmsExportPoint.java


1   /*
2   * File   : $Source: /usr/local/cvs/opencms/src/com/opencms/file/Attic/CmsExportPoint.java,v $
3   * Date   : $Date: 2003/04/01 15:20:18 $
4   * Version: $Revision: 1.4 $
5   *
6   * This library is part of OpenCms -
7   * the Open Source Content Mananagement System
8   *
9   * Copyright (C) 2001  The OpenCms Group
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19  * Lesser General Public License for more details.
20  *
21  * For further information about OpenCms, please see the
22  * OpenCms Website: http://www.opencms.org 
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free Software
26  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27  */
28  
29  package com.opencms.file;
30  
31  import com.opencms.core.*;
32  
33  /**
34   * Describes a exportpoint. A exportpoint defines the type of a filesystem
35   * containing data used my the Cms and where it is mounted in to the logical
36   * filesystem of  the Cms.
37   * 
38   * @author Michael Emmerich
39   * @version $Revision: 1.4 $ $Date: 2003/04/01 15:20:18 $
40   */
41  
42  public class CmsExportPoint implements I_CmsConstants {
43      /**
44       * Definition of the location of this exportpoint in the logical Cms fielsystem.
45       */
46      private String m_exportpoint = null;
47      
48      /**
49       * The the exportpath of a exportpoint in a real filesystem.
50       *  
51       */
52      private String m_exportpath = null;
53      
54  
55       /**
56       * Constructs a new CmsExportPoint. 
57       * This constructor creates a new exportpoint for the disc filesystem
58       * 
59       * @param exportpoint The export point in the Cms filesystem.
60       * @param expottpath The physical location this export point directs to. 
61       */
62      public CmsExportPoint(String exportpoint, String exportpath) {
63          m_exportpoint = exportpoint;
64          m_exportpath = exportpath;
65      }
66      /**
67       * Returns the exportpath of a CmsExportPoint Object.
68       * 
69       * @return The physical location this exportpoint directs to or null.
70       */
71      public String getExportPath() {
72          return m_exportpath;
73      }
74      /**
75       * Returns the exportpoint of a CmsExportPoint Object.
76       * @return The exportpoint in the OpenCms filesystem.
77       */
78      public String getExportpoint() {
79        return m_exportpoint;
80      }
81      /**
82       * Returns a string-representation for this object.
83       * This can be used for debugging.
84       * 
85       * @return string-representation for this object.
86       */
87      public String toString() {
88          StringBuffer output=new StringBuffer();
89          output.append("[ExportPoint]:");
90          output.append(m_exportpoint);
91          output.append(" , Exportpath=");
92          output.append(m_exportpath);
93          return output.toString();
94      }
95  }