001    /**
002     * Copyright 2005-2014 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.edl.impl.bo;
017    
018    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
019    import org.kuali.rice.krad.data.jpa.converters.Boolean01Converter;
020    import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
021    
022    import javax.persistence.Column;
023    import javax.persistence.Convert;
024    import javax.persistence.Entity;
025    import javax.persistence.GeneratedValue;
026    import javax.persistence.Id;
027    import javax.persistence.Table;
028    import javax.persistence.Transient;
029    
030    
031    /**
032     * Association between WorkflowDocument type -> EDocLite definition, EDocLite style
033     * Table: en_edoclt_assoc_t
034     * @author Kuali Rice Team (rice.collab@kuali.org)
035     */
036    @Entity
037    @Table(name="KREW_EDL_ASSCTN_T")
038    public class EDocLiteAssociation  extends PersistableBusinessObjectBase {
039    
040        private static final long serialVersionUID = 7300251507982374010L;
041        /**
042         * edoclt_assoc_id
043         */
044        @Id
045        @GeneratedValue(generator="KREW_EDL_S")
046        @PortableSequenceGenerator(name = "KREW_EDL_S")
047        @Column(name="EDOCLT_ASSOC_ID", nullable = false)
048        private Long edocLiteAssocId;
049        /**
050         * edoclt_assoc_doctype_nm
051         */
052        @Column(name="DOC_TYP_NM", nullable = false)
053        private String edlName;
054        /**
055         * edoclt_assoc_def_nm
056         */
057        @Column(name="EDL_DEF_NM")
058        private String definition;
059        /**
060         * edoclt_assoc_style_nm
061         */
062        @Column(name="STYLE_NM")
063        private String style;
064        /**
065         * edoclt_assoc_actv_ind
066         */
067        @Convert(converter=Boolean01Converter.class)
068        @Column(name="ACTV_IND", nullable = false)
069        private Boolean activeInd;
070    
071        @Transient
072        private String actionsUrl;//for quickfinder
073    
074        /**
075         * Returns the edoc lite association id
076         * @return the association id
077         */
078        public Long getEdocLiteAssocId() {
079            return edocLiteAssocId;
080        }
081    
082        /**
083         *
084         * @see #getEdocLiteAssocId()
085         */
086        public void setEdocLiteAssocId(Long edocLiteAssocId) {
087            this.edocLiteAssocId = edocLiteAssocId;
088        }
089    
090        /**
091         * Returns the edoc lite name
092         * @return the edoc lite name
093         */
094        public String getEdlName() {
095            return edlName;
096        }
097    
098        /**
099         * @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    }