Class ApplicationMail
java.lang.Object
cz.metacentrum.perun.registrar.model.ApplicationMail
Object definition for mail notifications used for registration process (messages to user and vo admins)
- Author:
- Pavel Zlamal invalid input: '<'256627@mail.muni.cz>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Inner class used for localized texts in mail messagestatic enum
Available mail types -
Field Summary
-
Constructor Summary
ConstructorDescriptionApplicationMail
(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send) ApplicationMail
(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send, Map<Locale, ApplicationMail.MailText> message) ApplicationMail
(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send, Map<Locale, ApplicationMail.MailText> message, Map<Locale, ApplicationMail.MailText> htmlMessage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return bean name as PerunBean does.int
getHtmlMessage
(Locale locale) Return html message in specific language (empty message if not present)int
getId()
getMessage
(Locale locale) Return message in specific language (empty message if not present)static Locale
Return code of native language defined in config file.boolean
getSend()
int
hashCode()
void
setAppType
(Application.AppType appType) void
setFormId
(int formId) void
setHtmlMessage
(Map<Locale, ApplicationMail.MailText> htmlMessage) void
setId
(int id) void
setMailType
(ApplicationMail.MailType mailType) void
setMessage
(Map<Locale, ApplicationMail.MailText> message) void
setSend
(boolean send) toString()
-
Field Details
-
EN
-
CS
-
-
Constructor Details
-
ApplicationMail
public ApplicationMail() -
ApplicationMail
public ApplicationMail(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send) -
ApplicationMail
public ApplicationMail(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send, Map<Locale, ApplicationMail.MailText> message) -
ApplicationMail
public ApplicationMail(int id, Application.AppType appType, int formId, ApplicationMail.MailType mailType, boolean send, Map<Locale, ApplicationMail.MailText> message, Map<Locale, ApplicationMail.MailText> htmlMessage)
-
-
Method Details
-
getNativeLanguage
Return code of native language defined in config file. Return NULL if no native language set.- Returns:
- String representation of native language
-
equals
-
getAppType
- Returns:
- the appType
-
setAppType
- Parameters:
appType
- the appType to set
-
getBeanName
Return bean name as PerunBean does.- Returns:
- Class simple name (beanName)
-
getFormId
public int getFormId()- Returns:
- the formId
-
setFormId
public void setFormId(int formId) - Parameters:
formId
- the formId to set
-
getHtmlMessage
Return html message in specific language (empty message if not present)- Parameters:
locale
- language- Returns:
- the message
-
getHtmlMessage
- Returns:
- the html message
-
setHtmlMessage
- Parameters:
htmlMessage
- the html message to set
-
getId
public int getId()- Returns:
- the id
-
setId
public void setId(int id) - Parameters:
id
- the id to set
-
getMailType
- Returns:
- the mailType
-
setMailType
- Parameters:
mailType
- the mailType to set
-
getMessage
Return message in specific language (empty message if not present)- Parameters:
locale
- language- Returns:
- the message
-
getMessage
- Returns:
- the message
-
setMessage
- Parameters:
message
- the message to set
-
getSend
public boolean getSend()- Returns:
- the send
-
setSend
public void setSend(boolean send) - Parameters:
send
- the send to set
-
hashCode
public int hashCode() -
toString
-