1 9 package org.jboss.portal.core.modules; 10 11 import org.jboss.portal.core.model.Role; 12 13 import java.util.Set ; 14 import java.util.List ; 15 16 22 public interface RoleModule 23 { 24 30 Role findRoleByName(String name) throws IllegalArgumentException , ModuleException; 31 32 Set findRolesByNames(String [] names) throws IllegalArgumentException , ModuleException; 33 34 40 Role findRoleByDisplayName(String displayName) throws IllegalArgumentException , ModuleException; 41 42 48 Role findRoleByID(Integer id) throws IllegalArgumentException , ModuleException; 49 50 57 Role createRole(String name, String displayName) throws IllegalArgumentException , ModuleException; 58 59 64 void removeRole(Integer id) throws IllegalArgumentException , ModuleException; 65 66 71 int getRolesCount() throws ModuleException; 72 73 78 Set findRoles() throws ModuleException; 79 80 89 Set findRoleMembers(String roleName, int offset, int limit, String userNameFilter) throws ModuleException; 90 } | Popular Tags |