001: /**********************************************************************************
002: * $URL:https://source.sakaiproject.org/svn/osp/trunk/wizard/api/src/java/org/theospi/portfolio/wizard/model/CompletedWizardPage.java $
003: * $Id:CompletedWizardPage.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.wizard.model;
021:
022: import java.util.Date;
023:
024: import org.sakaiproject.metaobj.shared.model.IdentifiableObject;
025: import org.theospi.portfolio.matrix.model.WizardPage;
026:
027: /**
028: * Created by IntelliJ IDEA.
029: * User: John Ellis
030: * Date: Jan 21, 2006
031: * Time: 3:20:34 PM
032: * To change this template use File | Settings | File Templates.
033: */
034: public class CompletedWizardPage extends IdentifiableObject {
035:
036: private CompletedWizardCategory category;
037: private WizardPageSequence wizardPageDefinition;
038: private WizardPage wizardPage;
039: private Date created;
040: private Date lastVisited;
041: private int sequence;
042:
043: public CompletedWizardPage() {
044: }
045:
046: public CompletedWizardPage(WizardPageSequence wizardPageDefinition,
047: CompletedWizardCategory category) {
048: this .wizardPageDefinition = wizardPageDefinition;
049: this .category = category;
050: setCreated(new Date());
051: setSequence(wizardPageDefinition.getSequence());
052: setWizardPage(new WizardPage());
053: getWizardPage().setOwner(category.getWizard().getOwner());
054: getWizardPage().setPageDefinition(
055: wizardPageDefinition.getWizardPageDefinition());
056: getWizardPage().setStatus(
057: wizardPageDefinition.getWizardPageDefinition()
058: .getInitialStatus());
059: }
060:
061: public CompletedWizardCategory getCategory() {
062: return category;
063: }
064:
065: public void setCategory(CompletedWizardCategory category) {
066: this .category = category;
067: }
068:
069: public WizardPageSequence getWizardPageDefinition() {
070: return wizardPageDefinition;
071: }
072:
073: public void setWizardPageDefinition(
074: WizardPageSequence wizardPageDefinition) {
075: this .wizardPageDefinition = wizardPageDefinition;
076: }
077:
078: public WizardPage getWizardPage() {
079: return wizardPage;
080: }
081:
082: public void setWizardPage(WizardPage wizardPage) {
083: this .wizardPage = wizardPage;
084: }
085:
086: public Date getCreated() {
087: return created;
088: }
089:
090: public void setCreated(Date created) {
091: this .created = created;
092: }
093:
094: public Date getLastVisited() {
095: return lastVisited;
096: }
097:
098: public void setLastVisited(Date lastVisited) {
099: this .lastVisited = lastVisited;
100: }
101:
102: public int getSequence() {
103: return sequence;
104: }
105:
106: public void setSequence(int sequence) {
107: this.sequence = sequence;
108: }
109:
110: }
|