01: /**
02: *
03: * Bonita
04: * Copyright (C) 1999 Bull S.A.
05: * Bull 68 route de versailles 78434 Louveciennes Cedex France
06: * Further information: bonita@objectweb.org
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Lesser General Public
10: * License as published by the Free Software Foundation; either
11: * version 2.1 of the License, or any later version.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Lesser General Public License for more details.
17: *
18: * You should have received a copy of the GNU Lesser General Public
19: * License along with this library; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21: * USA
22: *
23: *
24: --------------------------------------------------------------------------
25: * $Id: Sample1CustomAgentGroupMembers.java,v 1.2 2004/11/10 17:10:50 mvaldes Exp $
26: *
27: --------------------------------------------------------------------------
28: */package hero.mapper;
29:
30: import hero.util.HeroException;
31: import hero.interfaces.BnRoleLocal;
32:
33: import java.util.*;
34:
35: public class Sample1CustomAgentGroupMembers implements
36: hero.mapper.RoleMapperI {
37:
38: public Collection searchMembers(Object b, BnRoleLocal n,
39: String userName) throws HeroException {
40: Collection users = new ArrayList();
41: String roleName = n.getName();
42: String projectName = n.getBnProject().getName();
43:
44: // logs trace
45: System.out.println("[CustomAgentGroupMembers] BnRole name:"
46: + roleName + " - Project name = " + projectName);
47:
48: users.add("john");
49: return users;
50: }
51:
52: }
|