Package com.day.cq.wcm.api.components

Examples of com.day.cq.wcm.api.components.ComponentManager


        int componentsWithoutIcons = 0;

        ResourceResolver resolver = null;
        try {
            resolver = rrFactory.getAdministrativeResourceResolver(null);
            ComponentManager compManager = resolver.adaptTo(ComponentManager.class);

            Collection<Component> components = compManager.getComponents();
            for (Component component : components) {
                String path = component.getPath();
                if (StringUtils.startsWithAny(path, paths)) {
                    String iconPath = component.getIconPath();
View Full Code Here


  private ComponentConfiguration readComponentConfiguration(SlingHttpServletRequest request) {
    ComponentConfiguration componentConfiguration = new ComponentConfiguration(logger);

    if ((resourceType != null) && (path != null)) {
      ComponentManager componentManager = request.getResourceResolver().adaptTo(ComponentManager.class);
      if (componentManager != null) {
        Component component = componentManager.getComponent(resourceType);
        if (component != null) {
          componentConfiguration.readFromComponent(component);
        } else {
          logger.warn("Cannot read component configuration for '{}' at {}", resourceType, path);
        }
View Full Code Here

  private ComponentConfiguration readComponentConfiguration(SlingHttpServletRequest request) {
    ComponentConfiguration componentConfiguration = new ComponentConfiguration(logger);

    if ((resourceType != null) && (path != null)) {
      ComponentManager componentManager = request.getResourceResolver().adaptTo(ComponentManager.class);
      if (componentManager != null) {
        Component component = componentManager.getComponent(resourceType);
        if (component != null) {
          componentConfiguration.readFromComponent(component);
        } else {
          logger.warn("Cannot read component configuration for '{}' at {}", resourceType, path);
        }
View Full Code Here

TOP

Related Classes of com.day.cq.wcm.api.components.ComponentManager

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.