KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > portlet > user > security > RootItemImpl


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.portlet.user.security;
10
11 import java.util.LinkedHashSet JavaDoc;
12 import java.util.Set JavaDoc;
13
14 import org.jboss.portal.core.security.PermissionDescription;
15
16 /**
17  * @author <a HREF="mailto:theute@jboss.org">Thomas Heute </a>
18  * @version $Revision: 1.1 $
19  */

20 public class RootItemImpl
21       implements org.jboss.portal.core.security.Item
22 {
23
24    public RootItemImpl()
25    {
26    }
27    
28    public String JavaDoc getName()
29    {
30       return "Root";
31    }
32
33    public Set JavaDoc getPermissionsNames()
34    {
35       Set JavaDoc set = new LinkedHashSet JavaDoc();
36       set.add(UserSecurityConstants.ADMIN);
37       return set;
38    }
39
40    public PermissionDescription getPermission(String JavaDoc name)
41    {
42       return null;
43    }
44
45    public String JavaDoc getDescription()
46    {
47       return "Global permission management";
48    }
49
50 }
51
Popular Tags