1 9 package org.jboss.portlet.forums.security; 10 11 import java.util.LinkedHashSet ; 12 import java.util.ResourceBundle ; 13 import java.util.Set ; 14 15 19 public class CategoryItemImpl 20 implements org.jboss.portal.core.security.Item 21 { 22 public String name; 23 24 public CategoryItemImpl(ResourceBundle bundle, String name) 25 { 26 this.name = name; 27 } 28 29 30 public String getName() 31 { 32 return name; 33 } 34 35 public Set getPermissionsNames() 36 { 37 Set set = new LinkedHashSet (); 38 set.add(ForumsSecurityConstants.ADMINCATEGORY); 39 set.add(ForumsSecurityConstants.DELETEFORUMINCATEGORY); 40 set.add(ForumsSecurityConstants.ADDFORUMINCATEGORY); 41 set.add(ForumsSecurityConstants.EDITFORUMINCATEGORY); 42 set.add(ForumsSecurityConstants.READCATEGORY); 43 return set; 44 } 45 46 public String getDescription() 47 { 48 return "Categories management"; 49 } 50 } | Popular Tags |