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: MailConstants.java,v $
031: * Revision 1.3 2005/10/02 14:08:59 colinmacleod
032: * Added/improved log4j logging.
033: *
034: * Revision 1.2 2005/04/09 17:20:00 colinmacleod
035: * Changed copyright text to GPL v2 explicitly.
036: *
037: * Revision 1.1.1.1 2005/03/10 17:51:15 colinmacleod
038: * Restructured ivata op around Hibernate/PicoContainer.
039: * Renamed ivata groupware.
040: *
041: * Revision 1.4 2004/07/13 19:48:12 colinmacleod
042: * Moved project to POJOs from EJBs.
043: * Applied PicoContainer to services layer (replacing session EJBs).
044: * Applied Hibernate to persistence layer (replacing entity EJBs).
045: *
046: * Revision 1.3 2004/03/21 21:16:39 colinmacleod
047: * Shortened name to ivata op.
048: *
049: * Revision 1.2 2004/02/01 22:07:32 colinmacleod
050: * Added full names to author tags
051: *
052: * Revision 1.1.1.1 2004/01/27 20:59:56 colinmacleod
053: * Moved ivata openportal to SourceForge..
054: *
055: * Revision 1.2 2003/10/15 14:11:33 colin
056: * fixing for XDoclet
057: *
058: * Revision 1.1 2003/02/24 19:09:24 colin
059: * moved to business
060: *
061: * Revision 1.3 2003/02/04 17:39:21 colin
062: * copyright notice
063: *
064: * Revision 1.2 2002/11/17 20:02:23 colin
065: * added sort constants
066: *
067: * Revision 1.1 2002/11/12 11:39:22 colin
068: * first version in CVS. added constants for thread handling.
069: * -----------------------------------------------------------------------------
070: */
071: package com.ivata.groupware.business.mail;
072:
073: /**
074: * <p>Constants within the mail subsystem, to indicate how mail
075: * messages relate to one another.</p>
076: *
077: * @since 2002-11-10
078: * @author Colin MacLeod
079: * <a href='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
080: * @version $Revision: 1.3 $
081: */
082: public final class MailConstants {
083: /**
084: * <p>Indicates a list of messages should be sorted by the message
085: * folder.</p>
086: */
087: public static final Integer SORT_FOLDER = new Integer(0);
088:
089: /**
090: * <p>Indicates a list of messages should be sorted by the message
091: * id.</p>
092: */
093: public static final Integer SORT_ID = new Integer(1);
094:
095: /**
096: * <p>Indicates a list of messages should be sorted by the message
097: * received date.</p>
098: */
099: public static final Integer SORT_RECEIVED = new Integer(9);
100:
101: /**
102: * <p>Indicates a list of messages should be sorted by the message
103: * recipients.</p>
104: */
105: public static final Integer SORT_RECIPIENTS = new Integer(4);
106:
107: /**
108: * <p>Indicates a list of messages should be sorted by the "Blind
109: * Carbon Copy" recipients.</p>
110: */
111: public static final Integer SORT_RECIPIENTS_BCC = new Integer(6);
112:
113: /**
114: * <p>Indicates a list of messages should be sorted by the "Carbon
115: * Copy" recipients.</p>
116: */
117: public static final Integer SORT_RECIPIENTS_CC = new Integer(5);
118:
119: /**
120: * <p>Indicates a list of messages should be sorted by the message
121: * senders.</p>
122: */
123: public static final Integer SORT_SENDERS = new Integer(8);
124:
125: /**
126: * <p>Indicates a list of messages should be sorted by the message
127: * sent date.</p>
128: */
129: public static final Integer SORT_SENT = new Integer(7);
130:
131: /**
132: * <p>Indicates a list of messages should be sorted by the message
133: * size in bytes.</p>
134: */
135: public static final Integer SORT_SIZE = new Integer(10);
136:
137: /**
138: * <p>Indicates a list of messages should be sorted by the message
139: * subject.</p>
140: */
141: public static final Integer SORT_SUBJECT = new Integer(3);
142:
143: /**
144: * <p>Indicates a list of messages should be sorted by the message
145: * text.</p>
146: */
147: public static final Integer SORT_TEXT = new Integer(2);
148:
149: /**
150: * <p>Indicates that the new message is created by editing an existing
151: * message.</p>
152: */
153: public static final Integer THREAD_DRAFT = new Integer(4);
154:
155: /**
156: * <p>Indicates that the new message is created by forwarding other
157: * messages.</p>
158: */
159: public static final Integer THREAD_FORWARD = new Integer(3);
160:
161: /**
162: * <p>Default state for a message - indicates a new message with no
163: * association to previous messages.</p>
164: */
165: public static final Integer THREAD_NEW = new Integer(0);
166:
167: /**
168: * <p>Indicates that the new message is a reply to an existing mail,
169: * addressed only to that mail's sender (not the other
170: * recipients).</p>
171: */
172: public static final Integer THREAD_REPLY = new Integer(1);
173:
174: /**
175: * <p>Indicates that the new message is a reply to an existing mail,
176: * addressed both to that mail's sender and the other (CC)
177: * recipients.</p>
178: */
179: public static final Integer THREAD_REPLY_ALL = new Integer(2);
180:
181: /**
182: * Private default constructor enforces utility class behavior.
183: */
184: private MailConstants() {
185: }
186:
187: }
|