Package org.apache.jackrabbit.oak.jcr.delegate

Examples of org.apache.jackrabbit.oak.jcr.delegate.PropertyDelegate


    @Override
    public void removeMixin(final String mixinName) throws RepositoryException {
        perform(new ItemWriteOperation<Void>() {
            @Override
            public Void perform() throws RepositoryException {
                PropertyDelegate propDlg = dlg.getPropertyOrNull(JcrConstants.JCR_MIXINTYPES);
                String oakName = getOakName(mixinName);
                if (propDlg == null || !ImmutableSet.copyOf(propDlg.getPropertyState().getValue(Type.NAMES)).contains(oakName)) {
                    throw new NoSuchNodeTypeException("Mixin " + mixinName +" not contained in " + this);
                }

                // TODO: implement #removeMixin (OAK-767)
                throw new ConstraintViolationException();
View Full Code Here


                }

                NodeDelegate parent = dlg.getParent();
                while (parent != null) {
                    if (parent.getPropertyOrNull(lockOwner) != null) {
                        PropertyDelegate isDeep = parent.getPropertyOrNull(lockIsDeep);
                        if (isDeep != null && !isDeep.isArray()) {
                            if (isDeep.getBoolean()) {
                                return true;
                            }
                        }
                    }
                    parent = parent.getParent();
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.jcr.delegate.PropertyDelegate

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.