Interface SessionInfo

    • Method Detail

      • getLockTokens

        java.lang.String[] getLockTokens()
                                  throws javax.jcr.UnsupportedRepositoryOperationException,
                                         javax.jcr.RepositoryException
        Returns the lock tokens present on this SessionInfo.
        Returns:
        lock tokens present on this SessionInfo.
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException - If locking is not supported.
        javax.jcr.RepositoryException - If another error occurs.
      • addLockToken

        void addLockToken​(java.lang.String lockToken)
                   throws javax.jcr.UnsupportedRepositoryOperationException,
                          javax.jcr.lock.LockException,
                          javax.jcr.RepositoryException
        Add the given lock token to this SessionInfo. The token will enable the SessionInfo to operate on Items that are affected by the lock identified by the given token.
        Parameters:
        lockToken - to be added.
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException - If locking is not supported.
        javax.jcr.lock.LockException - If the token cannot be added.
        javax.jcr.RepositoryException - If another error occurs.
      • removeLockToken

        void removeLockToken​(java.lang.String lockToken)
                      throws javax.jcr.UnsupportedRepositoryOperationException,
                             javax.jcr.lock.LockException,
                             javax.jcr.RepositoryException
        Removes the given lock token from this SessionInfo. This must happen if the associated Session successfully removes the Lock from a Node or if the token is removed from the Session itself by calling Session.removeLockToken(String). Consequently all RepositoryService operations affected by a lock will fail with LockException provided the lock hasn't been released.
        Parameters:
        lockToken - to be removed.
        Throws:
        javax.jcr.UnsupportedRepositoryOperationException - If locking is not supported.
        javax.jcr.lock.LockException - If the token cannot be removed.
        javax.jcr.RepositoryException - If another error occurs.
      • setUserData

        void setUserData​(java.lang.String userData)
                  throws javax.jcr.RepositoryException
        Sets the user data used for Event.getUserData().
        Parameters:
        userData -
        Throws:
        javax.jcr.RepositoryException
        See Also:
        ObservationManager.setUserData(String)