protected ModeShapeLock( NodeKey lockKey, Map<Name, Property> properties ) { this.lockKey = lockKey; this.lockedNodeKey = lockedNodeKeyFromLockKey(lockKey); this.workspaceName = firstString(properties.get(ModeShapeLexicon.WORKSPACE)); this.lockOwner = firstString(properties.get(JcrLexicon.LOCK_OWNER)); this.deep = firstBoolean(properties.get(JcrLexicon.LOCK_IS_DEEP)); this.sessionScoped = firstBoolean(properties.get(ModeShapeLexicon.IS_SESSION_SCOPED)); this.lockToken = firstString(properties.get(ModeShapeLexicon.LOCK_TOKEN)); this.lockingSessionId = firstString(properties.get(ModeShapeLexicon.LOCKING_SESSION)); this.expiryTime = firstDate(properties.get(ModeShapeLexicon.EXPIRATION_DATE)); }
protected ModeShapeLock( NodeKey lockKey, Map<Name, Property> properties ) { this.lockKey = lockKey; this.lockedNodeKey = lockedNodeKeyFromLockKey(lockKey); this.workspaceName = firstString(properties.get(ModeShapeLexicon.WORKSPACE)); this.lockOwner = firstString(properties.get(JcrLexicon.LOCK_OWNER)); this.deep = firstBoolean(properties.get(JcrLexicon.LOCK_IS_DEEP)); this.sessionScoped = firstBoolean(properties.get(ModeShapeLexicon.IS_SESSION_SCOPED)); this.lockToken = firstString(properties.get(ModeShapeLexicon.LOCK_TOKEN)); this.lockingSessionId = firstString(properties.get(ModeShapeLexicon.LOCKING_SESSION)); this.expiryTime = firstDate(properties.get(ModeShapeLexicon.EXPIRATION_DATE)); }
DateTime expirationDate = firstDate(lockNode.getProperty(ModeShapeLexicon.EXPIRATION_DATE, systemSession)); if (expirationDate.isBefore(now)) {
DateTime expirationDate = firstDate(lockNode.getProperty(ModeShapeLexicon.EXPIRATION_DATE, systemSession)); if (expirationDate.isBefore(now)) {
protected ModeShapeLock( CachedNode lockNode, NodeCache cache ) { this.lockKey = lockNode.getKey(); this.lockedNodeKey = lockedNodeKeyFromLockKey(lockKey); this.workspaceName = firstString(lockNode.getProperty(ModeShapeLexicon.WORKSPACE, cache)); this.lockOwner = firstString(lockNode.getProperty(JcrLexicon.LOCK_OWNER, cache)); this.deep = firstBoolean(lockNode.getProperty(JcrLexicon.LOCK_IS_DEEP, cache)); this.sessionScoped = firstBoolean(lockNode.getProperty(ModeShapeLexicon.IS_SESSION_SCOPED, cache)); this.lockToken = firstString(lockNode.getProperty(ModeShapeLexicon.LOCK_TOKEN, cache)); this.lockingSessionId = firstString(lockNode.getProperty(ModeShapeLexicon.LOCKING_SESSION, cache)); this.expiryTime = firstDate(lockNode.getProperty(ModeShapeLexicon.EXPIRATION_DATE, cache)); }
protected ModeShapeLock( CachedNode lockNode, NodeCache cache ) { this.lockKey = lockNode.getKey(); this.lockedNodeKey = lockedNodeKeyFromLockKey(lockKey); this.workspaceName = firstString(lockNode.getProperty(ModeShapeLexicon.WORKSPACE, cache)); this.lockOwner = firstString(lockNode.getProperty(JcrLexicon.LOCK_OWNER, cache)); this.deep = firstBoolean(lockNode.getProperty(JcrLexicon.LOCK_IS_DEEP, cache)); this.sessionScoped = firstBoolean(lockNode.getProperty(ModeShapeLexicon.IS_SESSION_SCOPED, cache)); this.lockToken = firstString(lockNode.getProperty(ModeShapeLexicon.LOCK_TOKEN, cache)); this.lockingSessionId = firstString(lockNode.getProperty(ModeShapeLexicon.LOCKING_SESSION, cache)); this.expiryTime = firstDate(lockNode.getProperty(ModeShapeLexicon.EXPIRATION_DATE, cache)); }