Package com.day.cq.commons.inherit

Examples of com.day.cq.commons.inherit.HierarchyNodeInheritanceValueMap


        }
        return null;
    }

    private com.day.cq.wcm.webservicesupport.Configuration findTwitterConfiguration(Page page) {
        final HierarchyNodeInheritanceValueMap pageProperties = new HierarchyNodeInheritanceValueMap(
                page.getContentResource());
        final String[] services = pageProperties.getInherited(ConfigurationConstants.PN_CONFIGURATIONS,
                new String[0]);
        final com.day.cq.wcm.webservicesupport.Configuration cfg = configurationManager.getConfiguration(
                CLOUD_SERVICE_NAME, services);
        return cfg;
    }
View Full Code Here


        if (parent != null) {
            // Get content resource of the page
            final Resource parentContentResource = parent.getChild("jcr:content");

            if (parentContentResource != null) {
                final InheritanceValueMap pageProperties = new HierarchyNodeInheritanceValueMap(parentContentResource);
                errorsPath = pageProperties.getInherited(ERROR_PAGE_PROPERTY, String.class);

                // could not find inherited property
                if (errorsPath == null) {
                    for (final Map.Entry<String, String> mapPage : pathMap.entrySet()) {
                        if (errorResourcePath.startsWith(mapPage.getKey())) {
View Full Code Here

     * @return the Page Properties as a HierarchyNodeInheritanceValueMap
     */
    protected ValueMap getRequestPageProperties() {
        if (this.requestPageProperties == null) {
            if (this.getRequestPage() != null) {
                this.requestPageProperties = new HierarchyNodeInheritanceValueMap(this.getRequestPage().getContentResource());
            }
        }

        return this.requestPageProperties;
    }
View Full Code Here

     * @return the Page Properties as a HierarchyNodeInheritanceValueMap
     */
    protected ValueMap getResourcePageProperties() {
        if (this.resourcePageProperties == null) {
            if (this.getResourcePage() != null) {
                this.resourcePageProperties = new HierarchyNodeInheritanceValueMap(this.getResourcePage().getContentResource());
            }
        }

        return this.resourcePageProperties;
    }
View Full Code Here

TOP

Related Classes of com.day.cq.commons.inherit.HierarchyNodeInheritanceValueMap

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.