Coverage Report - org.kuali.student.core.versionmanagement.dto.VersionInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
VersionInfo
0%
0/19
N/A
1
 
 1  
 /**
 2  
  * Copyright 2010 The Kuali Foundation Licensed under the
 3  
  * Educational Community License, Version 2.0 (the "License"); you may
 4  
  * not use this file except in compliance with the License. You may
 5  
  * obtain a copy of the License at
 6  
  *
 7  
  * http://www.osedu.org/licenses/ECL-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing,
 10  
  * software distributed under the License is distributed on an "AS IS"
 11  
  * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 12  
  * or implied. See the License for the specific language governing
 13  
  * permissions and limitations under the License.
 14  
  */
 15  
 
 16  
 package org.kuali.student.core.versionmanagement.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.Date;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlElement;
 24  
 
 25  
 /**
 26  
  * Detailed information about a proposal.
 27  
  *
 28  
  * @Author KSContractMojo
 29  
  * @Author Kamal
 30  
  * @Since Thu May 28 10:25:28 EDT 2009
 31  
  * @See <a href="https://wiki.kuali.org/display/KULSTU/versionInfo+Structure">VersionInfo</>
 32  
  *
 33  
  */
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  0
 public class VersionInfo implements Serializable  {
 36  
 
 37  
     private static final long serialVersionUID = 1L;
 38  
 
 39  
     @XmlElement
 40  
     private String versionIndId;
 41  
     
 42  
     @XmlElement
 43  
     private Long sequenceNumber;
 44  
     
 45  
     @XmlElement
 46  
     private Date currentVersionStart;
 47  
 
 48  
         @XmlElement
 49  
     private Date currentVersionEnd;
 50  
     
 51  
     @XmlElement
 52  
     private String versionComment;
 53  
 
 54  
         @XmlElement
 55  
     private String versionedFromId;
 56  
 
 57  
     /**
 58  
      * Version independent Id that remains the same across all versions
 59  
      */
 60  
     public String getVersionIndId() {
 61  0
         return versionIndId;
 62  
     }
 63  
 
 64  
     public void setVersionIndId(String versionIndId) {
 65  0
         this.versionIndId = versionIndId;
 66  0
     }
 67  
 
 68  
     /**
 69  
      * The sequence number of the version
 70  
      */
 71  
     public Long getSequenceNumber() {
 72  0
         return sequenceNumber;
 73  
     }
 74  
 
 75  
     public void setSequenceNumber(Long sequenceNumber) {
 76  0
         this.sequenceNumber = sequenceNumber;
 77  0
     }
 78  
 
 79  
     /**
 80  
      * The date and time this version became current.
 81  
      */
 82  
     public Date getCurrentVersionStart() {
 83  0
                 return currentVersionStart;
 84  
         }
 85  
 
 86  
         public void setCurrentVersionStart(Date currentVersionStart) {
 87  0
                 this.currentVersionStart = currentVersionStart;
 88  0
         }
 89  
 
 90  
     /**
 91  
      * The date and time when this version stopped being current.
 92  
      */
 93  
         public Date getCurrentVersionEnd() {
 94  0
                 return currentVersionEnd;
 95  
         }
 96  
 
 97  
         public void setCurrentVersionEnd(Date currentVersionEnd) {
 98  0
                 this.currentVersionEnd = currentVersionEnd;
 99  0
         }
 100  
 
 101  
     /**
 102  
      * Comments associated with the verison
 103  
      */
 104  
     public String getVersionComment() {
 105  0
         return versionComment;
 106  
     }
 107  
 
 108  
     public void setVersionComment(String versionComment) {
 109  0
         this.versionComment = versionComment;
 110  0
     }
 111  
 
 112  
         public void setVersionedFromId(String versionedFromId) {
 113  0
                 this.versionedFromId = versionedFromId;
 114  0
         }
 115  
 
 116  
         public String getVersionedFromId() {
 117  0
                 return versionedFromId;
 118  
         }
 119  
 }