1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
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 | |
|
51 | |
|
52 | 0 | public ProcessInfo() { |
53 | 0 | } |
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
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 | |
} |