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 void
enrichWithTimestamps(DMXObject object)
Retrieves the CREATED/MODIFIED timestamps and stores them in the given object's model (under synthetic child type URIsdmx.timestamps.created
anddmx.timestamps.modified
).Collection<Assoc>
getAssocsByCreationTime(long from, long to)
Collection<Assoc>
getAssocsByModificationTime(long from, long to)
long
getCreationTime(long objectId)
long
getModificationTime(long objectId)
Collection<Topic>
getTopicsByCreationTime(long from, long to)
Collection<Topic>
getTopicsByModificationTime(long from, long to)
void
init()
void
postCreateAssoc(Assoc assoc)
void
postCreateTopic(Topic topic)
void
postUpdateAssoc(Assoc assoc, ChangeReport report, AssocModel updateModel)
void
postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
void
preSendAssoc(Assoc assoc)
void
preSendTopic(Topic topic)
void
serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)
void
setModified(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:
getCreationTime
in interfaceTimestampsService
-
getModificationTime
public long getModificationTime(long objectId)
- Specified by:
getModificationTime
in interfaceTimestampsService
-
setModified
public void setModified(DMXObject object)
- Specified by:
setModified
in interfaceTimestampsService
-
enrichWithTimestamps
public void enrichWithTimestamps(DMXObject object)
Description copied from interface:TimestampsService
Retrieves the CREATED/MODIFIED timestamps and stores them in the given object's model (under synthetic child type URIsdmx.timestamps.created
anddmx.timestamps.modified
).- Specified by:
enrichWithTimestamps
in interfaceTimestampsService
-
getTopicsByCreationTime
public Collection<Topic> getTopicsByCreationTime(long from, long to)
- Specified by:
getTopicsByCreationTime
in interfaceTimestampsService
-
getTopicsByModificationTime
public Collection<Topic> getTopicsByModificationTime(long from, long to)
- Specified by:
getTopicsByModificationTime
in interfaceTimestampsService
-
getAssocsByCreationTime
public Collection<Assoc> getAssocsByCreationTime(long from, long to)
- Specified by:
getAssocsByCreationTime
in interfaceTimestampsService
-
getAssocsByModificationTime
public Collection<Assoc> getAssocsByModificationTime(long from, long to)
- Specified by:
getAssocsByModificationTime
in interfaceTimestampsService
-
init
public void init()
- Specified by:
init
in interfacePluginContext
- Overrides:
init
in classPluginActivator
-
postCreateTopic
public void postCreateTopic(Topic topic)
- Specified by:
postCreateTopic
in interfacePostCreateTopic
-
postCreateAssoc
public void postCreateAssoc(Assoc assoc)
- Specified by:
postCreateAssoc
in interfacePostCreateAssoc
-
postUpdateTopic
public void postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
- Specified by:
postUpdateTopic
in interfacePostUpdateTopic
-
postUpdateAssoc
public void postUpdateAssoc(Assoc assoc, ChangeReport report, AssocModel updateModel)
- Specified by:
postUpdateAssoc
in interfacePostUpdateAssoc
-
preSendTopic
public void preSendTopic(Topic topic)
- Specified by:
preSendTopic
in interfacePreSendTopic
-
preSendAssoc
public void preSendAssoc(Assoc assoc)
- Specified by:
preSendAssoc
in interfacePreSendAssoc
-
serviceResponseFilter
public void serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)
- Specified by:
serviceResponseFilter
in interfaceServiceResponseFilter
-
-