public class MailTarget
extends java.lang.Object
EmailTransitionProvider
This not only identifies the email message but also a location within the message.
The mssage hash is also stored explicitly so we can detect if the has sent by the user is the same as
the hash of the stored object. If they differ the user has started from an out of date state.Modifier and Type | Field and Description |
---|---|
static Feature |
IGNORE_HASH_FEATURE |
Constructor and Description |
---|
MailTarget(MessageHandler handler)
create a MailTarget with the hash derived from the handler.
|
MailTarget(MessageHandler handler,
int hash,
java.util.List<java.lang.String> path)
create a MailTarget with an explicit path and hash from the user.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canEdit(SessionService<?> operator) |
boolean |
canView(SessionService<?> operator) |
boolean |
equals(java.lang.Object obj) |
MessageHandler |
getHandler() |
int |
getMessageHash() |
java.util.List<java.lang.String> |
getPath() |
int |
hashCode() |
boolean |
hashMatches() |
java.lang.String |
toString() |
public static final Feature IGNORE_HASH_FEATURE
public MailTarget(MessageHandler handler) throws java.lang.Exception
handler
- java.lang.Exception
public MailTarget(MessageHandler handler, int hash, java.util.List<java.lang.String> path)
handler
- hash
- path
- public java.lang.String toString()
toString
in class java.lang.Object
public MessageHandler getHandler()
public java.util.List<java.lang.String> getPath()
public int getMessageHash()
public boolean canView(SessionService<?> operator)
public boolean canEdit(SessionService<?> operator)
public boolean hashMatches() throws java.lang.Exception
java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object