View Javadoc

1   /*
2    * Copyright 2007-2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.ken.bo;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Id;
20  import javax.persistence.CascadeType;
21  import javax.persistence.Table;
22  import javax.persistence.Entity;
23  
24  /**
25   * This class represents a priority for a notification - i.e. "High", "Medium", "Low", "Emergency", etc.
26   * In addition, it describes information about a priority such as its ranking order of priority.  Priority 
27   * order within the system is assumed to be ascending.  This by no means impacts the order of delivery 
28   * of a notification system message.
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   */
31  @Entity
32  @Table(name="KREN_PRIO_T")
33  public class NotificationPriority {
34      @Id
35  	@Column(name="PRIO_ID")
36  	private Long id;
37      @Column(name="NM", nullable=false)
38  	private String name;
39      @Column(name="DESC_TXT", nullable=false)
40  	private String description;
41      @Column(name="PRIO_ORD", nullable=false)
42  	private Integer order;
43      
44      /**
45       * Constructs a NotificationPriority instance.
46       */
47      public NotificationPriority() {
48      }
49  
50      /**
51       * Gets the description attribute. 
52       * @return Returns the description.
53       */
54      public String getDescription() {
55  	return description;
56      }
57  
58      /**
59       * Sets the description attribute value.
60       * @param description The description to set.
61       */
62      public void setDescription(String description) {
63  	this.description = description;
64      }
65  
66      /**
67       * Gets the id attribute. 
68       * @return Returns the id.
69       */
70      public Long getId() {
71  	return id;
72      }
73  
74      /**
75       * Sets the id attribute value.
76       * @param id The id to set.
77       */
78      public void setId(Long id) {
79  	this.id = id;
80      }
81  
82      /**
83       * Gets the name attribute. 
84       * @return Returns the name.
85       */
86      public String getName() {
87  	return name;
88      }
89  
90      /**
91       * Sets the name attribute value.
92       * @param name The name to set.
93       */
94      public void setName(String name) {
95  	this.name = name;
96      }
97  
98      /**
99       * Gets the order attribute. 
100      * @return Returns the order.
101      */
102     public Integer getOrder() {
103 	return order;
104     }
105 
106     /**
107      * Sets the order attribute value.
108      * @param order The order to set.
109      */
110     public void setOrder(Integer order) {
111 	this.order = order;
112     }
113 }
114