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 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.r2.core.process.dto;
 17  
 
 18  
 import java.io.Serializable;
 19  
 import java.util.List;
 20  
 
 21  
 import javax.xml.bind.annotation.XmlAccessType;
 22  
 import javax.xml.bind.annotation.XmlAccessorType;
 23  
 import javax.xml.bind.annotation.XmlAnyElement;
 24  
 import javax.xml.bind.annotation.XmlElement;
 25  
 import javax.xml.bind.annotation.XmlType;
 26  
 
 27  
 import org.kuali.student.r2.common.dto.KeyEntityInfo;
 28  
 import org.kuali.student.r2.core.process.infc.Process;
 29  
 
 30  
 import org.w3c.dom.Element;
 31  
 
 32  
 @XmlAccessorType(XmlAccessType.FIELD)
 33  
 @XmlType(name = "ProcessInfo", propOrder = { "key", "typeKey", "stateKey",
 34  
                 "name", "descr", "ownerOrgId", "meta", "attributes",
 35  
                 "_futureElements" })
 36  
 
 37  
 public class ProcessInfo extends KeyEntityInfo 
 38  
     implements Process, Serializable {
 39  
 
 40  
     private static final long serialVersionUID = 1L;
 41  
     
 42  
     @XmlElement 
 43  
     private String ownerOrgId;
 44  
 
 45  
     @XmlAnyElement
 46  
     private List<Element> _futureElements;
 47  
     
 48  
 
 49  
     /**
 50  
      * Constructs a new ProcessInfo.
 51  
      */
 52  0
     public ProcessInfo() {
 53  0
     }
 54  
 
 55  
     /**
 56  
      * Constructs a new ProcessInfo from another Process.
 57  
      * 
 58  
      * @param process the Process to copy
 59  
      */
 60  
     public ProcessInfo(Process process) {
 61  0
         super(process);
 62  
 
 63  0
         if (process != null) {
 64  0
             this.ownerOrgId = process.getOwnerOrgId();
 65  
         }
 66  0
     }
 67  
 
 68  
     @Override
 69  
     public String getOwnerOrgId() {
 70  0
         return this.ownerOrgId;
 71  
     }
 72  
 
 73  
     public void setOwnerOrgId(String ownerOrgId) {
 74  0
         this.ownerOrgId = ownerOrgId;
 75  0
     }
 76  
 }