001/** 002 * Copyright 2005-2016 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 */ 016package org.kuali.rice.kim.bo.ui; 017 018import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 019 020import javax.persistence.Column; 021import javax.persistence.Id; 022import javax.persistence.MappedSuperclass; 023 024/** 025 * This is a description of what this class does - shyu don't forget to fill this in. 026 * 027 * @author Kuali Rice Team (rice.collab@kuali.org) 028 * 029 */ 030@MappedSuperclass 031public class KimDocumentBoBase extends PersistableBusinessObjectBase { 032 private static final long serialVersionUID = 9042706897191231670L; 033 @Id 034 @Column(name="FDOC_NBR") 035 protected String documentNumber; 036 //@Type(type="yes_no") 037 //@Column(name="ACTV_IND") 038 //protected boolean active = true; 039 //@Type(type="yes_no") 040 //@Column(name="EDIT_FLAG") 041 //protected boolean edit; 042 043 044 //@Column(name="ACTV_FRM_DT") 045 //protected Timestamp activeFromDate; 046 //@Column(name="ACTV_TO_DT") 047 //protected Timestamp activeToDate; 048 049 public String getDocumentNumber() { 050 return this.documentNumber; 051 } 052 053 public void setDocumentNumber(String documentNumber) { 054 this.documentNumber = documentNumber; 055 } 056 057 //public boolean isActive() { 058 // long now = System.currentTimeMillis(); 059 // return (activeFromDate == null || now > activeFromDate.getTime()) && (activeToDate == null || now < activeToDate.getTime()); 060 //} 061 062 //public void setActive(boolean active) { 063 // this.active = active; 064 //} 065 066 //public boolean isEdit() { 067 // return this.edit; 068 //} 069 070 //public void setEdit(boolean edit) { 071 // this.edit = edit; 072 //} 073 074 /** 075 * @return the activeFromDate 076 */ 077 //public Timestamp getActiveFromDate() { 078 // return this.activeFromDate; 079 //} 080 081 /** 082 * @param activeFromDate 083 * the activeFromDate to set 084 */ 085 //public void setActiveFromDate(Timestamp activeFromDate) { 086 // this.activeFromDate = activeFromDate; 087 //} 088 089 /** 090 * @return the activeToDate 091 */ 092 //public Timestamp getActiveToDate() { 093 // return this.activeToDate; 094 //} 095 096 /** 097 * @param activeToDate 098 * the activeToDate to set 099 */ 100 //public void setActiveToDate(Timestamp activeToDate) { 101 // this.activeToDate = activeToDate; 102 //} 103 104}