Actually session was never directly exposed via basic commands. All you got in the past guaranteed was getNode(Context) which indeed returns deprecated Content. Since 4.5.7 you can use getJcrNode(Context) method in all Commands extending BaseRepositoryCommand which returns Node. However both of those methods work against system context. If you want to retrieve session in user context, then it depends on the code that is invoking such command. Can you please explain where/how do you call the command that is not able to retrieve JCRSession, but is able to retrieve HierarchyManager?
HTH, Jan -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=3b2df54b-3c23-4941-b6c6-2527df1cec6e ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
