001    /**
002     * Copyright 2005-2012 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.kim.bo.ui;
017    
018    import org.hibernate.annotations.Type;
019    import org.kuali.rice.kim.document.IdentityManagementRoleDocument;
020    import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
021    
022    import javax.persistence.Column;
023    import javax.persistence.MappedSuperclass;
024    import javax.persistence.Transient;
025    
026    /**
027     * 
028     * @author Kuali Rice Team (rice.collab@kuali.org)
029     *
030     */
031    @MappedSuperclass
032    public class RoleDocumentBoBase  extends PersistableBusinessObjectBase {
033        @Column(name="DOC_HDR_ID")
034        protected String documentNumber;
035            @Type(type="yes_no")
036            @Column(name="ACTV_IND")
037        protected boolean active;
038            @Type(type="yes_no")
039            @Column(name="EDIT_FLAG")
040        protected boolean edit;
041            @Transient
042            protected IdentityManagementRoleDocument roleDocument;
043    
044            public String getDocumentNumber() {
045                    return this.documentNumber;
046            }
047    
048            public void setDocumentNumber(String documentNumber) {
049                    this.documentNumber = documentNumber;
050            }
051    
052            public boolean isActive() {
053                    return this.active;
054            }
055    
056            public void setActive(boolean active) {
057                    this.active = active;
058            }
059    
060            public IdentityManagementRoleDocument getRoleDocument() {
061                    return this.roleDocument;
062            }
063    
064            public void setRoleDocument(IdentityManagementRoleDocument roleDocument) {
065                    this.roleDocument = roleDocument;
066            }
067    
068            public boolean isEdit() {
069                    return this.edit;
070            }
071    
072            public void setEdit(boolean edit) {
073                    this.edit = edit;
074            }
075    
076    }