1 29 30 package hero.mapper; 31 32 import hero.util.HeroException; 33 import hero.interfaces.BnRoleLocal; 34 35 import java.util.*; 36 37 38 public class CustomGroupMembers implements hero.mapper.RoleMapperI { 39 40 public Collection searchMembers(Object b,BnRoleLocal n, String userName) throws HeroException { 41 Collection users = new ArrayList(); 42 String roleName=n.getName(); 43 String projectName=n.getBnProject().getName(); 44 45 System.out.println("[CustomGroupMembers] BnRole name:"+roleName + " - Project name = " + projectName); 47 System.out.println("[CustomGroupMembers] Not implemented ..... "); 48 try { 49 50 users.add("userName"); 53 return users; 54 } catch (Exception e) { 55 throw new HeroException("Error setting role : " + roleName + " with mapper " + e.getMessage()); 56 } 57 } 58 59 } 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | Popular Tags |