KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > workflow > spi > SimpleStep


1 /*
2  * Copyright (c) 2002-2003 by OpenSymphony
3  * All rights reserved.
4  */

5 package com.opensymphony.workflow.spi;
6
7 import java.io.Serializable JavaDoc;
8
9 import java.util.Date JavaDoc;
10
11
12 /**
13  * Simple implementation
14  *
15  * @author <a HREF="mailto:plightbo@hotmail.com">Pat Lightbody</a>
16  */

17 public class SimpleStep implements Step, Serializable JavaDoc {
18     //~ Instance fields ////////////////////////////////////////////////////////
19

20     private Date JavaDoc dueDate;
21     private Date JavaDoc finishDate;
22     private Date JavaDoc startDate;
23     private String JavaDoc caller;
24     private String JavaDoc owner;
25     private String JavaDoc status;
26     private long[] previousStepIds;
27     private int actionId;
28     private int stepId;
29     private long entryId;
30     private long id;
31
32     //~ Constructors ///////////////////////////////////////////////////////////
33

34     public SimpleStep(long id, long entryId, int stepId, int actionId, String JavaDoc owner, Date JavaDoc startDate, Date JavaDoc dueDate, Date JavaDoc finishDate, String JavaDoc status, long[] previousStepIds, String JavaDoc caller) {
35         this.id = id;
36         this.entryId = entryId;
37         this.stepId = stepId;
38         this.actionId = actionId;
39         this.owner = owner;
40         this.startDate = startDate;
41         this.finishDate = finishDate;
42         this.dueDate = dueDate;
43         this.status = status;
44         this.previousStepIds = previousStepIds;
45         this.caller = caller;
46     }
47
48     //~ Methods ////////////////////////////////////////////////////////////////
49

50     public void setActionId(int actionId) {
51         this.actionId = actionId;
52     }
53
54     public int getActionId() {
55         return actionId;
56     }
57
58     public void setCaller(String JavaDoc caller) {
59         this.caller = caller;
60     }
61
62     public String JavaDoc getCaller() {
63         return caller;
64     }
65
66     public Date JavaDoc getDueDate() {
67         return dueDate;
68     }
69
70     public void setEntryId(long entryId) {
71         this.entryId = entryId;
72     }
73
74     public long getEntryId() {
75         return entryId;
76     }
77
78     public void setFinishDate(Date JavaDoc finishDate) {
79         this.finishDate = finishDate;
80     }
81
82     public Date JavaDoc getFinishDate() {
83         return finishDate;
84     }
85
86     public void setId(long id) {
87         this.id = id;
88     }
89
90     public long getId() {
91         return id;
92     }
93
94     public void setOwner(String JavaDoc owner) {
95         this.owner = owner;
96     }
97
98     public String JavaDoc getOwner() {
99         return owner;
100     }
101
102     public void setPreviousStepIds(long[] previousStepIds) {
103         this.previousStepIds = previousStepIds;
104     }
105
106     public long[] getPreviousStepIds() {
107         return previousStepIds;
108     }
109
110     public void setStartDate(Date JavaDoc startDate) {
111         this.startDate = startDate;
112     }
113
114     public Date JavaDoc getStartDate() {
115         return startDate;
116     }
117
118     public void setStatus(String JavaDoc status) {
119         this.status = status;
120     }
121
122     public String JavaDoc getStatus() {
123         return status;
124     }
125
126     public void setStepId(int stepId) {
127         this.stepId = stepId;
128     }
129
130     public int getStepId() {
131         return stepId;
132     }
133
134     public String JavaDoc toString() {
135         return "SimpleStep@" + stepId + "[owner=" + owner + ", actionId=" + actionId + ", status=" + status + "]";
136     }
137 }
138
Popular Tags