KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > impl > security > SecurityModuleImpl


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.core.impl.security;
10
11 import org.jboss.portal.core.modules.SecurityModule;
12 import org.jboss.portal.core.modules.AbstractModule;
13 import org.jboss.portal.core.security.SchemeStore;
14 import org.jboss.portal.common.FQN;
15 import org.jboss.portal.common.tree.Tree;
16
17 /**
18  * @jmx.mbean
19  * @jboss.xmbean
20  *
21  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
22  * @version $Revision: 1.1 $
23  */

24 public class SecurityModuleImpl
25    extends AbstractModule
26    implements SecurityModule
27 {
28
29    private Tree tree;
30
31    /**
32     * @jmx.managed-attribute
33     */

34    public Tree getTree()
35    {
36       return tree;
37    }
38
39    /**
40     * @jmx.managed-attribute
41     */

42    public void setTree(Tree tree)
43    {
44       this.tree = tree;
45    }
46
47    public SchemeStore getStore(FQN fqn)
48    {
49       return new SchemeStoreImpl(tree, fqn);
50    }
51
52
53 }
54
Popular Tags