01: package org.concern;
02:
03: import java.sql.Timestamp;
04: import java.util.*;
05:
06: /**
07: * An assignment of a task or option to an assignee.
08: * @author hengels
09: * @version $Revision: 661 $
10: */
11: public class Assignment extends Work {
12: String assignee;
13:
14: public Assignment() {
15: }
16:
17: public Assignment(String process, String activity,
18: String subjectId, String subjectLine, String originator,
19: Timestamp due, int level, String lockedBy,
20: Timestamp lockedUntil, String assignee) {
21: super (process, activity, subjectId, subjectLine, originator,
22: due, level, lockedBy, lockedUntil);
23: this .assignee = assignee;
24: }
25:
26: public Assignment(String process, String activity,
27: String subjectId, String subjectLine, String originator,
28: long due, int level, String lockedBy, Date lockedUntil,
29: String assignee) {
30: super (process, activity, subjectId, subjectLine, originator,
31: due, level, lockedBy, lockedUntil);
32: this .assignee = assignee;
33: }
34:
35: public String getAssignee() {
36: return assignee;
37: }
38:
39: public void setAssignee(String assignee) {
40: this .assignee = assignee;
41: }
42:
43: public boolean isOption() {
44: return due.getTime() == Long.MAX_VALUE;
45: }
46:
47: public String toString() {
48: return super .toString() + ":" + assignee;
49: }
50: }
|