Source code: org/jbpm/workflow/organisation/Group.java
1 package org.jbpm.workflow.organisation;
2
3 import java.util.*;
4
5 /**
6 * is any type of collection of users.
7 * Organisational entities such as a business unit, a department, a team, ...
8 * or a goup could be created for e.g. : all the people with red hair.
9 * Groups can be ordered hierarchically. This is mostly the case in
10 * groups that represent the organisational hierarchy.
11 *
12 * <p>Since it's not possible to capture all group-information
13 * that is used in all organisations in this interface, a basic default
14 * set of properties is provided and it is made easy to extend them
15 * by customizing this organisation component.</p>
16 *
17 * <p><img src="organisationmodel.gif"></p>
18 *
19 * @author Tom Baeyens
20 */
21 public interface Group extends Actor {
22
23 /**
24 * gets all the {@link Membership}s of this Group.
25 * @return a Collection of {@link Membership}s.
26 */
27 Collection getMemberships();
28
29 /**
30 * gets the parent-Group of this group.
31 */
32 Group getParent();
33
34 /**
35 * gets the child-Groups of this group.
36 * @return a Collection of Groups.
37 */
38 Collection getChildren();
39 }