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 ForumItemImpl 20 implements org.jboss.portal.core.security.Item 21 { 22 23 public String name; 24 25 public ForumItemImpl(ResourceBundle bundle, String name) 26 { 27 this.name = name; 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.ADMINFORUM); 39 set.add(ForumsSecurityConstants.DELETEPOSTINFORUM); 40 set.add(ForumsSecurityConstants.MODERATEFORUM); 41 set.add(ForumsSecurityConstants.ADDPOSTINFORUM); 42 set.add(ForumsSecurityConstants.EDITPOSTINFORUM); 43 set.add(ForumsSecurityConstants.READFORUM); 44 return set; 45 } 46 47 public String getDescription() 48 { 49 return "Forums security management"; 50 } 51 52 } 53 | Popular Tags |