public class TimestampsPlugin extends PluginActivator implements TimestampsService, PostCreateTopic, PostCreateAssoc, PostUpdateTopic, PostUpdateAssoc, PreSendTopic, PreSendAssoc, ServiceResponseFilter
bundle, dmx, mf
Constructor and Description |
---|
TimestampsPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
enrichWithTimestamps(DMXObject object)
Retrieves the CREATED/MODIFIED timestamps and stores them in the given object's model (under synthetic child type
URIs
dmx.timestamps.created and dmx.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) |
getBundleContext, getPluginName, getStaticResource, getUri, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
public long getCreationTime(long objectId)
getCreationTime
in interface TimestampsService
public long getModificationTime(long objectId)
getModificationTime
in interface TimestampsService
public void setModified(DMXObject object)
setModified
in interface TimestampsService
public void enrichWithTimestamps(DMXObject object)
TimestampsService
dmx.timestamps.created
and dmx.timestamps.modified
).enrichWithTimestamps
in interface TimestampsService
public Collection<Topic> getTopicsByCreationTime(long from, long to)
getTopicsByCreationTime
in interface TimestampsService
public Collection<Topic> getTopicsByModificationTime(long from, long to)
getTopicsByModificationTime
in interface TimestampsService
public Collection<Assoc> getAssocsByCreationTime(long from, long to)
getAssocsByCreationTime
in interface TimestampsService
public Collection<Assoc> getAssocsByModificationTime(long from, long to)
getAssocsByModificationTime
in interface TimestampsService
public void init()
init
in interface PluginContext
init
in class PluginActivator
public void postCreateTopic(Topic topic)
postCreateTopic
in interface PostCreateTopic
public void postCreateAssoc(Assoc assoc)
postCreateAssoc
in interface PostCreateAssoc
public void postUpdateTopic(Topic topic, ChangeReport report, TopicModel updateModel)
postUpdateTopic
in interface PostUpdateTopic
public void postUpdateAssoc(Assoc assoc, ChangeReport report, AssocModel updateModel)
postUpdateAssoc
in interface PostUpdateAssoc
public void preSendTopic(Topic topic)
preSendTopic
in interface PreSendTopic
public void preSendAssoc(Assoc assoc)
preSendAssoc
in interface PreSendAssoc
public void serviceResponseFilter(com.sun.jersey.spi.container.ContainerResponse response)
serviceResponseFilter
in interface ServiceResponseFilter
Copyright © 2023. All Rights Reserved.