1
2
3
4
5
6 package com.hack23.cia.model.application.impl.admin;
7
8 import java.util.Date;
9
10 import javax.persistence.DiscriminatorValue;
11 import javax.persistence.Entity;
12 import javax.persistence.EnumType;
13 import javax.persistence.Enumerated;
14
15 import com.hack23.cia.model.application.impl.common.UserSession;
16
17 /***
18 * The Class MonitorActionEvent.
19 */
20 @Entity
21 @DiscriminatorValue("MonitorActionEvent")
22 public class MonitorActionEvent extends AbstractAdminActionEvent {
23
24 /***
25 * The Enum Operation.
26 */
27 public enum Operation {
28
29 /*** The Recent actions. */
30 RecentActions,
31
32 /*** The Response time. */
33 ResponseTime;
34 }
35
36 /*** The Constant serialVersionUID. */
37 private static final long serialVersionUID = 1L;
38
39 /*** The operation. */
40 private Operation operation;
41
42 /***
43 * Instantiates a new monitor action event.
44 */
45 public MonitorActionEvent() {
46 }
47
48 /***
49 * Instantiates a new monitor action event.
50 *
51 * @param createdDate the created date
52 * @param userSession the user session
53 * @param operation the operation
54 */
55 public MonitorActionEvent(final Date createdDate,
56 final UserSession userSession, final Operation operation) {
57 super(createdDate, userSession);
58 this.operation = operation;
59 }
60
61 /***
62 * Gets the operation.
63 *
64 * @return the operation
65 */
66 @Enumerated(EnumType.STRING)
67 public Operation getOperation() {
68 return operation;
69 }
70
71 /***
72 * Sets the operation.
73 *
74 * @param operation the new operation
75 */
76 public void setOperation(final Operation operation) {
77 this.operation = operation;
78 }
79 }