001: /*
002: * Copyright (c) 2001 - 2005 ivata limited.
003: * All rights reserved.
004: * -----------------------------------------------------------------------------
005: * ivata groupware may be redistributed under the GNU General Public
006: * License as published by the Free Software Foundation;
007: * version 2 of the License.
008: *
009: * These programs are free software; you can redistribute them and/or
010: * modify them under the terms of the GNU General Public License
011: * as published by the Free Software Foundation; version 2 of the License.
012: *
013: * These programs are distributed in the hope that they will be useful,
014: * but WITHOUT ANY WARRANTY; without even the implied warranty of
015: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016: *
017: * See the GNU General Public License in the file LICENSE.txt for more
018: * details.
019: *
020: * If you would like a copy of the GNU General Public License write to
021: *
022: * Free Software Foundation, Inc.
023: * 59 Temple Place - Suite 330
024: * Boston, MA 02111-1307, USA.
025: *
026: *
027: * To arrange commercial support and licensing, contact ivata at
028: * http://www.ivata.com/contact.jsp
029: * -----------------------------------------------------------------------------
030: * $Log: PageDO.java,v $
031: * Revision 1.3 2005/04/10 20:09:45 colinmacleod
032: * Added new themes.
033: * Changed id type to String.
034: * Changed i tag to em and b tag to strong.
035: * Improved PicoContainerFactory with NanoContainer scripts.
036: *
037: * Revision 1.2 2005/04/09 17:19:45 colinmacleod
038: * Changed copyright text to GPL v2 explicitly.
039: *
040: * Revision 1.1.1.1 2005/03/10 17:51:59 colinmacleod
041: * Restructured ivata op around Hibernate/PicoContainer.
042: * Renamed ivata groupware.
043: *
044: * Revision 1.1 2004/07/13 19:47:29 colinmacleod
045: * Moved project to POJOs from EJBs.
046: * Applied PicoContainer to services layer (replacing session EJBs).
047: * Applied Hibernate to persistence layer (replacing entity EJBs).
048: *
049: * Revision 1.3 2004/03/21 21:16:29 colinmacleod
050: * Shortened name to ivata op.
051: *
052: * Revision 1.2 2004/02/01 22:07:31 colinmacleod
053: * Added full names to author tags
054: *
055: * Revision 1.1.1.1 2004/01/27 20:58:40 colinmacleod
056: * Moved ivata openportal to SourceForge..
057: *
058: * Revision 1.5 2003/11/03 11:29:44 jano
059: * commiting library,
060: * tryinjg to fix deploying problem
061: *
062: * Revision 1.4 2003/10/28 13:16:14 jano
063: * commiting library,
064: * still fixing compile and building openGroupware project
065: *
066: * Revision 1.3 2003/10/15 14:21:49 jano
067: * converting to XDoclet
068: *
069: * Revision 1.2 2003/10/15 14:16:53 colin
070: * fixing for XDoclet
071: *
072: * Revision 1.3 2003/05/01 12:13:22 jano
073: * tidy up names of sequeneces
074: *
075: * Revision 1.2 2003/02/25 14:38:13 colin
076: * implemented setModified methods on entity beans thro IvataEntityBean superclass
077: *
078: * Revision 1.1 2003/02/24 19:09:22 colin
079: * moved to business
080: *
081: * Revision 1.5 2003/02/04 17:43:47 colin
082: * copyright notice
083: *
084: * Revision 1.4 2002/08/11 11:35:07 colin
085: * cosmetic changes
086: *
087: * Revision 1.3 2002/07/04 12:29:28 jano
088: * i put readonly script to CVS and i will commit all SRC directory
089: *
090: * Revision 1.2 2002/07/02 14:56:55 colin
091: * tried to fix jbuilder EJB designer
092: *
093: * Revision 1.1 2002/06/18 11:40:13 colin
094: * first version of library
095: * -----------------------------------------------------------------------------
096: */
097: package com.ivata.groupware.business.library.page;
098:
099: import com.ivata.groupware.container.persistence.BaseDO;
100:
101: /**
102: * <p>Represents a page of text within the library. Items with the following
103: * types can have pages associated with them:<br/>
104: * <ul>
105: * <li>document</li>
106: * <li>memo</li>
107: * <li>news item</li>
108: * <li>meeting agenda/minutes</li>
109: * </ul></p>
110: *
111: * @since 2002-06-14
112: * @author Colin MacLeod
113: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
114: * @version $Revision: 1.3 $
115: *
116: * @hibernate.class
117: * table="library_page"
118: */
119: public class PageDO extends BaseDO {
120:
121: /**
122: * <p>Get the page number of this page within the library item. The first
123: * page in the item will have the number <code>0</code>.</p>
124: *
125: * @return an <code>Integer</code> beginning with 0 describing the
126: * page's significance within it's library item. Lower numbers have higher
127: * significance.
128: */
129: private Integer number;
130:
131: /**
132: * <p>
133: * Contains the contents of the page.
134: * </p>
135: */
136: private String text;
137:
138: /**
139: * <p>Get the page number of this page within the library item. The first
140: * page in the item will have the number <code>0</code>.</p>
141: *
142: * @return an <code>Integer</code> beginning with 0 describing the
143: * page's significance within it's library item. Lower numbers have higher
144: * significance.
145: * @hibernate.property
146: */
147: public final Integer getNumber() {
148: return number;
149: }
150:
151: /**
152: * <p>
153: * Contains the contents of the page.
154: * </p>
155: *
156: * @return Human-readable, clear text contents of the page.
157: * @hibernate.property
158: */
159: public final String getText() {
160: return text;
161: }
162:
163: /**
164: * <p>Set the page number of this page within the library item. The first
165: * page in the item will have the number <code>0</code>.</p>
166: *
167: * @param number An <code>Integer</code> beginning with 0 describing the
168: * page's significance within it's library item. Lower numbers have higher
169: * significance.
170: */
171: public final void setNumber(final Integer number) {
172: this .number = number;
173: }
174:
175: /**
176: * <p>
177: * Contains the contents of the page.
178: * </p>
179: *
180: * @param text Human-readable, clear text contents of the page.
181: */
182: public final void setText(final String text) {
183: this.text = text;
184: }
185: }
|