Coverage Report - org.kuali.rice.edl.framework.extract.DumpDTO
 
Classes in this File Line Coverage Branch Coverage Complexity
DumpDTO
0%
0/44
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 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.edl.framework.extract;
 17  
 
 18  
 import org.kuali.rice.core.api.util.RiceConstants;
 19  
 import org.kuali.rice.kew.api.KewApiConstants;
 20  
 
 21  
 import java.io.Serializable;
 22  
 import java.sql.Timestamp;
 23  
 import java.text.DateFormat;
 24  
 import java.text.SimpleDateFormat;
 25  
 import java.util.ArrayList;
 26  
 import java.util.Calendar;
 27  
 import java.util.Date;
 28  
 import java.util.List;
 29  
 
 30  0
 public class DumpDTO implements Serializable {
 31  
 
 32  
         private static final long serialVersionUID = -6136544551121011531L;
 33  
 
 34  
         private String docId;
 35  
         private String docTypeName;
 36  
         private String docRouteStatusCode;
 37  
         private Timestamp docModificationDate;
 38  
         private Timestamp docCreationDate;
 39  
         private String docDescription;
 40  
         private String docInitiatorId;
 41  
         private String docCurrentNodeName;
 42  
         private Integer lockVerNbr;
 43  
 
 44  0
     private List<FieldDTO> fields = new ArrayList<FieldDTO>();
 45  
 
 46  
         public Timestamp getDocCreationDate() {
 47  0
                 return docCreationDate;
 48  
         }
 49  
         public void setDocCreationDate(final Timestamp docCreationDate) {
 50  0
                 this.docCreationDate = docCreationDate;
 51  0
         }
 52  
         public String getDocCurrentNodeName() {
 53  0
                 return docCurrentNodeName;
 54  
         }
 55  
         public void setDocCurrentNodeName(final String docCurrentNodeName) {
 56  0
                 this.docCurrentNodeName = docCurrentNodeName;
 57  0
         }
 58  
         public String getDocDescription() {
 59  0
                 return docDescription;
 60  
         }
 61  
         public void setDocDescription(final String docDescription) {
 62  0
                 this.docDescription = docDescription;
 63  0
         }
 64  
         public String getDocId() {
 65  0
                 return docId;
 66  
         }
 67  
         public String getDocInitiatorId() {
 68  0
                 return docInitiatorId;
 69  
         }
 70  
         public void setDocInitiatorId(final String docInitiatorId) {
 71  0
                 this.docInitiatorId = docInitiatorId;
 72  0
         }
 73  
         public Timestamp getDocModificationDate() {
 74  0
                 return docModificationDate;
 75  
         }
 76  
         public void setDocModificationDate(final Timestamp docModificationDate) {
 77  0
                 this.docModificationDate = docModificationDate;
 78  0
         }
 79  
         public String getDocRouteStatusCode() {
 80  0
                 return docRouteStatusCode;
 81  
         }
 82  
         public void setDocRouteStatusCode(final String docRouteStatusCode) {
 83  0
                 this.docRouteStatusCode = docRouteStatusCode;
 84  0
         }
 85  
         public String getDocTypeName() {
 86  0
                 return docTypeName;
 87  
         }
 88  
         public void setDocTypeName(final String docTypeName) {
 89  0
                 this.docTypeName = docTypeName;
 90  0
         }
 91  
         public Integer getLockVerNbr() {
 92  0
                 return lockVerNbr;
 93  
         }
 94  
         public void setLockVerNbr(final Integer lockVerNbr) {
 95  0
                 this.lockVerNbr = lockVerNbr;
 96  0
         }
 97  
     public String getFormattedCreateDateTime() {
 98  0
         long time = getDocCreationDate().getTime();
 99  0
         Calendar calendar = Calendar.getInstance();
 100  0
         calendar.setTimeInMillis(time);
 101  0
         Date date = calendar.getTime();
 102  0
         DateFormat dateFormat = new SimpleDateFormat(KewApiConstants.TIMESTAMP_DATE_FORMAT_PATTERN2);
 103  0
         return dateFormat.format(date);
 104  
     }
 105  
 
 106  
     public String getFormattedCreateDate() {
 107  0
         long time = getDocCreationDate().getTime();
 108  0
         Calendar calendar = Calendar.getInstance();
 109  0
         calendar.setTimeInMillis(time);
 110  0
         Date date = calendar.getTime();
 111  0
         DateFormat dateFormat = RiceConstants.getDefaultDateFormat();
 112  0
         return dateFormat.format(date);
 113  
     }
 114  
         public void setDocId(final String docId) {
 115  0
                 this.docId = docId;
 116  0
         }
 117  
 
 118  
 
 119  
         public List<FieldDTO> getFields() {
 120  0
                 return fields;
 121  
         }
 122  
 
 123  
         public void setFields(final List<FieldDTO> fields) {
 124  0
                 this.fields = fields;
 125  0
         }
 126  
 
 127  
 }
 128