Package org.brixcms.jcr.api

Examples of org.brixcms.jcr.api.JcrPropertyIterator


    public List<String> getSavedVariableKeys() {
        if (hasNode(VARIABLES_NODE_NAME)) {
            JcrNode node = getNode(VARIABLES_NODE_NAME);
            List<String> result = new ArrayList<String>();
            JcrPropertyIterator i = node.getProperties();
            while (i.hasNext()) {
                String name = i.nextProperty().getName();
                // filter out jcr: properties (or other possible brix properties)
                if (!name.contains(":")) {
                    result.add(name);
                }
            }
View Full Code Here


        for (NodePair current : nodes) {
            JcrNode originalNode = current.originalNode;
            JcrNode targetNode = current.targetNode;

            JcrValueFactory vf = targetNode.getSession().getValueFactory();
            JcrPropertyIterator propertyIterator = originalNode.getProperties();
            while (propertyIterator.hasNext()) {
                JcrProperty property = propertyIterator.nextProperty();
                String name = property.getName();
                if (!property.getDefinition().isProtected()) {
                    if (!property.getDefinition().isMultiple()) {
                        JcrValue value = property.getValue();
                        targetNode.setProperty(name, remapReference(value, uuidMap, vf));
View Full Code Here

     * @param result
     */
    private static void checkDependencies(JcrNode node, List<String> paths, JcrWorkspace targetWorkspace,
                                          Map<JcrNode, List<JcrNode>> result) {
        // go through all properties
        JcrPropertyIterator iterator = node.getProperties();
        while (iterator.hasNext()) {
            JcrProperty property = iterator.nextProperty();

            // if it is a reference property
            if (property.getType() == PropertyType.REFERENCE) {
                // if the property has multiple values
                if (property.getDefinition().isMultiple()) {
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.api.JcrPropertyIterator

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.