01: /*
02: *
03: * (c) Copyright 2004 - 2007 osbl development team.
04: *
05: * This file is part of the osbl (http://osbl.wilken.de).
06: *
07: * the osbl is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.osbl.demo.urlaub.process;
15:
16: import org.concern.controller.AbstractActor;
17: import org.osbl.demo.urlaub.model.UrlaubsAntrag;
18:
19: import java.util.*;
20:
21: public class PersonalAbteilung extends AbstractActor<UrlaubsAntrag> {
22: public Set getAssignees(UrlaubsAntrag subject, int level) {
23: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.PersonalAbteilung.getAssignees) ENABLED START*/
24: if (level > 3)
25: return Collections.EMPTY_SET;
26:
27: return new HashSet(Arrays.asList(new String[] { "hm",
28: "hr " + (level + 1) }));
29: /*PROTECTED REGION END*/
30: }
31: }
|