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: CustomGroupMembers.java,v 1.1 2005/08/29 13:50:28 mvaldes Exp $
26: *
27: --------------------------------------------------------------------------
28: */package hero.initiatorMapper;
29:
30: import hero.util.HeroException;
31: import hero.interfaces.BnProjectLocal;
32:
33: import java.util.*;
34:
35: public class CustomGroupMembers implements
36: hero.initiatorMapper.InitiatorMapperI {
37:
38: public Collection searchMembers(Object b, BnProjectLocal n,
39: String userName) throws HeroException {
40: ArrayList users = new ArrayList();
41: //String projectName=n.getName();
42: //String projectName=n.getBnProject().getName();
43: String intiatorMapperName = n.getBnInitiatorMapper().getName();
44: int initiatorMapperType = n.getBnInitiatorMapper().getType();
45: String projectName = n.getName();
46:
47: // logs trace
48: System.out.println("[CustomGroupMembers] Intiator Mapper Name:"
49: + intiatorMapperName + " type = " + initiatorMapperType
50: + " - Project name = " + projectName);
51: System.out
52: .println("[CustomGroupMembers] Not implemented ..... ");
53: try {
54:
55: // To be implemented !!!
56: // ...
57: // return as ex. collection containing the connected user
58: //users.add(userName);
59: users.add("roro");
60: users.add("riri");
61: return users;
62: } catch (Exception e) {
63: throw new HeroException(
64: "Error setting initiator mapper: Name = "
65: + intiatorMapperName + " type = "
66: + initiatorMapperType + " - "
67: + e.getMessage());
68: }
69: }
70:
71: }
|