| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |   | 
  | 17 |  |  package org.kuali.student.r2.core.state.dto; | 
  | 18 |  |   | 
  | 19 |  |  import java.io.Serializable; | 
  | 20 |  |  import java.util.Date; | 
  | 21 |  |  import java.util.List; | 
  | 22 |  |   | 
  | 23 |  |  import javax.xml.bind.annotation.XmlAccessType; | 
  | 24 |  |  import javax.xml.bind.annotation.XmlAccessorType; | 
  | 25 |  |  import javax.xml.bind.annotation.XmlAnyElement; | 
  | 26 |  |  import javax.xml.bind.annotation.XmlAttribute; | 
  | 27 |  |  import javax.xml.bind.annotation.XmlElement; | 
  | 28 |  |  import javax.xml.bind.annotation.XmlType; | 
  | 29 |  |   | 
  | 30 |  |  import org.kuali.student.r2.core.state.infc.Lifecycle; | 
  | 31 |  |  import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; | 
  | 32 |  |  import org.kuali.student.r2.common.dto.RichTextInfo; | 
  | 33 |  |  import org.w3c.dom.Element; | 
  | 34 |  |   | 
  | 35 | 0 |  @XmlAccessorType(XmlAccessType.FIELD) | 
  | 36 |  |  @XmlType(name = "LifecycleInfo", propOrder = { | 
  | 37 |  |                  "key", "name", "descr", "refObjectUri", | 
  | 38 |  |                  "meta", "attributes", "_futureElements"}) | 
  | 39 |  |   | 
  | 40 |  |  public class LifecycleInfo  | 
  | 41 |  |      extends HasAttributesAndMetaInfo | 
  | 42 |  |      implements Lifecycle, Serializable { | 
  | 43 |  |   | 
  | 44 |  |      private static final long serialVersionUID = 1L; | 
  | 45 |  |       | 
  | 46 |  |      @XmlElement | 
  | 47 |  |      private String key; | 
  | 48 |  |   | 
  | 49 |  |      @XmlElement | 
  | 50 |  |      private String name; | 
  | 51 |  |   | 
  | 52 |  |      @XmlElement | 
  | 53 |  |      private RichTextInfo descr; | 
  | 54 |  |   | 
  | 55 |  |      @XmlElement | 
  | 56 |  |      private String refObjectUri; | 
  | 57 |  |   | 
  | 58 |  |      @XmlAnyElement | 
  | 59 |  |      private List<Element> _futureElements;     | 
  | 60 |  |       | 
  | 61 |  |   | 
  | 62 |  |       | 
  | 63 |  |   | 
  | 64 |  |   | 
  | 65 | 0 |      public LifecycleInfo() { | 
  | 66 | 0 |      } | 
  | 67 |  |   | 
  | 68 |  |       | 
  | 69 |  |   | 
  | 70 |  |   | 
  | 71 |  |   | 
  | 72 |  |   | 
  | 73 |  |   | 
  | 74 |  |                   | 
  | 75 |  |      public LifecycleInfo(Lifecycle lifecycle) { | 
  | 76 | 0 |          super(lifecycle); | 
  | 77 |  |   | 
  | 78 | 0 |          this.key = lifecycle.getKey(); | 
  | 79 | 0 |          if (lifecycle != null) { | 
  | 80 | 0 |              this.name = lifecycle.getName(); | 
  | 81 | 0 |              if (lifecycle.getDescr() != null) { | 
  | 82 | 0 |                  this.descr = new RichTextInfo(lifecycle.getDescr()); | 
  | 83 |  |              } | 
  | 84 |  |          } | 
  | 85 |  |   | 
  | 86 | 0 |          this.refObjectUri = lifecycle.getRefObjectUri(); | 
  | 87 | 0 |      } | 
  | 88 |  |           | 
  | 89 |  |      @Override | 
  | 90 |  |      public String getKey() { | 
  | 91 | 0 |          return key; | 
  | 92 |  |      } | 
  | 93 |  |   | 
  | 94 |  |      public void setKey(String key) { | 
  | 95 | 0 |          this.key = key; | 
  | 96 | 0 |      } | 
  | 97 |  |   | 
  | 98 |  |      @Override | 
  | 99 |  |      public String getName() { | 
  | 100 | 0 |          return name; | 
  | 101 |  |      } | 
  | 102 |  |   | 
  | 103 |  |      public void setName(String name) { | 
  | 104 | 0 |          this.name = name; | 
  | 105 | 0 |      } | 
  | 106 |  |   | 
  | 107 |  |      @Override | 
  | 108 |  |      public RichTextInfo getDescr() { | 
  | 109 | 0 |          return descr; | 
  | 110 |  |      } | 
  | 111 |  |   | 
  | 112 |  |      public void setDescr(RichTextInfo descr) { | 
  | 113 | 0 |          this.descr = descr; | 
  | 114 | 0 |      } | 
  | 115 |  |   | 
  | 116 |  |      @Override | 
  | 117 |  |      public String getRefObjectUri() { | 
  | 118 | 0 |          return refObjectUri; | 
  | 119 |  |      } | 
  | 120 |  |           | 
  | 121 |  |      public void setRefObjectUri(String refObjectUri) { | 
  | 122 | 0 |          this.refObjectUri = refObjectUri; | 
  | 123 | 0 |      } | 
  | 124 |  |  } |