001: /**********************************************************************************
002: * $URL:https://source.sakaiproject.org/svn/osp/trunk/presentation/api/src/java/org/theospi/portfolio/presentation/model/PresentationComment.java $
003: * $Id:PresentationComment.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.presentation.model;
021:
022: import java.util.Date;
023:
024: import org.sakaiproject.metaobj.shared.model.Agent;
025: import org.sakaiproject.metaobj.shared.model.Id;
026: import org.sakaiproject.metaobj.shared.model.IdentifiableObject;
027:
028: /**
029: * Created by IntelliJ IDEA.
030: * User: John Ellis
031: * Date: Jun 1, 2004
032: * Time: 6:21:55 AM
033: * To change this template use File | Settings | File Templates.
034: */
035: public class PresentationComment extends IdentifiableObject {
036:
037: public static final byte VISABILITY_UNKNOWN = 0;
038: public static final byte VISABILITY_PRIVATE = 1;
039: public static final byte VISABILITY_SHARED = 2;
040: public static final byte VISABILITY_PUBLIC = 3;
041:
042: private Presentation presentation = new Presentation();
043: private Agent creator = null;
044: private Id id = null;
045: private String title = null;
046: private String comment = null;
047: private Date created = null;
048: private byte visibility = 0;
049:
050: public PresentationComment() {
051: }
052:
053: public Presentation getPresentation() {
054: return presentation;
055: }
056:
057: public void setPresentation(Presentation presentation) {
058: this .presentation = presentation;
059: }
060:
061: public Agent getCreator() {
062: return creator;
063: }
064:
065: public void setCreator(Agent creator) {
066: this .creator = creator;
067: }
068:
069: public Id getId() {
070: return id;
071: }
072:
073: public void setId(Id id) {
074: this .id = id;
075: }
076:
077: public String getTitle() {
078: return title;
079: }
080:
081: public void setTitle(String title) {
082: this .title = title;
083: }
084:
085: public String getComment() {
086: return comment;
087: }
088:
089: public void setComment(String comment) {
090: this .comment = comment;
091: }
092:
093: public Date getCreated() {
094: return created;
095: }
096:
097: public void setCreated(Date created) {
098: this .created = created;
099: }
100:
101: public byte getVisibility() {
102: return visibility;
103: }
104:
105: public void setVisibility(byte visibility) {
106: this .visibility = visibility;
107: }
108:
109: public Id getPresentationId() {
110: return presentation.getId();
111: }
112:
113: public void setPresentationId(Id presentationId) {
114: this.presentation.setId(presentationId);
115: }
116:
117: }
|