Class HvlNotificationTemplateContentModel
java.lang.Object
tr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
tr.com.havelsan.javarch.dto.model.HvlModel
tr.com.havelsan.javarch.notification.mail.common.model.HvlNotificationTemplateContentModel
- All Implemented Interfaces:
Serializable
,Comparable<tr.com.havelsan.javarch.dto.model.HvlSimpleModel>
,tr.com.havelsan.javarch.data.commons.structure.HvlModelStructure<Long>
public class HvlNotificationTemplateContentModel
extends tr.com.havelsan.javarch.dto.model.HvlModel
A data transfer object is used for notification template content operations.
- See Also:
-
Constructor Summary
ConstructorDescriptionInstantiates a new HvlNotificationTemplateContentModel.HvlNotificationTemplateContentModel
(@NotNull @Size(max=50) String sender, @NotNull @Size(max=100) String subject, @NotNull HvlNotificationTemplateContentType contentType, @NotNull @Size(max=1000000) String content) Instantiates a new HvlNotificationTemplateContentModel. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets content.Gets content type.Gets sender.Gets subject.int
hashCode()
void
setContent
(String content) Sets content.void
setContentType
(HvlNotificationTemplateContentType contentType) Sets content type.void
Sets sender.void
setSubject
(String subject) Sets subject.Methods inherited from class tr.com.havelsan.javarch.dto.model.HvlModel
getId, setId
Methods inherited from class tr.com.havelsan.javarch.dto.model.HvlSimpleModel
compareTo, getCreatedBy, getDateCreated, getDateUpdated, getDeleted, getDeletedDate, getUpdatedBy, getUuid, getVersion, setCreatedBy, setDateCreated, setDateUpdated, setDeleted, setDeletedDate, setUpdatedBy, setUuid, setVersion
-
Constructor Details
-
HvlNotificationTemplateContentModel
public HvlNotificationTemplateContentModel()Instantiates a new HvlNotificationTemplateContentModel. -
HvlNotificationTemplateContentModel
public HvlNotificationTemplateContentModel(@NotNull @Size(max=50) @NotNull @Size(max=50) String sender, @NotNull @Size(max=100) @NotNull @Size(max=100) String subject, @NotNull @NotNull HvlNotificationTemplateContentType contentType, @NotNull @Size(max=1000000) @NotNull @Size(max=1000000) String content) Instantiates a new HvlNotificationTemplateContentModel.- Parameters:
sender
- the sendersubject
- the subjectcontentType
- the content typecontent
- the content
-
-
Method Details
-
getSender
Gets sender.- Returns:
- the sender
-
setSender
Sets sender.- Parameters:
sender
- the sender
-
getSubject
Gets subject.- Returns:
- the subject
-
setSubject
Sets subject.- Parameters:
subject
- the subject
-
getContentType
Gets content type.- Returns:
- the content type
-
setContentType
Sets content type.- Parameters:
contentType
- the content type
-
getContent
Gets content.- Returns:
- the content
-
setContent
Sets content.- Parameters:
content
- the content
-
equals
- Overrides:
equals
in classtr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classtr.com.havelsan.javarch.dto.model.HvlSimpleModel<Long>
-