Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.PersistenceException


        Resource startingResource = null;
        while (startingResource == null) {
            if (startingResourcePath.equals("/")) {
                startingResource = resolver.getResource("/");
                if (startingResource == null){
                  throw new PersistenceException("Access denied for root resource, resource can't be created: " + path);
                }
            } else if (resolver.getResource(startingResourcePath) != null) {
                startingResource = resolver.getResource(startingResourcePath);
                updateNodeType(resolver, startingResourcePath, reqProperties, changes, versioningConfiguration);
                updateMixins(resolver, startingResourcePath, reqProperties, changes, versioningConfiguration);
View Full Code Here


                    node.setProperty(key, (String)null);
                }
            }
            node.save();
        } catch (RepositoryException re) {
            throw new PersistenceException("Unable to persist changes.", re);
        }
        this.reset();
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.api.resource.PersistenceException

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.