@Security public class MessageServiceSecurity extends BaseServiceSecurity implements MessageService
MessageService| Constructor and Description |
|---|
MessageServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
int |
countNewMessages()
Return messages count since the last time seen
|
int |
countUnreadMessages()
Return unread messages count
|
MessageData |
getData(java.lang.Long id)
Returns details data for the given message
|
MessageSearchData |
getSearchData()
Returns data used to search messages
|
SendMessageData |
getSendData(java.lang.Long replyId,
UserLocatorVO toUserVO)
Returns data for sending a message.
|
SendInviteMessageData |
getSendInviteMessageData()
Returns data for sending an invite message
|
void |
markAsRead(java.util.Set<java.lang.Long> ids,
boolean isRead)
Marks all the given message as either read or as unread
|
void |
moveToTrash(java.util.Set<java.lang.Long> ids)
Moves all the given messages to the trash bin
|
void |
removeAll(java.util.Set<java.lang.Long> ids)
Permanently removes all the given messages
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
void |
restoreAll(java.util.Set<java.lang.Long> ids)
Restores the given messages, that is, move them from the trash bin to the original message box (either inbox or
sent items)
|
Page<MessageVO> |
search(MessageQuery query)
Searches for messages according to the given criteria
|
void |
send(SendMessageDTO params)
Sends a message
|
void |
sendInviteMessage(SendInviteMessageDTO inviteMessageDTO)
Sends an invitation message to the destination addresses
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic int countNewMessages()
throws FrameworkException
MessageServicecountNewMessages in interface MessageServiceFrameworkExceptionpublic int countUnreadMessages()
MessageServicecountUnreadMessages in interface MessageServicepublic MessageData getData(java.lang.Long id) throws FrameworkException
MessageServicegetData in interface MessageServiceFrameworkExceptionpublic MessageSearchData getSearchData()
MessageServicegetSearchData in interface MessageServicepublic SendMessageData getSendData(java.lang.Long replyId, UserLocatorVO toUserVO)
MessageServicegetSendData in interface MessageServicepublic SendInviteMessageData getSendInviteMessageData()
MessageServicegetSendInviteMessageData in interface MessageServicepublic void markAsRead(java.util.Set<java.lang.Long> ids,
boolean isRead)
MessageServicemarkAsRead in interface MessageServicepublic void moveToTrash(java.util.Set<java.lang.Long> ids)
MessageServicemoveToTrash in interface MessageServicepublic void removeAll(java.util.Set<java.lang.Long> ids)
MessageServiceremoveAll in interface MessageServicepublic void restoreAll(java.util.Set<java.lang.Long> ids)
MessageServicerestoreAll in interface MessageServicepublic Page<MessageVO> search(MessageQuery query)
MessageServicesearch in interface MessageServicepublic void send(SendMessageDTO params)
MessageServicesend in interface MessageServicepublic void sendInviteMessage(SendInviteMessageDTO inviteMessageDTO)
MessageServicesendInviteMessage in interface MessageServiceprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity