blob: ee09cbda7f316fd48b0b31c2cba9bfd441412489 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
package org.anjocaido.groupmanager.events;
import org.anjocaido.groupmanager.data.Group;
import org.anjocaido.groupmanager.data.User;
/**
* @author ElgarL
*
* Handles all Event generation.
*
*/
public class GroupManagerEventHandler
{
protected static void callEvent(GMGroupEvent event)
{
event.schedule(event);
}
protected static void callEvent(GMUserEvent event)
{
event.schedule(event);
}
protected static void callEvent(GMSystemEvent event)
{
event.schedule(event);
}
public static void callEvent(Group group, GMGroupEvent.Action action)
{
callEvent(new GMGroupEvent(group, action));
}
public static void callEvent(String groupName, GMGroupEvent.Action action)
{
callEvent(new GMGroupEvent(groupName, action));
}
public static void callEvent(User user, GMUserEvent.Action action)
{
callEvent(new GMUserEvent(user, action));
}
public static void callEvent(String userName, GMUserEvent.Action action)
{
callEvent(new GMUserEvent(userName, action));
}
public static void callEvent(GMSystemEvent.Action action)
{
callEvent(new GMSystemEvent(action));
}
}
|