org.alfresco.bm.event
Interface ResultService


public interface ResultService

Service interface providing methods to store and query for event results.

Since:
1.0
Author:
Derek Hulley, Frederik Heremans

Method Summary
 long countEventsByName(String name)
          Count the number of previously-completed events with the given name.
 List<EventRecord> findEventsByName(String name, int skip, int limit)
          Find previously-completed events with the given name
 EventRecord recordResult(EventRecord result)
          Simply store an event for later use
 

Method Detail

recordResult

EventRecord recordResult(EventRecord result)
Simply store an event for later use

Parameters:
result - the result to store
Returns:
Returns the result as persisted

findEventsByName

List<EventRecord> findEventsByName(String name,
                                   int skip,
                                   int limit)
Find previously-completed events with the given name

Parameters:
name - the name of the event as recorded
skip - the number of results to skip (for paging)
limit - the number of results to retrieve
Returns:
Returns any recorded results with the given name

countEventsByName

long countEventsByName(String name)
Count the number of previously-completed events with the given name.

Parameters:
name - the name of the event as recored
Returns:
the count


Copyright © 2012. All Rights Reserved.