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.user;
7   
8   import java.util.Date;
9   
10  import javax.persistence.Entity;
11  import javax.persistence.EnumType;
12  import javax.persistence.Enumerated;
13  
14  import com.hack23.cia.model.application.impl.common.UserSession;
15  
16  /***
17   * The Class AbstractParliamentActionEvent.
18   */
19  @Entity
20  public abstract class AbstractParliamentActionEvent extends
21          AbstractUserActionEvent {
22  
23      /***
24       * The Enum Operation.
25       */
26      public enum Operation {
27  
28          /*** The Forum. */
29  		Forum,
30  
31  /*** The Grading. */
32  Grading,
33  
34  /*** The Hot or not. */
35  HotOrNot,
36  
37  /*** The Opinions. */
38  Opinions,
39  
40  /*** The Short_ comment. */
41  Short_Comment,
42  
43  /*** The Vote. */
44  Vote;
45      }
46  
47      /*** The Constant serialVersionUID. */
48      private static final long serialVersionUID = 1L;
49      
50      /*** The citizen operation. */
51      private Operation citizenOperation;
52  
53      /***
54       * Instantiates a new abstract parliament action event.
55       */
56      public AbstractParliamentActionEvent() {
57          super();
58      }
59  
60      /***
61       * Instantiates a new abstract parliament action event.
62       *
63       * @param createdDate the created date
64       * @param userSession the user session
65       */
66      public AbstractParliamentActionEvent(final Date createdDate,
67              final UserSession userSession) {
68          super(createdDate, userSession);
69      }
70  
71      /***
72       * Gets the citizen operation.
73       *
74       * @return the citizen operation
75       */
76      @Enumerated(EnumType.STRING)
77      public Operation getCitizenOperation() {
78          return citizenOperation;
79      }
80  
81      /***
82       * Sets the citizen operation.
83       *
84       * @param citizenOperation the new citizen operation
85       */
86      public void setCitizenOperation(final Operation citizenOperation) {
87          this.citizenOperation = citizenOperation;
88      }
89      
90  
91  }