Coverage Report - org.kuali.rice.kew.postprocessor.DocumentRouteStatusChange
 
Classes in this File Line Coverage Branch Coverage Complexity
DocumentRouteStatusChange
0%
0/16
N/A
1
 
 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.kew.postprocessor;
 17  
 
 18  
 
 19  
 /**
 20  
  * <p>
 21  
  * <Title>
 22  
  * </p>
 23  
  * <p>
 24  
  * <Description>
 25  
  * </p>
 26  
  * <p>
 27  
  * <p>
 28  
  * <p>
 29  
  * Copyright: Copyright (c) 2002
 30  
  * </p>
 31  
  * <p>
 32  
  * <p>
 33  
  * Company: UIS - Indiana University
 34  
  * </p>
 35  
  * 
 36  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 37  
  */
 38  
 public class DocumentRouteStatusChange implements IDocumentEvent {
 39  
 
 40  
         private static final long serialVersionUID = -5170568498563302803L;
 41  
         private String appDocId;
 42  
         private String documentId;
 43  
         private String newRouteStatus;
 44  
         private String oldRouteStatus;
 45  
 
 46  0
         public DocumentRouteStatusChange(String documentId, String appDocId, String oldStatus, String newStatus) {
 47  0
                 this.documentId = documentId;
 48  0
                 this.appDocId = appDocId;
 49  0
                 this.newRouteStatus = newStatus;
 50  0
                 this.oldRouteStatus = oldStatus;
 51  0
         }
 52  
 
 53  
         public String getDocumentEventCode() {
 54  0
                 return ROUTE_STATUS_CHANGE;
 55  
         }
 56  
 
 57  
         public String getDocumentId() {
 58  0
                 return documentId;
 59  
         }
 60  
 
 61  
         public String getNewRouteStatus() {
 62  0
                 return newRouteStatus;
 63  
         }
 64  
 
 65  
         public String getOldRouteStatus() {
 66  0
                 return oldRouteStatus;
 67  
         }
 68  
 
 69  
         public String toString() {
 70  0
                 StringBuffer buffer = new StringBuffer();
 71  0
                 buffer.append("DocumentId ").append(documentId);
 72  0
                 buffer.append(" changing from routeStatus ").append(oldRouteStatus);
 73  0
                 buffer.append(" to routeStatus ").append(newRouteStatus);
 74  
 
 75  0
                 return buffer.toString();
 76  
         }
 77  
 
 78  
         /*
 79  
          * (non-Javadoc)
 80  
          * 
 81  
          * @see org.kuali.rice.kew.IDocumentEvent#getAppDocId()
 82  
          */
 83  
         public String getAppDocId() {
 84  0
                 return this.appDocId;
 85  
         }
 86  
 }