Announcement Announcement Module
No announcement yet.
Node lock and session lock token Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Node lock and session lock token

    I'm testing the Jakrabbit Spring integration and have some questions. My main actual problem is the node locking. If the lock is not session scoped I should save the lock token when the session is gone and add to the session when it is opened again. But this process seems to be quite automatic in this spring module, so how can deal with this?

    This is the piece of code:

    @Transactional(propagation = Propagation.REQUIRED, readOnly = false)
    public void lock() {
    jcrTemplate.execute(new JcrCallback() {
    public Object doInJcr(Session session) throws RepositoryException {"Session: "+session.getUserID()+" - "+session);
    Node root = session.getRootNode();
    Node pruebas = root.getNode("pruebas");
    pruebas.lock(true, false);;
    return null;

    Thanks in advance.