[Yanel-dev] Displaying website at a specific point in time
Michael Wechner
michael.wechner at wyona.com
Thu Jan 7 11:34:26 CET 2010
Hi
I have recently refactored the Yarep method getRevision(Date) in order
to retrieve a revision of a node for a specific date, so called point in
time.
It would be nice to be able to do/use this also on the resource layer.
At the moment we have the following methods/interfaces
http://www.yanel.org/javadoc/org/wyona/yanel/core/api/attributes/VersionableV2.html#getView(viewId,
revisionName)
http://www.yanel.org/javadoc/org/wyona/yanel/core/api/attributes/VersionableV2.html#getRevisions()
whereas getRevisions() could be re-used in order to find the revision
for a specific date by stepping through each revision
and comparing/checking the creation date and hence get revision and
inside the resource call node.getRevision(date).
Would it make sense to introduce a new method
http://www.yanel.org/javadoc/org/wyona/yanel/core/api/attributes/VersionableV2.html#getView(viewId,
date)
?
WDYT?
Thanks
Michi
More information about the Yanel-development
mailing list