Package javax.jcr.version

Examples of javax.jcr.version.LabelExistsVersionException


        } else if (isOfType(STATE)) {
            return new InvalidItemStateException(message, this);
        } else if (isOfType(VERSION)) {
            return new VersionException(message, this);
        } else if (isOfType(LABEL_EXISTS)) {
            return new LabelExistsVersionException(message, this);
        } else if (isOfType(LOCK)) {
            return new LockException(message, this);
        } else if (isOfType(UNSUPPORTED)) {
            return new UnsupportedRepositoryOperationException(message, this);
        } else {
View Full Code Here


                String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                        JCR_VERSIONLABELS, oakVersionLabel, "dummy");
                versionStorage.getTree().setProperty(REP_REMOVE_VERSION_LABELS,
                        Collections.singleton(labelPath), Type.PATHS);
            } else {
                throw new LabelExistsVersionException("Version label '"
                        + oakVersionLabel + "' already exists on this version history");
            }
        }
        String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                JCR_VERSIONLABELS, oakVersionLabel, checkNotNull(versionOakName));
View Full Code Here

                String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                        JCR_VERSIONLABELS, oakVersionLabel, "dummy");
                versionStorage.getTree().setProperty(REP_REMOVE_VERSION_LABELS,
                        Collections.singleton(labelPath), Type.PATHS);
            } else {
                throw new LabelExistsVersionException("Version label '"
                        + oakVersionLabel + "' already exists on this version history");
            }
        }
        String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                JCR_VERSIONLABELS, oakVersionLabel, checkNotNull(versionOakName));
View Full Code Here

        } else if (isOfType(STATE)) {
            return new InvalidItemStateException(message, this);
        } else if (isOfType(VERSION)) {
            return new VersionException(message, this);
        } else if (isOfType(LABEL_EXISTS)) {
            return new LabelExistsVersionException(message, this);
        } else if (isOfType(LOCK)) {
            return new LockException(message, this);
        } else if (isOfType(UNSUPPORTED)) {
            return new UnsupportedRepositoryOperationException(message, this);
        } else {
View Full Code Here

        } else if (isOfType(MERGE)) {
            return new InvalidItemStateException(message, this);
        } else if (isOfType(VERSION)) {
            return new VersionException(message, this);
        } else if (isOfType(LABEL_EXISTS)) {
            return new LabelExistsVersionException(message, this);
        } else if (isOfType(LOCK)) {
            return new LockException(message, this);
        } else if (isOfType(UNSUPPORTED)) {
            return new UnsupportedRepositoryOperationException(message, this);
        } else {
View Full Code Here

        PropertyState existing = labels.getProperty(checkNotNull(oakVersionLabel));
        if (existing != null) {
            if (moveLabel) {
                labels.removeProperty(existing.getName());
            } else {
                throw new LabelExistsVersionException("Version label '"
                        + oakVersionLabel + "' already exists on this version history");
            }
        }
        labels.setProperty(oakVersionLabel, versionIdentifier, Type.REFERENCE);
        try {
View Full Code Here

                String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                        JCR_VERSIONLABELS, oakVersionLabel, "dummy");
                versionStorage.getTree().setProperty(REP_REMOVE_VERSION_LABELS,
                        Collections.singleton(labelPath), Type.PATHS);
            } else {
                throw new LabelExistsVersionException("Version label '"
                        + oakVersionLabel + "' already exists on this version history");
            }
        }
        String labelPath = PathUtils.concat(versionHistoryOakRelPath,
                JCR_VERSIONLABELS, oakVersionLabel, checkNotNull(versionOakName));
View Full Code Here

TOP

Related Classes of javax.jcr.version.LabelExistsVersionException

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.