org.benow.web.message
Interface Message

All Known Implementing Classes:
MessageImpl, MessageReceivedMessage

public interface Message


Nested Class Summary
static class Message.Priority
          Priorities for messages.
 
Method Summary
 java.util.Date created()
           
 java.lang.String getBody()
           
 org.benow.java.mime.MimeType getBodyMimeType()
           
 java.net.URL getConfirmURL()
           
 java.net.URL getDenyURL()
           
 Message.Priority getPriority()
           
 java.util.List<Recipient> getRecipients()
           
 org.benow.security.user.User getSender()
          The sender of the message.
 java.lang.String getSubject()
           
 java.util.Date lastSent()
           
 boolean received()
           
 boolean sendAsEmail()
           
 boolean sent()
           
 

Method Detail

getRecipients

java.util.List<Recipient> getRecipients()

getSender

org.benow.security.user.User getSender()
The sender of the message. If the sender is null, the message was sent by the system.

Returns:

getSubject

java.lang.String getSubject()

getConfirmURL

java.net.URL getConfirmURL()
Returns:
the url to confirm the operation indicated in the message, if any. Can also refer to the primary url for handling the message

getDenyURL

java.net.URL getDenyURL()
Returns:
the url to deny the operation indicated in the message.

getBody

java.lang.String getBody()

getBodyMimeType

org.benow.java.mime.MimeType getBodyMimeType()

getPriority

Message.Priority getPriority()

sendAsEmail

boolean sendAsEmail()

received

boolean received()

sent

boolean sent()

lastSent

java.util.Date lastSent()

created

java.util.Date created()