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   
6   package com.hack23.cia.model.application.impl.admin;
7   
8   import java.util.Date;
9   
10  import javax.persistence.Entity;
11  
12  import com.hack23.cia.model.application.impl.common.UserSession;
13  
14  /***
15   * The Class AbstractAgencyActionEvent.
16   */
17  @Entity
18  public abstract class AbstractAgencyActionEvent extends
19          AbstractConfigurationActionEvent {
20  
21      /*** The Constant serialVersionUID. */
22      private static final long serialVersionUID = 1L;
23  
24      /*** The agency id. */
25      private Long agencyId;
26  
27      /***
28       * Instantiates a new abstract agency action event.
29       */
30      public AbstractAgencyActionEvent() {
31      }
32  
33      /***
34       * Instantiates a new abstract agency action event.
35       *
36       * @param createdDate the created date
37       * @param userSession the user session
38       * @param agencyId the agency id
39       */
40      public AbstractAgencyActionEvent(final Date createdDate,
41              final UserSession userSession, final Long agencyId) {
42          super(createdDate, userSession);
43          this.agencyId = agencyId;
44      }
45  
46      /***
47       * Gets the agency id.
48       *
49       * @return the agency id
50       */
51      public Long getAgencyId() {
52          return agencyId;
53      }
54  
55      /***
56       * Sets the agency id.
57       *
58       * @param agencyId the new agency id
59       */
60      public void setAgencyId(final Long agencyId) {
61          this.agencyId = agencyId;
62      }
63  
64  }