View Javadoc
1   /**
2    * Copyright 2005-2014 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.edl.impl.bo;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  import org.kuali.rice.krad.data.jpa.converters.Boolean01Converter;
20  import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
21  
22  import javax.persistence.Column;
23  import javax.persistence.Convert;
24  import javax.persistence.Entity;
25  import javax.persistence.GeneratedValue;
26  import javax.persistence.Id;
27  import javax.persistence.Table;
28  import javax.persistence.Transient;
29  
30  
31  /**
32   * Association between WorkflowDocument type -> EDocLite definition, EDocLite style
33   * Table: en_edoclt_assoc_t
34   * @author Kuali Rice Team (rice.collab@kuali.org)
35   */
36  @Entity
37  @Table(name="KREW_EDL_ASSCTN_T")
38  public class EDocLiteAssociation  extends PersistableBusinessObjectBase {
39  
40      private static final long serialVersionUID = 7300251507982374010L;
41      /**
42       * edoclt_assoc_id
43       */
44      @Id
45      @GeneratedValue(generator="KREW_EDL_S")
46      @PortableSequenceGenerator(name = "KREW_EDL_S")
47      @Column(name="EDOCLT_ASSOC_ID", nullable = false)
48      private Long edocLiteAssocId;
49      /**
50       * edoclt_assoc_doctype_nm
51       */
52      @Column(name="DOC_TYP_NM", nullable = false)
53      private String edlName;
54      /**
55       * edoclt_assoc_def_nm
56       */
57      @Column(name="EDL_DEF_NM")
58      private String definition;
59      /**
60       * edoclt_assoc_style_nm
61       */
62      @Column(name="STYLE_NM")
63      private String style;
64      /**
65       * edoclt_assoc_actv_ind
66       */
67      @Convert(converter=Boolean01Converter.class)
68      @Column(name="ACTV_IND", nullable = false)
69      private Boolean activeInd;
70  
71      @Transient
72      private String actionsUrl;//for quickfinder
73  
74      /**
75       * Returns the edoc lite association id
76       * @return the association id
77       */
78      public Long getEdocLiteAssocId() {
79          return edocLiteAssocId;
80      }
81  
82      /**
83       *
84       * @see #getEdocLiteAssocId()
85       */
86      public void setEdocLiteAssocId(Long edocLiteAssocId) {
87          this.edocLiteAssocId = edocLiteAssocId;
88      }
89  
90      /**
91       * Returns the edoc lite name
92       * @return the edoc lite name
93       */
94      public String getEdlName() {
95          return edlName;
96      }
97  
98      /**
99       * @see #getEdlName()
100      */
101     public void setEdlName(String edlName) {
102         this.edlName = edlName;
103     }
104 
105     /**
106      * Returns the definition
107      * @return the definition
108      */
109     public String getDefinition() {
110         return definition;
111     }
112 
113     /**
114      *
115      * @see #getDefinition()
116      */
117     public void setDefinition(String definition) {
118         this.definition = definition;
119     }
120 
121     /**
122      * Returns the style.
123      * @return the style
124      */
125     public String getStyle() {
126         return style;
127     }
128 
129     /**
130      *
131      * @see #getStyle()
132      */
133     public void setStyle(String style) {
134         this.style = style;
135     }
136 
137     /**
138      * Returns the records activity.
139      * @return TRUE if the record is active, FALSE otherwise.
140      */
141     public Boolean getActiveInd() {
142         return activeInd;
143     }
144 
145     /**
146      *
147      * @see #getActiveInd()
148      */
149     public void setActiveInd(Boolean activeInd) {
150         this.activeInd = activeInd;
151     }
152 
153     /**
154      * Returns actions url
155      * @return the actions url
156      */
157     public String getActionsUrl() {
158         return actionsUrl;
159     }
160 
161     /**
162      *
163      * @see #getActionsUrl()
164      */
165     public void setActionsUrl(String actionsUrl) {
166         this.actionsUrl = actionsUrl;
167     }
168 }