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