01: package com.technoetic.xplanner.domain;
02:
03: import java.util.Collection;
04: import java.util.HashSet;
05: import java.util.TreeSet;
06:
07: import com.technoetic.xplanner.domain.repository.IterationRepository;
08:
09: public class Project extends DomainObject implements Nameable,
10: NoteAttachable, Describable {
11: private String name;
12: private Collection iterations = new HashSet();
13: private Collection notificationReceivers = new TreeSet();
14: private String description;
15: private boolean hidden;
16:
17: //private boolean sendemail;
18: //private boolean optEscapeBrackets;
19:
20: // public boolean isSendingMissingTimeEntryReminderToAcceptor() {
21: // return sendemail;
22: // }
23: //
24: // public void setSendemail(boolean newSendemail) {
25: // sendemail = newSendemail;
26: // }
27:
28: // public boolean isOptEscapeBrackets() {
29: // return optEscapeBrackets;
30: // }
31: //
32: // public void setOptEscapeBrackets(boolean optEscapeBrackets) {
33: // this.optEscapeBrackets = optEscapeBrackets;
34: // }
35:
36: public String getName() {
37: return name;
38: }
39:
40: public void setName(String name) {
41: this .name = name;
42: }
43:
44: public Collection getIterations() {
45: return iterations;
46: }
47:
48: public void setIterations(Collection iterations) {
49: this .iterations = iterations;
50: }
51:
52: public Iteration getCurrentIteration() {
53: return IterationRepository.getCurrentIteration(getId());
54: }
55:
56: public void setDescription(String description) {
57: this .description = description;
58: }
59:
60: public String getDescription() {
61: return description;
62: }
63:
64: public boolean isHidden() {
65: return hidden;
66: }
67:
68: public void setHidden(boolean flag) {
69: hidden = flag;
70: }
71:
72: public Collection getNotificationReceivers() {
73: return notificationReceivers;
74: }
75:
76: public void setNotificationReceivers(
77: Collection notificationReceivers) {
78: this .notificationReceivers = notificationReceivers;
79: }
80:
81: public String toString() {
82: return "Project{" + "id='" + getId() + ", " + "name='" + name
83: + "'" + "}";
84: }
85: }
|