001: /*
002: * Copyright (c) JForum Team
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms,
006: * with or without modification, are permitted provided
007: * that the following conditions are met:
008: *
009: * 1) Redistributions of source code must retain the above
010: * copyright notice, this list of conditions and the
011: * following disclaimer.
012: * 2) Redistributions in binary form must reproduce the
013: * above copyright notice, this list of conditions and
014: * the following disclaimer in the documentation and/or
015: * other materials provided with the distribution.
016: * 3) Neither the name of "Rafael Steil" nor
017: * the names of its contributors may be used to endorse
018: * or promote products derived from this software without
019: * specific prior written permission.
020: *
021: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
022: * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
023: * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
024: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
025: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
026: * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
027: * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
028: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
029: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
030: * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
031: * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
032: * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
033: * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
034: * IN CONTRACT, STRICT LIABILITY, OR TORT
035: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
036: * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
037: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
038: *
039: * Created on Jan 16, 2005 12:22:12 PM
040: * The JForum Project
041: * http://www.jforum.net
042: */
043: package net.jforum.entities;
044:
045: /**
046: * @author Rafael Steil
047: * @version $Id: Bookmark.java,v 1.4 2006/08/23 02:13:46 rafaelsteil Exp $
048: */
049: public class Bookmark {
050: private int id;
051: private int userId;
052: private int relationId;
053: private int relationType;
054: private boolean publicVisible;
055: private String title;
056: private String description;
057:
058: public Bookmark() {
059: }
060:
061: /**
062: * @return Returns the id.
063: */
064: public int getId() {
065: return this .id;
066: }
067:
068: /**
069: * @param id The id to set.
070: */
071: public void setId(int id) {
072: this .id = id;
073: }
074:
075: /**
076: * @return Returns the publicVisible.
077: */
078: public boolean isPublicVisible() {
079: return this .publicVisible;
080: }
081:
082: /**
083: * @param publicVisible The publicVisible to set.
084: */
085: public void setPublicVisible(boolean publicVisible) {
086: this .publicVisible = publicVisible;
087: }
088:
089: /**
090: * @return Returns the relationId.
091: */
092: public int getRelationId() {
093: return this .relationId;
094: }
095:
096: /**
097: * @param relationId The relationId to set.
098: */
099: public void setRelationId(int relationId) {
100: this .relationId = relationId;
101: }
102:
103: /**
104: * @return Returns the relationType.
105: */
106: public int getRelationType() {
107: return this .relationType;
108: }
109:
110: /**
111: * @param relationType The relationType to set.
112: */
113: public void setRelationType(int relationType) {
114: this .relationType = relationType;
115: }
116:
117: /**
118: * @return Returns the userId.
119: */
120: public int getUserId() {
121: return this .userId;
122: }
123:
124: /**
125: * @param userId The userId to set.
126: */
127: public void setUserId(int userId) {
128: this .userId = userId;
129: }
130:
131: /**
132: * @return Returns the description.
133: */
134: public String getDescription() {
135: return this .description;
136: }
137:
138: /**
139: * @param description The description to set.
140: */
141: public void setDescription(String description) {
142: this .description = description;
143: }
144:
145: /**
146: * @return Returns the title.
147: */
148: public String getTitle() {
149: return this .title;
150: }
151:
152: /**
153: * @param title The title to set.
154: */
155: public void setTitle(String title) {
156: this.title = title;
157: }
158: }
|