Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.social.mini.message
Class MiniMessageServiceImpl

java.lang.Object
  extended by org.nuxeo.ecm.social.mini.message.MiniMessageServiceImpl
All Implemented Interfaces:
MiniMessageService

public class MiniMessageServiceImpl
extends Object
implements MiniMessageService

Default implementation of MiniMessageService.

Since:
5.5
Author:
Thomas Roger

Constructor Summary
MiniMessageServiceImpl()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiniMessageServiceImpl

public MiniMessageServiceImpl()
Method Detail

addMiniMessage

public MiniMessage addMiniMessage(Principal principal,
                                  String message,
                                  Date publishedDate)
Description copied from interface: MiniMessageService
Add a new mini message.

Specified by:
addMiniMessage in interface MiniMessageService
Returns:
the newly created MiniMessage object.

addMiniMessage

public MiniMessage addMiniMessage(Principal principal,
                                  String message,
                                  Date publishedDate,
                                  String contextActivityObject)
Description copied from interface: MiniMessageService
Add a new mini message for the given context.

Specified by:
addMiniMessage in interface MiniMessageService
Returns:
the newly created MiniMessage object.

addMiniMessage

public MiniMessage addMiniMessage(Principal principal,
                                  String message)
Description copied from interface: MiniMessageService
Add a new mini message.

Specified by:
addMiniMessage in interface MiniMessageService
Returns:
the newly created MiniMessage object.

removeMiniMessage

public void removeMiniMessage(MiniMessage miniMessage)
Description copied from interface: MiniMessageService
Remove a mini message.

Specified by:
removeMiniMessage in interface MiniMessageService

getMiniMessage

public MiniMessage getMiniMessage(Serializable miniMessageId)
Description copied from interface: MiniMessageService
Returns the mini message for the given miniMessageId, or null if no mini message exists with the given miniMessageId.

Specified by:
getMiniMessage in interface MiniMessageService

getMiniMessageFor

public List<MiniMessage> getMiniMessageFor(String actorActivityObject,
                                           RelationshipKind relationshipKind,
                                           long offset,
                                           long limit)
Description copied from interface: MiniMessageService
Returns the mini messages for the given actorActivityObject. The relationshipKind is used to find people with whom the actor has a relation.

Specified by:
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.

getMiniMessageFor

public List<MiniMessage> getMiniMessageFor(String actorActivityObject,
                                           RelationshipKind relationshipKind,
                                           String contextActivityObject,
                                           long offset,
                                           long limit)
Description copied from interface: MiniMessageService
Returns the mini messages for the given actorActivityObject and contextActivityObject. The relationshipKind is used to find people with whom the actor has a relation.

Specified by:
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.

getMiniMessageFrom

public List<MiniMessage> getMiniMessageFrom(String actorActivityObject,
                                            long offset,
                                            long limit)
Description copied from interface: MiniMessageService
Returns the mini messages from the given actorActivityObject.

Specified by:
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.

getMiniMessageActivitiesFor

public ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject,
                                                  RelationshipKind relationshipKind,
                                                  long offset,
                                                  long limit)
Description copied from interface: MiniMessageService
Returns the mini messages, as a list of Activity, for the given actorActivityObject. The relationshipKind is used to find people with whom the actor has a relation.

Specified by:
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.

getMiniMessageActivitiesFor

public ActivitiesList getMiniMessageActivitiesFor(String actorActivityObject,
                                                  RelationshipKind relationshipKind,
                                                  String contextActivityObject,
                                                  long offset,
                                                  long limit)
Description copied from interface: MiniMessageService
Returns the mini messages, as a list of Activity, for the given actorActivityObject and contextActivityObject. The relationshipKind is used to find people with whom the actor has a relation.

Specified by:
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.

getMiniMessageActivitiesFrom

public ActivitiesList getMiniMessageActivitiesFrom(String actorActivityObject,
                                                   long offset,
                                                   long limit)
Description copied from interface: MiniMessageService
Returns the mini messages, as a list of Activity, from the given actorActivityObject.

Specified by:
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.

getActivityStreamService

public ActivityStreamService getActivityStreamService()

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.