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