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 Vorgesetzter extends AbstractActor<UrlaubsAntrag> {
22: public Set<String> getAssignees(UrlaubsAntrag subject, int level) {
23: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.Vorgesetzter.getAssignees) ENABLED START*/
24: switch (level) {
25: case 0:
26: return new HashSet<String>(Arrays.asList("fy", "nh", "tw",
27: "elh"));
28: case 1:
29: return new HashSet<String>(Arrays.asList("al"));
30: default:
31: return Collections.EMPTY_SET;
32: }
33: /*PROTECTED REGION END*/
34: }
35: }
|