Package systems.dmx.timestamps
Class TimestampsPlugin
- java.lang.Object
-
- systems.dmx.core.osgi.PluginActivator
-
- systems.dmx.timestamps.TimestampsPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator,PluginContext,PostCreateAssoc,PostCreateTopic,PostUpdateAssoc,PostUpdateTopic,PreSendAssoc,PreSendTopic,ServiceResponseFilter,EventListener,TimestampsService
public class TimestampsPlugin extends PluginActivator implements TimestampsService, PostCreateTopic, PostCreateAssoc, PostUpdateTopic, PostUpdateAssoc, PreSendTopic, PreSendAssoc, ServiceResponseFilter
-
-
Field Summary
-
Fields inherited from class systems.dmx.core.osgi.PluginActivator
bundle, dmx, mf
-
-
Constructor Summary
Constructors Constructor Description TimestampsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenrichWithTimestamps(DMXObject object)Retrieves the CREATED/MODIFIED timestamps and stores them in the given object's model (under synthetic child type URIsdmx.timestamps.createdanddmx.timestamps.modified).Collection<Assoc>getAssocsByCreationTime(long from, long to)Collection<Assoc>getAssocsByModificationTime(long from, long to)longgetCreationTime(long objectId)longgetModificationTime(long objectId)Collection<Topic>getTopicsByCreationTime(long from, long to)Collection<Topic>getTopicsByModificationTime(long from, long to)voidinit()voidpostCreateAssoc(Assoc assoc)voidpostCreateTopic(Topic topic)voidpostUpdateAssoc(Assoc assoc, ChangeReport report, AssocModel updateModel)voidpostUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)voidpreSendAssoc(Assoc assoc)voidpreSendTopic(Topic topic)voidserviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)voidsetModified(DMXObject object)-
Methods inherited from class systems.dmx.core.osgi.PluginActivator
getBundleContext, getPluginName, getStaticResource, getUri, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
-
-
-
-
Method Detail
-
getCreationTime
public long getCreationTime(long objectId)
- Specified by:
getCreationTimein interfaceTimestampsService
-
getModificationTime
public long getModificationTime(long objectId)
- Specified by:
getModificationTimein interfaceTimestampsService
-
setModified
public void setModified(DMXObject object)
- Specified by:
setModifiedin interfaceTimestampsService
-
enrichWithTimestamps
public void enrichWithTimestamps(DMXObject object)
Description copied from interface:TimestampsServiceRetrieves the CREATED/MODIFIED timestamps and stores them in the given object's model (under synthetic child type URIsdmx.timestamps.createdanddmx.timestamps.modified).- Specified by:
enrichWithTimestampsin interfaceTimestampsService
-
getTopicsByCreationTime
public Collection<Topic> getTopicsByCreationTime(long from, long to)
- Specified by:
getTopicsByCreationTimein interfaceTimestampsService
-
getTopicsByModificationTime
public Collection<Topic> getTopicsByModificationTime(long from, long to)
- Specified by:
getTopicsByModificationTimein interfaceTimestampsService
-
getAssocsByCreationTime
public Collection<Assoc> getAssocsByCreationTime(long from, long to)
- Specified by:
getAssocsByCreationTimein interfaceTimestampsService
-
getAssocsByModificationTime
public Collection<Assoc> getAssocsByModificationTime(long from, long to)
- Specified by:
getAssocsByModificationTimein interfaceTimestampsService
-
init
public void init()
- Specified by:
initin interfacePluginContext- Overrides:
initin classPluginActivator
-
postCreateTopic
public void postCreateTopic(Topic topic)
- Specified by:
postCreateTopicin interfacePostCreateTopic
-
postCreateAssoc
public void postCreateAssoc(Assoc assoc)
- Specified by:
postCreateAssocin interfacePostCreateAssoc
-
postUpdateTopic
public void postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
- Specified by:
postUpdateTopicin interfacePostUpdateTopic
-
postUpdateAssoc
public void postUpdateAssoc(Assoc assoc, ChangeReport report, AssocModel updateModel)
- Specified by:
postUpdateAssocin interfacePostUpdateAssoc
-
preSendTopic
public void preSendTopic(Topic topic)
- Specified by:
preSendTopicin interfacePreSendTopic
-
preSendAssoc
public void preSendAssoc(Assoc assoc)
- Specified by:
preSendAssocin interfacePreSendAssoc
-
serviceResponseFilter
public void serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)
- Specified by:
serviceResponseFilterin interfaceServiceResponseFilter
-
-