KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ivata > groupware > business > mail > MailConstants


1 /*
2  * Copyright (c) 2001 - 2005 ivata limited.
3  * All rights reserved.
4  * -----------------------------------------------------------------------------
5  * ivata groupware may be redistributed under the GNU General Public
6  * License as published by the Free Software Foundation;
7  * version 2 of the License.
8  *
9  * These programs are free software; you can redistribute them and/or
10  * modify them under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; version 2 of the License.
12  *
13  * These programs are distributed in the hope that they will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * See the GNU General Public License in the file LICENSE.txt for more
18  * details.
19  *
20  * If you would like a copy of the GNU General Public License write to
21  *
22  * Free Software Foundation, Inc.
23  * 59 Temple Place - Suite 330
24  * Boston, MA 02111-1307, USA.
25  *
26  *
27  * To arrange commercial support and licensing, contact ivata at
28  * http://www.ivata.com/contact.jsp
29  * -----------------------------------------------------------------------------
30  * $Log: MailConstants.java,v $
31  * Revision 1.2 2005/04/09 17:20:00 colinmacleod
32  * Changed copyright text to GPL v2 explicitly.
33  *
34  * Revision 1.1.1.1 2005/03/10 17:51:15 colinmacleod
35  * Restructured ivata op around Hibernate/PicoContainer.
36  * Renamed ivata groupware.
37  *
38  * Revision 1.4 2004/07/13 19:48:12 colinmacleod
39  * Moved project to POJOs from EJBs.
40  * Applied PicoContainer to services layer (replacing session EJBs).
41  * Applied Hibernate to persistence layer (replacing entity EJBs).
42  *
43  * Revision 1.3 2004/03/21 21:16:39 colinmacleod
44  * Shortened name to ivata op.
45  *
46  * Revision 1.2 2004/02/01 22:07:32 colinmacleod
47  * Added full names to author tags
48  *
49  * Revision 1.1.1.1 2004/01/27 20:59:56 colinmacleod
50  * Moved ivata openportal to SourceForge..
51  *
52  * Revision 1.2 2003/10/15 14:11:33 colin
53  * fixing for XDoclet
54  *
55  * Revision 1.1 2003/02/24 19:09:24 colin
56  * moved to business
57  *
58  * Revision 1.3 2003/02/04 17:39:21 colin
59  * copyright notice
60  *
61  * Revision 1.2 2002/11/17 20:02:23 colin
62  * added sort constants
63  *
64  * Revision 1.1 2002/11/12 11:39:22 colin
65  * first version in CVS. added constants for thread handling.
66  * -----------------------------------------------------------------------------
67  */

68 package com.ivata.groupware.business.mail;
69
70
71 /**
72  * <p>Constants within the mail subsystem, to indicate how mail
73  * messages relate to one another.</p>
74  *
75  * @since 2002-11-10
76  * @author Colin MacLeod
77  * <a HREF='mailto:colin.macleod@ivata.com'>colin.macleod@ivata.com</a>
78  * @version $Revision: 1.2 $
79  */

80 public class MailConstants {
81     /**
82      * <p>Default state for a message - indicates a new message with no
83      * association to previous messages.</p>
84      */

85     public static final Integer JavaDoc THREAD_NEW = new Integer JavaDoc(0);
86
87     /**
88      * <p>Indicates that the new message is a reply to an existing mail,
89      * addressed only to that mail's sender (not the other
90      * recipients).</p>
91      */

92     public static final Integer JavaDoc THREAD_REPLY = new Integer JavaDoc(1);
93
94     /**
95      * <p>Indicates that the new message is a reply to an existing mail,
96      * addressed both to that mail's sender and the other (CC)
97      * recipients.</p>
98      */

99     public static final Integer JavaDoc THREAD_REPLY_ALL = new Integer JavaDoc(2);
100
101     /**
102      * <p>Indicates that the new message is created by forwarding other
103      * messages.</p>
104      */

105     public static final Integer JavaDoc THREAD_FORWARD = new Integer JavaDoc(3);
106
107     /**
108      * <p>Indicates that the new message is created by editing an existing
109      * message.</p>
110      */

111     public static final Integer JavaDoc THREAD_DRAFT = new Integer JavaDoc(4);
112
113     /**
114      * <p>Indicates a list of messages should be sorted by the message
115      * folder.</p>
116      */

117     public static final Integer JavaDoc SORT_FOLDER = new Integer JavaDoc(0);
118
119     /**
120      * <p>Indicates a list of messages should be sorted by the message
121      * id.</p>
122      */

123     public static final Integer JavaDoc SORT_ID = new Integer JavaDoc(1);
124
125     /**
126      * <p>Indicates a list of messages should be sorted by the message
127      * text.</p>
128      */

129     public static final Integer JavaDoc SORT_TEXT = new Integer JavaDoc(2);
130
131     /**
132      * <p>Indicates a list of messages should be sorted by the message
133      * subject.</p>
134      */

135     public static final Integer JavaDoc SORT_SUBJECT = new Integer JavaDoc(3);
136
137     /**
138      * <p>Indicates a list of messages should be sorted by the message
139      * recipients.</p>
140      */

141     public static final Integer JavaDoc SORT_RECIPIENTS = new Integer JavaDoc(4);
142
143     /**
144      * <p>Indicates a list of messages should be sorted by the "Carbon
145      * Copy" recipients.</p>
146      */

147     public static final Integer JavaDoc SORT_RECIPIENTS_CC = new Integer JavaDoc(5);
148
149     /**
150      * <p>Indicates a list of messages should be sorted by the "Blind
151      * Carbon Copy" recipients.</p>
152      */

153     public static final Integer JavaDoc SORT_RECIPIENTS_BCC = new Integer JavaDoc(6);
154
155     /**
156      * <p>Indicates a list of messages should be sorted by the message
157      * sent date.</p>
158      */

159     public static final Integer JavaDoc SORT_SENT = new Integer JavaDoc(7);
160
161     /**
162      * <p>Indicates a list of messages should be sorted by the message
163      * senders.</p>
164      */

165     public static final Integer JavaDoc SORT_SENDERS = new Integer JavaDoc(8);
166
167     /**
168      * <p>Indicates a list of messages should be sorted by the message
169      * received date.</p>
170      */

171     public static final Integer JavaDoc SORT_RECEIVED = new Integer JavaDoc(9);
172
173     /**
174      * <p>Indicates a list of messages should be sorted by the message
175      * size in bytes.</p>
176      */

177     public static final Integer JavaDoc SORT_SIZE = new Integer JavaDoc(10);
178 }
179
Popular Tags