public interface MessageTemplate<Type>
MessageGateway
. impl.Mailing
Modifier and Type | Method and Description |
---|---|
Type |
buildMessage(Authorizable recipient,
UserProperties userProperties) |
Type |
buildMessage(Profile recipient)
Deprecated.
|
void |
dispose()
Called if the Template will not be used any longer.
|
Class<Type> |
getType() |
void |
put(String var,
String replace)
Adds or overwrites a mapping of this replacer.
|
@Deprecated Type buildMessage(Profile recipient) throws MailingException
recipient
given as argument.
disposed
an
IllegalStateException
is thrown.recipient
- to build a message fornull
if the
MailingRecipient does not provide sufficient data to build a
Message (eg. no e-mail address to build a e-mail Message)MailingException
- in case of an error building the message that is
independent of the MailingRecipient eg. access to template storage
is in exceptional state.IllegalStateException
- in case method dispose
has been called before.
Use buildMessage(org.apache.jackrabbit.api.security.user.Authorizable, com.adobe.granite.security.user.UserProperties)
Type buildMessage(Authorizable recipient, UserProperties userProperties) throws MailingException, RepositoryException
MailingException
RepositoryException
void dispose() throws MailingException
buildMessage
will fail.
Implementations can dispose any used Resources eg.
Binary Values
, Database access.MailingException
- in case of exception disposing one of the resources"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"