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