Package org.apache.jackrabbit.oak.api.Tree

Examples of org.apache.jackrabbit.oak.api.Tree.Status


        return parent == null;
    }

    @Override
    public Status getStatus() throws InvalidItemStateException {
        Status propertyStatus = getParentTree().getPropertyStatus(getName());
        if (propertyStatus == null) {
            throw new InvalidItemStateException("Property is stale");
        }

        return propertyStatus;
View Full Code Here


    public Status getStatus() throws InvalidItemStateException {
        Tree parent = getParentTree();
        if (parent == null) {
            return Status.EXISTING;  // FIXME: return correct status for root. See also OAK-161
        } else {
            Status childStatus = parent.getChildStatus(getName());
            if (childStatus == null) {
                throw new InvalidItemStateException("Node is stale");
            }
            return childStatus;
        }
View Full Code Here

        return parent == null;
    }

    @Override
    public Status getStatus() throws InvalidItemStateException {
        Status propertyStatus = getParentTree().getPropertyStatus(getName());
        if (propertyStatus == null) {
            throw new InvalidItemStateException("Property is stale");
        }

        return propertyStatus;
View Full Code Here

    /**
     * Determine whether this item is stale
     * @return  {@code true} iff stale
     */
    public boolean isStale() {
        Status status = getLocationOrNull().getStatus();
        return status == Status.REMOVED || status == null;
    }
View Full Code Here

     * Get the status of this item
     * @return  {@link Status} of this item
     */
    @Nonnull
    public Status getStatus() throws InvalidItemStateException {
        Status status = getLocation().getStatus();
        if (status == null) {
            throw new InvalidItemStateException();
        }
        return status;
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.api.Tree.Status

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.