Package ome.services.blitz.impl
Class TimelineI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.TimelineI
-
- All Implemented Interfaces:
BlitzOnly
,ServiceFactoryAware
,_ITimelineOperations
,_ServiceInterfaceOperations
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class TimelineI extends AbstractAmdServant implements _ITimelineOperations, ServiceFactoryAware, BlitzOnly
implementation of the ITimeline service interface.- Since:
- Beta4
-
-
Constructor Summary
Constructors Constructor Description TimelineI(BlitzExecutor be)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
countByPeriod_async(AMD_ITimeline_countByPeriod __cb, java.util.List<java.lang.String> types, RTime start, RTime end, Parameters p, Ice.Current __current)
Queries the same information as getByPeriod, but only returns the counts for the given objects.void
getByPeriod_async(AMD_ITimeline_getByPeriod __cb, java.util.List<java.lang.String> types, RTime start, RTime end, Parameters p, boolean merge, Ice.Current __current)
Returns the given LIMIT objects of TYPES as ordered by creation/modification times in the Event table, but within the given time window.void
getEventLogsByPeriod_async(AMD_ITimeline_getEventLogsByPeriod __cb, RTime start, RTime end, Parameters p, Ice.Current __current)
Returns the EventLog table objects which are queried to produce the counts above.void
getMostRecentAnnotationLinks_async(AMD_ITimeline_getMostRecentAnnotationLinks __cb, java.util.List<java.lang.String> parentTypes, java.util.List<java.lang.String> childTypes, java.util.List<java.lang.String> namespaces, Parameters p, Ice.Current __current)
Return the last LIMIT annotation __Links__ whose parent (IAnnotated) matches one of the parentTypes, whose child (Annotation) matches one of the childTypes (limit of one for the moment), and who namespace matches via ILIKE.void
getMostRecentObjects_async(AMD_ITimeline_getMostRecentObjects __cb, java.util.List<java.lang.String> types, Parameters p, boolean merge, Ice.Current __current)
Returns the last LIMIT objects of TYPES as ordered by creation/modification times in the Event table.void
getMostRecentShareCommentLinks_async(AMD_ITimeline_getMostRecentShareCommentLinks __cb, Parameters p, Ice.Current __current)
Return the last LIMIT comment annotation links attached to a share by __others__.void
setSecuritySystem(ome.security.SecuritySystem ss)
void
setServiceFactory(ServiceFactoryI sf)
void
setSessionManager(ome.services.sessions.SessionManager sm)
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
-
-
-
Field Detail
-
factory
protected ServiceFactoryI factory
-
sm
protected ome.services.sessions.SessionManager sm
-
ss
protected ome.security.SecuritySystem ss
-
-
Constructor Detail
-
TimelineI
public TimelineI(BlitzExecutor be)
-
-
Method Detail
-
setSessionManager
public void setSessionManager(ome.services.sessions.SessionManager sm)
-
setSecuritySystem
public void setSecuritySystem(ome.security.SecuritySystem ss)
-
setServiceFactory
public void setServiceFactory(ServiceFactoryI sf)
- Specified by:
setServiceFactory
in interfaceServiceFactoryAware
-
countByPeriod_async
public void countByPeriod_async(AMD_ITimeline_countByPeriod __cb, java.util.List<java.lang.String> types, RTime start, RTime end, Parameters p, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Queries the same information as getByPeriod, but only returns the counts for the given objects.- Specified by:
countByPeriod_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
getByPeriod_async
public void getByPeriod_async(AMD_ITimeline_getByPeriod __cb, java.util.List<java.lang.String> types, RTime start, RTime end, Parameters p, boolean merge, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Returns the given LIMIT objects of TYPES as ordered by creation/modification times in the Event table, but within the given time window.- Specified by:
getByPeriod_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
getEventLogsByPeriod_async
public void getEventLogsByPeriod_async(AMD_ITimeline_getEventLogsByPeriod __cb, RTime start, RTime end, Parameters p, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Returns the EventLog table objects which are queried to produce the counts above. Note the concept of period inclusion mentioned above. WORKAROUND WARNING: this method returns non-managed EventLogs (i.e. eventLog.getId() == null) for Image acquisitions.- Specified by:
getEventLogsByPeriod_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
getMostRecentObjects_async
public void getMostRecentObjects_async(AMD_ITimeline_getMostRecentObjects __cb, java.util.List<java.lang.String> types, Parameters p, boolean merge, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Returns the last LIMIT objects of TYPES as ordered by creation/modification times in the Event table.- Specified by:
getMostRecentObjects_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
getMostRecentAnnotationLinks_async
public void getMostRecentAnnotationLinks_async(AMD_ITimeline_getMostRecentAnnotationLinks __cb, java.util.List<java.lang.String> parentTypes, java.util.List<java.lang.String> childTypes, java.util.List<java.lang.String> namespaces, Parameters p, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Return the last LIMIT annotation __Links__ whose parent (IAnnotated) matches one of the parentTypes, whose child (Annotation) matches one of the childTypes (limit of one for the moment), and who namespace matches via ILIKE. The parents and children will be unloaded. The link will have its creation/update events loaded. If Parameters.theFilter.ownerId or groupId are set, they will be AND'ed to the query to filter results. Merges by default based on parentType.- Specified by:
getMostRecentAnnotationLinks_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
getMostRecentShareCommentLinks_async
public void getMostRecentShareCommentLinks_async(AMD_ITimeline_getMostRecentShareCommentLinks __cb, Parameters p, Ice.Current __current) throws ServerError
Description copied from interface:_ITimelineOperations
Return the last LIMIT comment annotation links attached to a share by __others__. Note: Currently the storage of these objects is not optimal and so this method may change.- Specified by:
getMostRecentShareCommentLinks_async
in interface_ITimelineOperations
- Parameters:
__cb
- The callback object for the operation.__current
- The Current object for the invocation.- Throws:
ServerError
-
-