KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > metadata > AccessControllerMetaData


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.metadata;
10
11 import org.jboss.portal.common.plugin.PluginMetaData;
12
13 import java.util.Set JavaDoc;
14 import java.util.HashSet JavaDoc;
15
16 /**
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.1 $
19  */

20 public class AccessControllerMetaData
21     implements PluginMetaData
22 {
23
24    private boolean unchecked;
25    private Set JavaDoc roles;
26    
27    public AccessControllerMetaData()
28    {
29       this.unchecked = true;
30       this.roles = new HashSet JavaDoc();
31    }
32    
33    public void setUnchecked(boolean unchecked)
34    {
35       this.unchecked = unchecked;
36    }
37    
38    public boolean isUnchecked()
39    {
40       return unchecked;
41    }
42    
43    public void addRole(String JavaDoc role)
44    {
45       roles.add(role);
46    }
47    
48    public Set JavaDoc getRoles()
49    {
50       return roles;
51    }
52 }
53
Popular Tags