@Roland:
[code]MgnlContext.getSystemContext().getHierarchyManager("myworkspace").getRoot().getContent("/path/to/content").getAllVersions()[/code]
 should give you the result prior 4.5

in 4.5 you should use [code]MgnlContext.doInSystemContext(new VoidOp() {
  public void doExec() throws RepositoryException {
    Components.getSingleton(VersionManager.class).getAllVersions(yourNode);
  }
})[/code]

However that is not what the person who asked original question needs to do. 
There is a copy of the latest version of every versioned node in mgnlVersion 
workspace, so all he needs to do is 
[code]MgnlContext.getSystemContext().getHierarchyManager("mgnlVersion").getRoot().getContentByUUID("uuid-of-deleted-page")[/code]
 to get that deleted node .. and then either export or clone that node back to 
website workspace ... and same for every subpage of that page since every page 
is versioned separately. But that only works when versioning is enabled. from 
the snippet of the log I've seen above I'm highly doubtful that this is the 
case here.

HTH,
Jan

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=b8936b48-8ca6-4ebb-8518-867a4bf1c20b


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to