Package org.apache.jackrabbit.spi

Examples of org.apache.jackrabbit.spi.LockInfo


        /**
         * @see Lock#isSessionScoped()
         */
        public boolean isSessionScoped() {
            LockInfo info = getLockInfo();
            return info != null && info.isSessionScoped();
        }
View Full Code Here


        /**
         * @see javax.jcr.lock.Lock#isLockOwningSession()
         */
        public boolean isLockOwningSession(){
            LockInfo info = getLockInfo();
            return info != null && info.isLockOwner();
        }
View Full Code Here

            log.debug("No lock present on node " + saveGetIdString(nodeId, sessionInfo));
            return null;
        }
        if (activeLock.isDeep() && parentId != null) {
            // try if lock is inherited
            LockInfo pLockInfo = getLockInfo(sessionInfo, parentId);
            if (pLockInfo != null) {
                return pLockInfo;
            }
        }
        // no deep lock or parentID == null or lock is not present on parent
View Full Code Here

            log.debug("No lock present on node " + saveGetIdString(nodeId, sessionInfo));
            return null;
        }
        if (activeLock.isDeep() && parentId != null) {
            // try if lock is inherited
            LockInfo pLockInfo = getLockInfo(sessionInfo, parentId);
            if (pLockInfo != null) {
                return pLockInfo;
            }
        }
        // no deep lock or parentID == null or lock is not present on parent
View Full Code Here

            log.debug("No lock present on node " + saveGetIdString(nodeId, sessionInfo));
            return null;
        }
        if (activeLock.isDeep() && parentId != null) {
            // try if lock is inherited
            LockInfo pLockInfo = getLockInfo(sessionInfo, parentId);
            if (pLockInfo != null) {
                return pLockInfo;
            }
        }
        // no deep lock or parentID == null or lock is not present on parent
View Full Code Here

        /**
         * @see OperationVisitor#visit(LockOperation)
         */
        public void visit(LockOperation operation) throws AccessDeniedException, InvalidItemStateException, UnsupportedRepositoryOperationException, LockException, RepositoryException {
            LockInfo lInfo = service.lock(sessionInfo, operation.getNodeId(), operation.isDeep(), operation.isSessionScoped(), operation.getTimeoutHint(), operation.getOwnerHint());
            operation.setLockInfo(lInfo);
        }
View Full Code Here

    }

    private LockState buildLockState(NodeState nodeState) throws RepositoryException {
        NodeId nId = nodeState.getNodeId();
        NodeState lockHoldingState;
        LockInfo lockInfo = wspManager.getLockInfo(nId);
        if (lockInfo == null) {
            // no lock present
            return null;
        }

        NodeId lockNodeId = lockInfo.getNodeId();
        if (lockNodeId.equals(nId)) {
            lockHoldingState = nodeState;
        } else {
            NodeEntry lockedEntry = wspManager.getHierarchyManager().getNodeEntry(lockNodeId);
            try {
View Full Code Here

        /**
         * @see Lock#getLockOwner()
         */
        public String getLockOwner() {
            LockInfo info = getLockInfo();
            if (info != null) {
                return info.getOwner();
            } else {
                return null;
            }
        }
View Full Code Here

        /**
         * @see Lock#isDeep()
         */
        public boolean isDeep() {
            LockInfo info = getLockInfo();
            return info != null && info.isDeep();
        }
View Full Code Here

            if (isSessionScoped()) {
                return null;
            }

            updateLockInfo();
            LockInfo info = getLockInfo();
            if (info != null) {
                return info.getLockToken();
            } else {
                return null;
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.LockInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.