public interface MiniMessageService
| Modifier and Type | Method and Description |
|---|---|
MiniMessage |
addMiniMessage(Principal principal,
String message)
Add a new mini message.
|
MiniMessage |
addMiniMessage(Principal principal,
String message,
Date publishedDate)
Add a new mini message.
|
MiniMessage |
addMiniMessage(Principal principal,
String message,
Date publishedDate,
String contextActivityObject)
Add a new mini message for the given
context. |
MiniMessage |
getMiniMessage(Serializable miniMessageId)
Returns the mini message for the given
miniMessageId, or
null if no mini message exists with the given
miniMessageId. |
ActivitiesList |
getMiniMessageActivitiesFor(String actorActivityObject,
RelationshipKind relationshipKind,
long offset,
long limit)
Returns the mini messages, as a list of
Activity, for the given
actorActivityObject. |
ActivitiesList |
getMiniMessageActivitiesFor(String actorActivityObject,
RelationshipKind relationshipKind,
String contextActivityObject,
long offset,
long limit)
Returns the mini messages, as a list of
Activity, for the given
actorActivityObject and contextActivityObject. |
ActivitiesList |
getMiniMessageActivitiesFrom(String actorActivityObject,
long offset,
long limit)
Returns the mini messages, as a list of
Activity, from the given
actorActivityObject. |
List<MiniMessage> |
getMiniMessageFor(String actorActivityObject,
RelationshipKind relationshipKind,
long offset,
long limit)
Returns the mini messages for the given
actorActivityObject. |
List<MiniMessage> |
getMiniMessageFor(String actorActivityObject,
RelationshipKind relationshipKind,
String contextActivityObject,
long offset,
long limit)
Returns the mini messages for the given
actorActivityObject and
contextActivityObject. |
List<MiniMessage> |
getMiniMessageFrom(String actorActivityObject,
long offset,
long limit)
Returns the mini messages from the given
actorActivityObject. |
void |
removeMiniMessage(MiniMessage miniMessage)
Remove a mini message.
|
MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate)
MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate, String contextActivityObject)
context.MiniMessage addMiniMessage(Principal principal, String message)
void removeMiniMessage(MiniMessage miniMessage)
MiniMessage getMiniMessage(Serializable miniMessageId)
miniMessageId, or
null if no mini message exists with the given
miniMessageId.List<MiniMessage> getMiniMessageFor(String actorActivityObject, RelationshipKind relationshipKind, long offset, long limit)
actorActivityObject. The
relationshipKind is used to find people with whom the actor has a
relation.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.List<MiniMessage> getMiniMessageFor(String actorActivityObject, RelationshipKind relationshipKind, String contextActivityObject, long offset, long limit)
actorActivityObject and
contextActivityObject. The relationshipKind is used to
find people with whom the actor has a relation.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.List<MiniMessage> getMiniMessageFrom(String actorActivityObject, long offset, long limit)
actorActivityObject.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject, RelationshipKind relationshipKind, long offset, long limit)
Activity, for the given
actorActivityObject. The relationshipKind is used to find
people with whom the actor has a relation.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject, RelationshipKind relationshipKind, String contextActivityObject, long offset, long limit)
Activity, for the given
actorActivityObject and contextActivityObject. The
relationshipKind is used to find people with whom the actor has a
relation.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.ActivitiesList getMiniMessageActivitiesFrom(String actorActivityObject, long offset, long limit)
Activity, from the given
actorActivityObject.offset - the offset (starting at 0) into the list of mini messages.limit - the maximum number of mini messages to retrieve, or 0 for
all of them.Copyright © 2013 Nuxeo SA. All Rights Reserved.