KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > portlet > cms > admin > 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.cms.admin.security;
10
11 import org.jboss.portal.core.security.PermissionDescription;
12
13 import java.util.LinkedHashSet JavaDoc;
14 import java.util.Set JavaDoc;
15
16 /**
17  * @author Roy Russo : roy at jboss dot org
18  */

19 public class RootItemImpl
20       implements org.jboss.portal.core.security.Item
21 {
22
23    public RootItemImpl()
24    {
25    }
26
27    public String JavaDoc getName()
28    {
29       return "Root";
30    }
31
32    public Set JavaDoc getPermissionsNames()
33    {
34       Set JavaDoc set = new LinkedHashSet JavaDoc();
35       set.add(AdminCMSSecurityConstants.ADMIN);
36       set.add(AdminCMSSecurityConstants.GLOBALREAD);
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