KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > setup > impl > config > CmsAccessConfigImpl


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.config;
10
11 import org.jboss.portal.setup.config.CmsAccessConfig;
12
13 /**
14  * @author <a HREF="mailto:palber@novell.com">Polina Alber</a>
15  * Date: May 2, 2005; Time: 7:28:26 PM
16  * @jmx.mbean
17  * @jboss.xmbean
18  * @since JBoss portal 2.0
19  * Class org.jboss.portal.setup.impl.config.CmsAccessConfigImpl
20  */

21 public class CmsAccessConfigImpl extends ConfigurationImpl implements CmsAccessConfig
22 {
23    private boolean m_useTransaction = false;
24    private String JavaDoc m_securityToken = null;
25    private String JavaDoc m_defaultParentUri = "/files";
26    private String JavaDoc m_cmsCredentials = "root";
27    private boolean m_forceInlistment = false;
28
29    /**
30     * @return a boolean flag, when true indicates that slide transaction should be used
31     * @jmx.managed-attribute access="read-write"
32     */

33    public boolean getUseTransaction()
34    {
35       return m_useTransaction;
36    }
37
38    /**
39     * Set a boolean flag, when true indicates that slide transaction should be used
40     *
41     * @jmx.managed-attribute access="read-write"
42     */

43    public void setUseTransaction(boolean flag)
44    {
45       m_useTransaction = flag;
46    }
47
48    /**
49     * @return Security token string for CMS provider
50     * @jmx.managed-attribute access="read-write"
51     */

52    public String JavaDoc getSecurityToken()
53    {
54       return m_securityToken;
55    }
56
57    /**
58     * Set Security token string for CMS provider
59     *
60     * @jmx.managed-attribute access="read-write"
61     */

62    public void setSecurityToken(String JavaDoc token)
63    {
64       m_securityToken = token;
65    }
66
67    /**
68     * @return a default uri to use when parenuri is not specified by content meta data
69     * @jmx.managed-attribute access="read-write"
70     */

71    public String JavaDoc getDefaultParentUri()
72    {
73       return m_defaultParentUri;
74    }
75
76    /**
77     * Set a default uri to use when parenuri is not specified by content meta data
78     *
79     * @jmx.managed-attribute access="read-write"
80     */

81    public void setDefaultParentUi(String JavaDoc defaultParentUri)
82    {
83       m_defaultParentUri = defaultParentUri;
84    }
85
86    /**
87     * @return a CMS credentials to be used for CMS provider access
88     * @jmx.managed-attribute access="read-write"
89     */

90    public String JavaDoc getCmsCredentials()
91    {
92       return m_cmsCredentials;
93    }
94
95    /**
96     * Set a CMS credentials to be used for CMS provider access
97     *
98     * @jmx.managed-attribute access="read-write"
99     */

100    public void setCmsCredentials(String JavaDoc credentials)
101    {
102       m_cmsCredentials = credentials;
103    }
104
105    /**
106     * @return boolean flag that hints if inlistment should be forced
107     * @jmx.managed-attribute access="read-write"
108     */

109    public boolean getForceInlistment()
110    {
111       return m_forceInlistment;
112    }
113
114    /**
115     * Set a boolean flag that hints if inlistment should be forced
116     *
117     * @jmx.managed-attribute access="read-write"
118     */

119    public void setForceInlistment(boolean flag)
120    {
121       m_forceInlistment = flag;
122    }
123 }
124
Popular Tags