KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > message > MessageHeader


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.message;
6
7 import java.util.Date JavaDoc ;
8 /**
9  * Fri, May 30, 2003 @
10  * @author: Tuan Nguyen
11  * @version: $Id: MessageHeader.java,v 1.4 2004/10/13 03:32:21 tuan08 Exp $
12  * @since: 0.0
13  * @email: tuan08@yahoo.com
14  */

15 public interface MessageHeader {
16   
17   public static final String JavaDoc ANSWERED_FLAG = "answered";
18   public static final String JavaDoc DELETED_FLAG = "deleted";
19   public static final String JavaDoc DRAFT_FLAG = "draft";
20   public static final String JavaDoc FLAGGED_FLAG = "flagged";
21   public static final String JavaDoc RECENT_FLAG = "recent";
22   public static final String JavaDoc SEEN_FLAG = "seen";
23   public static final String JavaDoc USER_FLAG = "user";
24   
25   public static final String JavaDoc[] SUPPORTED_FLAGS =
26   { ANSWERED_FLAG, DELETED_FLAG, DRAFT_FLAG, FLAGGED_FLAG, RECENT_FLAG, SEEN_FLAG,
27     USER_FLAG} ;
28
29   public String JavaDoc getId() ;
30   public void setId(String JavaDoc value) ;
31
32   public String JavaDoc getFrom() ;
33   public void setFrom(String JavaDoc value) ;
34
35   public String JavaDoc getFlags() ;
36   public void setFlags(String JavaDoc value) ;
37
38   public String JavaDoc getSubject() ;
39   public void setSubject(String JavaDoc value) ;
40
41   public Date JavaDoc getReceivedDate() ;
42   public void setReceivedDate(Date JavaDoc value) ;
43   
44   public boolean isNew() ;
45   
46   public boolean hasFlag(String JavaDoc flag);
47   public void addFlag(String JavaDoc flag);
48   public void removeFlag(String JavaDoc flag);
49   public String JavaDoc[] getFlagsAsArray();
50 }
Popular Tags