001: package org.emforge.xfer;
002:
003: import java.util.Date;
004:
005: /** Workflow - used for processing tasks
006: *
007: */
008: public class WorkflowTO {
009: private Long id;
010: private String name;
011: private Integer version;
012: private String startName;
013: private Boolean obsolete;
014:
015: private String deployedBy;
016: private Date deployedAt;
017: private String deployComment;
018:
019: private String iconLink;
020:
021: public Long getId() {
022: return id;
023: }
024:
025: public void setId(Long i_id) {
026: id = i_id;
027: }
028:
029: public String getName() {
030: return name;
031: }
032:
033: public void setName(String i_name) {
034: name = i_name;
035: }
036:
037: public Integer getVersion() {
038: return version;
039: }
040:
041: public void setVersion(Integer i_version) {
042: version = i_version;
043: }
044:
045: public String getStartName() {
046: return startName;
047: }
048:
049: public void setStartName(String i_startName) {
050: startName = i_startName;
051: }
052:
053: public String getIconLink() {
054: return iconLink;
055: }
056:
057: public void setIconLink(String i_iconLink) {
058: iconLink = i_iconLink;
059: }
060:
061: public String getDeployedBy() {
062: return deployedBy;
063: }
064:
065: public void setDeployedBy(String i_deployedBy) {
066: deployedBy = i_deployedBy;
067: }
068:
069: public Date getDeployedAt() {
070: return deployedAt;
071: }
072:
073: public void setDeployedAt(Date i_deployedAt) {
074: deployedAt = i_deployedAt;
075: }
076:
077: public String getDeployComment() {
078: return deployComment;
079: }
080:
081: public void setDeployComment(String i_deployComment) {
082: deployComment = i_deployComment;
083: }
084:
085: public Boolean getObsolete() {
086: return obsolete;
087: }
088:
089: public void setObsolete(Boolean i_obsolete) {
090: obsolete = i_obsolete;
091: }
092:
093: @Override
094: public boolean equals(Object i_obj) {
095: if (!(i_obj instanceof WorkflowTO)) {
096: return false;
097: }
098: WorkflowTO workflow = (WorkflowTO) i_obj;
099: if (id == null)
100: if (workflow.getId() == null) {
101: return true;
102: } else {
103: return false;
104: }
105:
106: return id.equals(workflow.getId());
107: }
108:
109: }
|