Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.ResourceResolver.map()


        final ResourceResolver resourceResolver = request.getResourceResolver();
        final Resource resource = request.getResource();
        if (resource.getName().equals(JcrConstants.JCR_CONTENT)) {

            // on a jcr content node, return the parent node
            path = resourceResolver.map(request, resource.getParent().getPath());

        } else {

            // on a non-jcr content node, just return the resource's path
            path = resourceResolver.map(request, resource.getPath());
View Full Code Here


            path = resourceResolver.map(request, resource.getParent().getPath());

        } else {

            // on a non-jcr content node, just return the resource's path
            path = resourceResolver.map(request, resource.getPath());

        }

        return path;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.