KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > setup > impl > dl > cmsloader > CmsDataLoaderConfig


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.setup.impl.dl.cmsloader;
10
11 import org.jboss.portal.setup.impl.config.ConfigurationImpl;
12 import org.jboss.portal.setup.dl.DataLoaderConfig;
13 import org.jboss.util.StringPropertyReplacer;
14
15 /**
16  * @author <a HREF="mailto:palber@novell.com">Polina Alber</a>
17  * Date: May 3, 2005; Time: 12:41:13 AM
18  * @jmx.mbean
19  * @jboss.xmbean
20  * @since JBoss portal 2.0
21  * Class org.jboss.portal.setup.impl.dl.cmsloader.CmsDataLoaderConfig
22  */

23 public class CmsDataLoaderConfig extends ConfigurationImpl implements DataLoaderConfig
24 {
25    private String JavaDoc m_dataQueryStr;
26    private String JavaDoc m_dataLoaderClassname;
27    private String JavaDoc m_dataDirectory;
28
29
30    /**
31     * @jmx.managed-attribute
32     */

33    public String JavaDoc getLocalDataDirectory()
34    {
35       return m_dataDirectory;
36    }
37    /**
38     * @jmx.managed-attribute
39     */

40    public void setLocalDataDirectory(String JavaDoc dataDirectory)
41    {
42      String JavaDoc result = dataDirectory;
43       m_dataDirectory = StringPropertyReplacer.replaceProperties(result);
44    }
45    /**
46     * @return a sql query string that will be used to validae data existence.
47     * @jmx.managed-attribute
48     */

49    public String JavaDoc getDataQueryString()
50    {
51       return m_dataQueryStr;
52    }
53
54    /**
55     * @param queryString a sql query string that will be used to validae data existence.
56     * @jmx.managed-attribute
57     */

58    public void setDataQueryString(String JavaDoc queryString)
59    {
60       m_dataQueryStr = queryString;
61    }
62
63
64    /**
65     * @return a data loader implementation class name
66     * @jmx.managed-attribute
67     */

68    public String JavaDoc getDataLoaderClass()
69    {
70       return m_dataLoaderClassname;
71    }
72
73    /**
74     * @param className a class name of DataLoader implementation
75     * @jmx.managed-attribute
76     */

77    public void setDataLoaderClass(String JavaDoc className)
78    {
79       m_dataLoaderClassname = className;
80    }
81
82    /**
83     * @return DataLoader action type : suppoprted types are JDBC, CMS, Hibernate
84     */

85    public String JavaDoc getActionType()
86    {
87       return "CMS";
88    }
89
90
91 }
92
Popular Tags