1
2
3
4
5 package com.hack23.cia.web.action.admin;
6
7 import com.hack23.cia.model.application.impl.admin.AgencyActionEvent.Operation;
8 import com.hack23.cia.model.application.impl.common.Agency;
9
10 /***
11 * The Class AgencyAction.
12 */
13 public class AgencyAction extends AbstractConfigurationAction {
14
15 /*** The Constant serialVersionUID. */
16
17 /*** The Constant serialVersionUID. */
18 private static final long serialVersionUID = 967092220196995079L;
19
20 /*** The agency dto. */
21 private final Agency agencyDto;
22
23 /*** The agency id. */
24 private final Long agencyId;
25
26 /*** The operation. */
27 private final Operation operation;
28
29 /***
30 * Instantiates a new agency action.
31 *
32 * @param operation the operation
33 * @param agencyId the agency id
34 */
35 public AgencyAction(final Operation operation, final Long agencyId) {
36 super();
37 this.operation = operation;
38 this.agencyId = agencyId;
39 this.agencyDto=null;
40 }
41
42 /***
43 * Instantiates a new agency action.
44 *
45 * @param operation the operation
46 * @param agencyId the agency id
47 * @param agencyDto the agency dto
48 */
49 public AgencyAction(final Operation operation, final Long agencyId,final Agency agencyDto) {
50 super();
51 this.operation = operation;
52 this.agencyId = agencyId;
53 this.agencyDto= agencyDto;
54 }
55
56 /***
57 * Gets the agency dto.
58 *
59 * @return the agency dto
60 */
61 public final Agency getAgencyDto() {
62 return agencyDto;
63 }
64
65 /***
66 * Gets the agency id.
67 *
68 * @return the agency id
69 */
70 public final Long getAgencyId() {
71 return agencyId;
72 }
73
74 /***
75 * Gets the operation.
76 *
77 * @return the operation
78 */
79 public final Operation getOperation() {
80 return operation;
81 }
82 }