Class CmsMessageInfo
java.lang.Object
org.opencms.workplace.tools.workplace.broadcast.CmsMessageInfo
Bean class for message information.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCc()
Returns the cc string.getFrom()
Returns the from string.getMsg()
Returns the message string.Returns the subject string.getTo()
Returns the to string.void
sendEmail
(org.opencms.file.CmsObject cms) Sends the given message to the given addresses.void
Sets the cc string.void
Sets the from string.void
Sets the message string.void
setSubject
(String subject) Sets the subject string.void
Sets the to string.
-
Constructor Details
-
CmsMessageInfo
public CmsMessageInfo()Default Constructor.
-
-
Method Details
-
getCc
Returns the cc string.- Returns:
- the cc string
-
getFrom
Returns the from string.- Returns:
- the from string
-
getMsg
Returns the message string.- Returns:
- the message string
-
getSubject
Returns the subject string.- Returns:
- the subject string
-
getTo
Returns the to string.- Returns:
- the to string
-
sendEmail
Sends the given message to the given addresses.- Parameters:
cms
- the cms context- Throws:
Exception
- if something goes wrong
-
setCc
Sets the cc string.- Parameters:
cc
- the cc string
-
setFrom
Sets the from string.- Parameters:
from
- the from string
-
setMsg
Sets the message string.- Parameters:
msg
- the message string
-
setSubject
Sets the subject string.- Parameters:
subject
- the subject string
-
setTo
Sets the to string.This has to be a ';' separated string of email-addresses.
- Parameters:
to
- the to string
-