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