Package mc.core.model.system
Class Notification
java.lang.Object
mc.core.model.base.EntityText
mc.core.model.system.Notification
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity
Entity to store a message to a number of users or user groups, optionally concerning a specific entity and/or
containing a report, e.g. of performed imports/exports.
Notifications are made multilingual by using resource bundle keys for topic and message. The display application must replace the resource bundle keys with the actual texts.
Notifications are made multilingual by using resource bundle keys for topic and message. The display application must replace the resource bundle keys with the actual texts.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumno property fields, used as parameter constant and label key -
Field Summary
Fields inherited from class mc.core.model.base.EntityText
TEXT_MAX_LENGTH_STD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddNotificationAttachment(IEntity entity) voidaddReceiver(Principal receiver) add this principal (user or group) as direct receiver to notificationvoidaddReceiver(Principal receiver, boolean directReceiver) booleanlonggetId()getMessage(Locale locale) String[]transient for mapping from entity manager and existing codegetTopic()String[]inthashCode()booleanbooleanvoidsetDateCreated(Calendar date) voidsetDateMailed(User user) voidsetId(long id) voidsetMessage(String text, Locale locale) Deprecated.voidsetMessage(Resource message) do not call directly.voidsetMessageArgString(String messageArgString) voidsetMessageArguments(String... args) voidsetMessageBoard(String messageBoard) voidsetMessageKey(String message) voidsetNotificationAttachments(List<NotificationAttachment> attachments) voidsetNotificationForce(boolean notificationForce) voidsetNotificationReceiver(List<NotificationReceiver> receiver) voidsetNotificationType(String notificationType) voidvoidsetReceiver(List<Principal> receiver) for setting notification receivers through entity mapping.voidvoidvoidDeprecated.voiddo not call directly.voidsetTopicArgString(String topicArgString) voidsetTopicArguments(String... args) voidsetTopicKey(String topic) toString()
-
Constructor Details
-
Notification
public Notification() -
Notification
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getNotificationReceiver
-
setNotificationReceiver
-
getReceiver
transient for mapping from entity manager and existing code- Returns:
- list of
Principalfrom the list ofNotificationReceiver
-
setReceiver
for setting notification receivers through entity mapping. new NotificationReceiver entities are inserted by cascade.- Parameters:
receiver-
-
addReceiver
add this principal (user or group) as direct receiver to notification- Parameters:
receiver-
-
addReceiver
-
getNotificationAttachments
-
setNotificationAttachments
-
addNotificationAttachment
-
addNotificationAttachment
-
getSender
-
setSender
-
getReport
-
setReport
-
getDateCreated
-
setDateCreated
-
getMessageKey
-
setMessageKey
-
getTopicKey
-
setTopicKey
-
getMessageArgString
-
setMessageArgString
-
getTopicArgString
-
setTopicArgString
-
getMessageArguments
-
setMessageArguments
-
getTopicArguments
-
setTopicArguments
-
getMessageBoard
-
setMessageBoard
-
getTopic
-
setTopic
do not call directly. use textService or dataMap! -
setTopic
Deprecated.do not call directly. use textService or dataMap! -
getMessage
-
setMessage
do not call directly. use textService or dataMap! -
setMessage
Deprecated.do not call directly. use textService or dataMap! -
getTopic
-
getMessage
-
getNotificationType
-
setNotificationType
-
isNotificationForce
public boolean isNotificationForce() -
setNotificationForce
public void setNotificationForce(boolean notificationForce) -
isRead
-
setRead
-
setDateMailed
-
equals
-
hashCode
public int hashCode() -
toString
-