public class MiniMessageServiceImpl extends Object implements MiniMessageService
MiniMessageService
.Constructor and Description |
---|
MiniMessageServiceImpl() |
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 target)
Add a new mini message for the given
target . |
ActivityStreamService |
getActivityStreamService() |
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 targetActivityObject,
long offset,
long limit)
Returns the mini messages for the given
actorActivityObject and
targetActivityObject . |
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.
|
public MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate)
MiniMessageService
addMiniMessage
in interface MiniMessageService
public MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate, String target)
MiniMessageService
target
.addMiniMessage
in interface MiniMessageService
public MiniMessage addMiniMessage(Principal principal, String message)
MiniMessageService
addMiniMessage
in interface MiniMessageService
public void removeMiniMessage(MiniMessage miniMessage)
MiniMessageService
removeMiniMessage
in interface MiniMessageService
public List<MiniMessage> getMiniMessageFor(String actorActivityObject, RelationshipKind relationshipKind, long offset, long limit)
MiniMessageService
actorActivityObject
. The
relationshipKind
is used to find people with whom the actor has a
relation.getMiniMessageFor
in interface MiniMessageService
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.public List<MiniMessage> getMiniMessageFor(String actorActivityObject, RelationshipKind relationshipKind, String targetActivityObject, long offset, long limit)
MiniMessageService
actorActivityObject
and
targetActivityObject
. The relationshipKind
is used to
find people with whom the actor has a relation.getMiniMessageFor
in interface MiniMessageService
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.public List<MiniMessage> getMiniMessageFrom(String actorActivityObject, long offset, long limit)
MiniMessageService
actorActivityObject
.getMiniMessageFrom
in interface MiniMessageService
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.public ActivityStreamService getActivityStreamService()
Copyright © 2011 Nuxeo SA. All Rights Reserved.