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 contextActivityObject)
Add a new mini message for the given
context . |
ActivityStreamService |
getActivityStreamService() |
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.
|
public MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate)
MiniMessageService
addMiniMessage
in interface MiniMessageService
public MiniMessage addMiniMessage(Principal principal, String message, Date publishedDate, String contextActivityObject)
MiniMessageService
context
.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 MiniMessage getMiniMessage(Serializable miniMessageId)
MiniMessageService
miniMessageId
, or
null
if no mini message exists with the given
miniMessageId
.getMiniMessage
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 contextActivityObject, long offset, long limit)
MiniMessageService
actorActivityObject
and
contextActivityObject
. 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 ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject, RelationshipKind relationshipKind, long offset, long limit)
MiniMessageService
Activity
, for the given
actorActivityObject
. The relationshipKind
is used to find
people with whom the actor has a relation.getMiniMessageActivitiesFor
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 ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject, RelationshipKind relationshipKind, String contextActivityObject, long offset, long limit)
MiniMessageService
Activity
, for the given
actorActivityObject
and contextActivityObject
. The
relationshipKind
is used to find people with whom the actor has a
relation.getMiniMessageActivitiesFor
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 ActivitiesList getMiniMessageActivitiesFrom(String actorActivityObject, long offset, long limit)
MiniMessageService
Activity
, from the given
actorActivityObject
.getMiniMessageActivitiesFrom
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 © 2013 Nuxeo SA. All Rights Reserved.