|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.netuix.application.communities.invitations.email.formatting.StaticEmailTextFormatter
public class StaticEmailTextFormatter
EmailTextFormatter
implementation that uses a fixed
subject and body text.
Field Summary | |
---|---|
protected InvitationDetails |
invitationDetails
|
protected String |
invitationURL
|
Constructor Summary | |
---|---|
StaticEmailTextFormatter(String subjectText,
String bodyText)
|
Method Summary | |
---|---|
protected String |
appendInvitationURLToBodyText(Invitee i)
|
void |
destroy()
Called by EmailInviter implementations once they are
completed using this EmailTextFormatter , giving the
formatter an opportunity to do any necessary cleanup or to
release resources obtained in init. |
EmailContent |
getBody(Invitee i)
Get the email body text for the current Invitee |
EmailContent |
getSubject(Invitee i)
Get the email subject text for the current Invitee |
void |
init(InvitationDetails invitationDetails,
String invitationURL)
Perform any one-time setup operations that need to be done such as obtaining resources that are needed during calls to getSubject and getBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String invitationURL
protected InvitationDetails invitationDetails
Constructor Detail |
---|
public StaticEmailTextFormatter(String subjectText, String bodyText)
Method Detail |
---|
public void init(InvitationDetails invitationDetails, String invitationURL)
EmailTextFormatter
init
in interface EmailTextFormatter
invitationDetails
- the InvitationDetails
for this invitation operationinvitationURL
- the URL to the registration page or the community for this
invitation operation. Email messages should include this URL so that recipients
can navigate to the inviting community.public EmailContent getSubject(Invitee i)
EmailTextFormatter
Invitee
getSubject
in interface EmailTextFormatter
i
- the current Invitee
public EmailContent getBody(Invitee i)
EmailTextFormatter
Invitee
getBody
in interface EmailTextFormatter
i
- the current Invitee
protected String appendInvitationURLToBodyText(Invitee i)
public void destroy()
EmailTextFormatter
EmailInviter
implementations once they are
completed using this EmailTextFormatter
, giving the
formatter an opportunity to do any necessary cleanup or to
release resources obtained in init.
destroy
in interface EmailTextFormatter
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |