View Javadoc

1   /**
2    * Copyright 2005-2012 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.kim.bo.ui;
17  
18  import org.hibernate.annotations.Type;
19  import org.kuali.rice.kim.document.IdentityManagementRoleDocument;
20  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
21  
22  import javax.persistence.Column;
23  import javax.persistence.MappedSuperclass;
24  import javax.persistence.Transient;
25  
26  /**
27   * 
28   * @author Kuali Rice Team (rice.collab@kuali.org)
29   *
30   */
31  @MappedSuperclass
32  public class RoleDocumentBoBase  extends PersistableBusinessObjectBase {
33      @Column(name="DOC_HDR_ID")
34      protected String documentNumber;
35  	@Type(type="yes_no")
36  	@Column(name="ACTV_IND")
37      protected boolean active;
38  	@Type(type="yes_no")
39  	@Column(name="EDIT_FLAG")
40      protected boolean edit;
41  	@Transient
42  	protected IdentityManagementRoleDocument roleDocument;
43  
44  	public String getDocumentNumber() {
45  		return this.documentNumber;
46  	}
47  
48  	public void setDocumentNumber(String documentNumber) {
49  		this.documentNumber = documentNumber;
50  	}
51  
52  	public boolean isActive() {
53  		return this.active;
54  	}
55  
56  	public void setActive(boolean active) {
57  		this.active = active;
58  	}
59  
60  	public IdentityManagementRoleDocument getRoleDocument() {
61  		return this.roleDocument;
62  	}
63  
64  	public void setRoleDocument(IdentityManagementRoleDocument roleDocument) {
65  		this.roleDocument = roleDocument;
66  	}
67  
68  	public boolean isEdit() {
69  		return this.edit;
70  	}
71  
72  	public void setEdit(boolean edit) {
73  		this.edit = edit;
74  	}
75  
76  }