org.alfresco.bm.event.mongo
Class MongoEventService
java.lang.Object
org.alfresco.bm.event.AbstractEventService
org.alfresco.bm.event.mongo.MongoEventService
- All Implemented Interfaces:
- org.alfresco.bm.event.EventService
public class MongoEventService
- extends AbstractEventService
An EventService MongoDB collection
- Since:
- 1.0
- Author:
- Derek Hulley
|
Constructor Summary |
MongoEventService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
Construct a provider that works using the given Mongo instance and
collection name. |
|
Method Summary |
long |
count()
|
boolean |
deleteEvent(org.alfresco.bm.event.Event event)
|
List<org.alfresco.bm.event.Event> |
findEvents(String name,
int skip,
int limit)
|
org.alfresco.bm.event.Event |
getEvent(String id)
|
org.alfresco.bm.event.Event |
lockEvent(org.alfresco.bm.event.Event event,
String lockOwner)
|
org.alfresco.bm.event.Event |
nextEvent(String dataOwner,
long latestScheduledTime,
long latestQueueTime)
|
org.alfresco.bm.event.Event |
putEvent(org.alfresco.bm.event.Event event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoEventService
public MongoEventService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collection)
- Construct a provider that works using the given Mongo instance and
collection name.
- Parameters:
mongo - the MongoDB template to usecollection - the name of the MongoDB collection
count
public long count()
findEvents
public List<org.alfresco.bm.event.Event> findEvents(String name,
int skip,
int limit)
nextEvent
public org.alfresco.bm.event.Event nextEvent(String dataOwner,
long latestScheduledTime,
long latestQueueTime)
-
lockEvent
public org.alfresco.bm.event.Event lockEvent(org.alfresco.bm.event.Event event,
String lockOwner)
-
getEvent
public org.alfresco.bm.event.Event getEvent(String id)
deleteEvent
public boolean deleteEvent(org.alfresco.bm.event.Event event)
putEvent
public org.alfresco.bm.event.Event putEvent(org.alfresco.bm.event.Event event)
Copyright © 2012. All Rights Reserved.