1 9 package org.jboss.portlet.forums.security; 10 11 import java.util.LinkedHashSet ; 12 import java.util.Set ; 13 14 import org.jboss.portal.core.security.PermissionDescription; 15 16 20 public class RootItemImpl 21 implements org.jboss.portal.core.security.Item 22 { 23 24 public RootItemImpl() 25 { 26 } 27 28 public String getName() 29 { 30 return "Root"; 31 } 32 33 public Set getPermissionsNames() 34 { 35 Set set = new LinkedHashSet (); 36 set.add(ForumsSecurityConstants.ADMIN); 37 set.add(ForumsSecurityConstants.DELETE); 38 set.add(ForumsSecurityConstants.EDIT); 39 set.add(ForumsSecurityConstants.ADD); 40 set.add(ForumsSecurityConstants.READ); 41 return set; 42 } 43 44 public PermissionDescription getPermission(String name) 45 { 46 return null; 47 } 48 49 public String getDescription() 50 { 51 return "Global permission management"; 52 } 53 54 } 55 | Popular Tags |