View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
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  }