org.ikasan.framework.systemevent.service
Class SystemEventServiceImpl

java.lang.Object
  extended by org.ikasan.framework.systemevent.service.SystemEventServiceImpl
All Implemented Interfaces:
SystemEventService

public class SystemEventServiceImpl
extends Object
implements SystemEventService

SystemEvent service implementation

Author:
Ikasan Development Team

Constructor Summary
SystemEventServiceImpl(SystemEventDao systemEventDao, Long eventExpiryMinutes)
          Constructor
 
Method Summary
 void housekeep()
          Cleanup all expired system events
 PagedSearchResult<SystemEvent> listSystemEvents(int pageNo, int pageSize, String orderBy, boolean orderAscending, String subject, String action, Date timestampFrom, Date timestampTo, String actor)
          Performs a paged search for SystemEvents restricting by criteria fields as supplied
 void logSystemEvent(String subject, String action, String actor)
          Logs some system level happening
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemEventServiceImpl

public SystemEventServiceImpl(SystemEventDao systemEventDao,
                              Long eventExpiryMinutes)
Constructor

Parameters:
systemEventDao -
eventExpiryMinutes - - no of minutes for this event to be kept until eligible for housekeep
Method Detail

logSystemEvent

public void logSystemEvent(String subject,
                           String action,
                           String actor)
Description copied from interface: SystemEventService
Logs some system level happening

Specified by:
logSystemEvent in interface SystemEventService
Parameters:
subject - - system level entity that has been affected
action - - what has happened
actor - - who/what was driving the happening

listSystemEvents

public PagedSearchResult<SystemEvent> listSystemEvents(int pageNo,
                                                       int pageSize,
                                                       String orderBy,
                                                       boolean orderAscending,
                                                       String subject,
                                                       String action,
                                                       Date timestampFrom,
                                                       Date timestampTo,
                                                       String actor)
Description copied from interface: SystemEventService
Performs a paged search for SystemEvents restricting by criteria fields as supplied

Specified by:
listSystemEvents in interface SystemEventService
Parameters:
pageNo - - page control field - page no of results to return
pageSize - - page control field - size of page
orderBy - - page control - field to order by
orderAscending - - page control field - true/false results in ascending order with respect to orderBy field
subject - - criteria field - filter for exact match on subject
action - - criteria field - filter for exact match on action
timestampFrom - - criteria field - filter for events with timestamp greater than this value
timestampTo - - criteria field - filter for events with timestamp less than this value
actor - - criteria field - filter for exact match on actor
Returns:
PagedSearchResult - page friendly search result subset

housekeep

public void housekeep()
Description copied from interface: SystemEventService
Cleanup all expired system events

Specified by:
housekeep in interface SystemEventService


Copyright © 2007-2012 Ikasan. All Rights Reserved.