Coverage Report - org.kuali.student.r2.core.process.dto.ProcessInfo
 
Classes in this File Line Coverage Branch Coverage Complexity
ProcessInfo
0%
0/9
0%
0/2
1.25
 
 1  
 /*
 2  
  * Copyright 2011 The Kuali Foundation 
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the
 5  
  * "License"); you may not use this file except in compliance with the
 6  
  * License. You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.osedu.org/licenses/ECL-2.0
 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
 13  
  * implied. See the License for the specific language governing
 14  
  * permissions and limitations under the License.
 15  
  */
 16  
 
 17  
 package org.kuali.student.r2.core.process.dto;
 18  
 
 19  
 import java.io.Serializable;
 20  
 import java.util.List;
 21  
 
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAnyElement;
 25  
 import javax.xml.bind.annotation.XmlElement;
 26  
 import javax.xml.bind.annotation.XmlType;
 27  
 
 28  
 import org.kuali.student.r2.common.dto.KeyEntityInfo;
 29  
 import org.kuali.student.r2.core.process.infc.Process;
 30  
 
 31  
 import org.w3c.dom.Element;
 32  
 
 33  
 @XmlAccessorType(XmlAccessType.FIELD)
 34  
 @XmlType(name = "ProcessInfo", propOrder = { "key", "typeKey", "stateKey",
 35  
                 "name", "descr", "ownerOrgId", "meta", "attributes",
 36  
                 "_futureElements" })
 37  
 
 38  
 public class ProcessInfo 
 39  
     extends KeyEntityInfo 
 40  
     implements Process, Serializable {
 41  
 
 42  
     private static final long serialVersionUID = 1L;
 43  
     
 44  
     @XmlElement 
 45  
     private String ownerOrgId;
 46  
 
 47  
     @XmlAnyElement
 48  
     private List<Element> _futureElements;
 49  
     
 50  
 
 51  
     /**
 52  
      * Constructs a new ProcessInfo.
 53  
      */
 54  0
     public ProcessInfo() {
 55  0
     }
 56  
 
 57  
     /**
 58  
      * Constructs a new ProcessInfo from another Process.
 59  
      * 
 60  
      * @param process the Process to copy
 61  
      */
 62  
     public ProcessInfo(Process process) {
 63  0
         super(process);
 64  
 
 65  0
         if (process != null) {
 66  0
             this.ownerOrgId = process.getOwnerOrgId();
 67  
         }
 68  0
     }
 69  
 
 70  
     @Override
 71  
     public String getOwnerOrgId() {
 72  0
         return this.ownerOrgId;
 73  
     }
 74  
 
 75  
     public void setOwnerOrgId(String ownerOrgId) {
 76  0
         this.ownerOrgId = ownerOrgId;
 77  0
     }
 78  
 }