KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > portlet > cms > admin > security > DirectoryItemImpl


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 java.util.LinkedHashSet JavaDoc;
12 import java.util.ResourceBundle JavaDoc;
13 import java.util.Set JavaDoc;
14
15 /**
16  * @author Roy Russo : roy at jboss dot org
17  * TODO: add *dynamic* root directory permissions.
18  */

19 public class DirectoryItemImpl
20       implements org.jboss.portal.core.security.Item
21 {
22    public String JavaDoc name;
23
24    public DirectoryItemImpl(ResourceBundle JavaDoc bundle, String JavaDoc name)
25    {
26       this.name = name;
27    }
28
29    public String JavaDoc getName()
30    {
31       return name;
32    }
33
34    public Set JavaDoc getPermissionsNames()
35    {
36       Set JavaDoc set = new LinkedHashSet JavaDoc();
37       set.add(AdminCMSSecurityConstants.ADMINDIRECTORY);
38       return set;
39    }
40
41    public String JavaDoc getDescription()
42    {
43       return "Directory Management";
44    }
45 }
Popular Tags