View Javadoc

1   /*
2    * Copyright 2007-2009 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 java.util.LinkedHashMap;
19  
20  import javax.persistence.Column;
21  import javax.persistence.MappedSuperclass;
22  
23  import org.hibernate.annotations.Type;
24  import org.kuali.rice.kim.document.IdentityManagementRoleDocument;
25  import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
26  
27  /**
28   * 
29   * @author Kuali Rice Team (rice.collab@kuali.org)
30   *
31   */
32  @MappedSuperclass
33  public class RoleDocumentBoBase  extends PersistableBusinessObjectBase {
34      @Column(name="DOC_HDR_ID")
35      protected String documentNumber;
36  	@Type(type="yes_no")
37  	@Column(name="ACTV_IND")
38      protected boolean active;
39  	@Type(type="yes_no")
40  	@Column(name="EDIT_FLAG")
41      protected boolean edit;
42  	protected IdentityManagementRoleDocument roleDocument;
43  
44  	/**
45  	 * This overridden method ...
46  	 * 
47  	 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
48  	 */
49  	@Override
50  	protected LinkedHashMap toStringMapper() {
51  		LinkedHashMap m = new LinkedHashMap();
52  		m.put( "documentNumber", documentNumber );
53  		return m;
54  	}
55  
56  	public String getDocumentNumber() {
57  		return this.documentNumber;
58  	}
59  
60  	public void setDocumentNumber(String documentNumber) {
61  		this.documentNumber = documentNumber;
62  	}
63  
64  	public boolean isActive() {
65  		return this.active;
66  	}
67  
68  	public void setActive(boolean active) {
69  		this.active = active;
70  	}
71  
72  	public IdentityManagementRoleDocument getRoleDocument() {
73  		return this.roleDocument;
74  	}
75  
76  	public void setRoleDocument(IdentityManagementRoleDocument roleDocument) {
77  		this.roleDocument = roleDocument;
78  	}
79  
80  	public boolean isEdit() {
81  		return this.edit;
82  	}
83  
84  	public void setEdit(boolean edit) {
85  		this.edit = edit;
86  	}
87  
88  }