001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/presentation/api/src/java/org/theospi/portfolio/presentation/model/PresentationLayout.java $
003: * $Id: PresentationLayout.java 10835 2006-06-17 03:25:03Z lance@indiana.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.presentation.model;
021:
022: import java.io.Serializable;
023: import java.util.Date;
024:
025: import org.sakaiproject.metaobj.shared.model.Agent;
026: import org.sakaiproject.metaobj.shared.model.Id;
027: import org.sakaiproject.metaobj.shared.model.IdentifiableObject;
028:
029: public class PresentationLayout extends IdentifiableObject implements
030: Serializable {
031: private String name;
032: private String description;
033: private Date created;
034: private Date modified;
035: private transient Agent owner;
036: private Id xhtmlFileId;
037: private Id previewImageId;
038: private String toolId;
039: private String siteId;
040:
041: /**
042: * should be one of the following states
043: *
044: * unpublished -> waiting for approval-> active
045: */
046: private int globalState;
047:
048: transient private String xhtmlFileName;
049: transient private String previewImageName;
050:
051: transient private boolean validate = true;
052: transient private String filePickerAction;
053:
054: static final long serialVersionUID = -6220810277272518156l;
055:
056: public static final int STATE_UNPUBLISHED = 0;
057: public static final int STATE_WAITING_APPROVAL = 1;
058: public static final int STATE_PUBLISHED = 2;
059:
060: public String getName() {
061: return name;
062: }
063:
064: public String getDescription() {
065: return description;
066: }
067:
068: public Date getCreated() {
069: return created;
070: }
071:
072: public Date getModified() {
073: return modified;
074: }
075:
076: public Agent getOwner() {
077: return owner;
078: }
079:
080: public void setName(String name) {
081: this .name = name;
082: }
083:
084: public void setDescription(String description) {
085: this .description = description;
086: }
087:
088: public void setCreated(Date created) {
089: this .created = created;
090: }
091:
092: public void setModified(Date modified) {
093: this .modified = modified;
094: }
095:
096: public void setOwner(Agent owner) {
097: this .owner = owner;
098: }
099:
100: public boolean isValidate() {
101: return validate;
102: }
103:
104: public void setValidate(boolean validate) {
105: this .validate = validate;
106: }
107:
108: public Id getPreviewImageId() {
109: return previewImageId;
110: }
111:
112: public void setPreviewImageId(Id previewImageId) {
113: this .previewImageId = previewImageId;
114: }
115:
116: public Id getXhtmlFileId() {
117: return xhtmlFileId;
118: }
119:
120: public void setXhtmlFileId(Id xhtmlFileId) {
121: this .xhtmlFileId = xhtmlFileId;
122: }
123:
124: public String getSiteId() {
125: return siteId;
126: }
127:
128: public void setSiteId(String siteId) {
129: this .siteId = siteId;
130: }
131:
132: public String getToolId() {
133: return toolId;
134: }
135:
136: public void setToolId(String toolId) {
137: this .toolId = toolId;
138: }
139:
140: public String getPreviewImageName() {
141: return previewImageName;
142: }
143:
144: public void setPreviewImageName(String previewImageName) {
145: this .previewImageName = previewImageName;
146: }
147:
148: public String getXhtmlFileName() {
149: return xhtmlFileName;
150: }
151:
152: public void setXhtmlFileName(String xhtmlFileName) {
153: this .xhtmlFileName = xhtmlFileName;
154: }
155:
156: public String getFilePickerAction() {
157: return filePickerAction;
158: }
159:
160: public void setFilePickerAction(String filePickerAction) {
161: this .filePickerAction = filePickerAction;
162: }
163:
164: public int getGlobalState() {
165: return globalState;
166: }
167:
168: public void setGlobalState(int globalState) {
169: this.globalState = globalState;
170: }
171: }
|