001: /**********************************************************************************
002: * $URL:https://source.sakaiproject.org/svn/osp/trunk/matrix/api/src/java/org/theospi/portfolio/matrix/model/WizardPageDefinition.java $
003: * $Id:WizardPageDefinition.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.theospi.portfolio.matrix.model;
021:
022: import java.util.ArrayList;
023: import java.util.Collection;
024: import java.util.HashSet;
025: import java.util.List;
026: import java.util.Set;
027:
028: import org.sakaiproject.metaobj.shared.model.Id;
029: import org.theospi.portfolio.guidance.model.Guidance;
030: import org.theospi.portfolio.shared.model.ObjectWithWorkflow;
031: import org.theospi.portfolio.style.model.Style;
032:
033: /**
034: * Created by IntelliJ IDEA.
035: * User: John Ellis
036: * Date: Jan 11, 2006
037: * Time: 4:14:09 PM
038: * To change this template use File | Settings | File Templates.
039: */
040: public class WizardPageDefinition extends ObjectWithWorkflow {
041:
042: private String title;
043: private String description;
044: private String initialStatus = "";
045: private Collection evaluators = new HashSet();
046: transient private boolean validate;
047: private Set pages = new HashSet();
048: transient private Id guidanceId;
049: private Guidance guidance;
050: transient private Id deleteGuidanceId;
051:
052: private String siteId;
053: private Style style;
054:
055: transient private Id styleId;
056:
057: private List additionalForms = new ArrayList();
058:
059: /**
060: * @return Returns the initialStatus.
061: */
062: public String getInitialStatus() {
063: return initialStatus.toUpperCase();
064: }
065:
066: /**
067: * @param initialStatus The initialStatus to set.
068: */
069: public void setInitialStatus(String initialStatus) {
070: this .initialStatus = initialStatus.toUpperCase();
071: }
072:
073: /**
074: * @return Returns the evaluators.
075: */
076: public Collection getEvaluators() {
077: return evaluators;
078: }
079:
080: /**
081: * @param reviewers The evaluators to set.
082: */
083: public void setEvaluators(Collection evaluators) {
084: this .evaluators = evaluators;
085: }
086:
087: /**
088: * @return Returns the validate.
089: */
090: public boolean isValidate() {
091: return validate;
092: }
093:
094: /**
095: * @param validate The validate to set.
096: */
097: public void setValidate(boolean validate) {
098: this .validate = validate;
099: }
100:
101: public Set getPages() {
102: return pages;
103: }
104:
105: public void setPages(Set pages) {
106: this .pages = pages;
107: }
108:
109: /**
110: * This is the transient property.
111: * @return Returns the guidanceId.
112: */
113: public Id getGuidanceId() {
114: return guidanceId;
115: }
116:
117: /**
118: * This is the transient property. This will not save to the database.
119: * Use setGuidance to save the guidance to the database.
120: * @param guidanceId The guidanceId to set.
121: */
122: public void setGuidanceId(Id guidanceId) {
123: this .guidanceId = guidanceId;
124: }
125:
126: /**
127: * @return Returns the guidance.
128: */
129: public Guidance getGuidance() {
130: return guidance;
131: }
132:
133: /**
134: * @param guidance The guidance to set.
135: */
136: public void setGuidance(Guidance guidance) {
137: this .guidance = guidance;
138: }
139:
140: /**
141: * @return Returns the deleteGuidanceId.
142: */
143: public Id getDeleteGuidanceId() {
144: return deleteGuidanceId;
145: }
146:
147: /**
148: * @param deleteGuidanceId The deleteGuidanceId to set.
149: */
150: public void setDeleteGuidanceId(Id deleteGuidanceId) {
151: this .deleteGuidanceId = deleteGuidanceId;
152: }
153:
154: /**
155: * List of Strings of the form Ids
156: * @return Returns the additionalForms.
157: */
158: public List getAdditionalForms() {
159: return additionalForms;
160: }
161:
162: /**
163: * @param additionalForms The additionalForms to set.
164: */
165: public void setAdditionalForms(List additionalForms) {
166: this .additionalForms = additionalForms;
167: }
168:
169: public String getTitle() {
170: return title;
171: }
172:
173: public void setTitle(String title) {
174: this .title = title;
175: }
176:
177: public String getDescription() {
178: return description;
179: }
180:
181: public void setDescription(String description) {
182: this .description = description;
183: }
184:
185: public String getSiteId() {
186: return siteId;
187: }
188:
189: public void setSiteId(String siteId) {
190: this .siteId = siteId;
191: }
192:
193: public Style getStyle() {
194: return style;
195: }
196:
197: public void setStyle(Style style) {
198: this .style = style;
199: }
200:
201: public Id getStyleId() {
202: return styleId;
203: }
204:
205: public void setStyleId(Id styleId) {
206: this.styleId = styleId;
207: }
208:
209: }
|