Package com.citytechinc.cq.component.dialog.exception

Examples of com.citytechinc.cq.component.dialog.exception.InvalidComponentClassException


    ClassNotFoundException {

    Component componentAnnotation = (Component) componentClass.getAnnotation(Component.class);

    if (componentAnnotation == null) {
      throw new InvalidComponentClassException("Class provided is not property annotated");
    }
    EditConfigParameters parameters = new EditConfigParameters();

    String title = getTitleForEditConfig(componentClass, componentAnnotation);
    parameters.setActions(getActionsForEditConfig(componentAnnotation, title));
View Full Code Here


    throws InvalidComponentClassException, ClassNotFoundException {

    Component componentAnnotation = (Component) componentClass.getAnnotation(Component.class);

    if (componentAnnotation == null) {
      throw new InvalidComponentClassException();
    }

    ContentParameters parameters = new ContentParameters();

    parameters.setAllowedChildren(getAllowedChildrenForComponent(componentAnnotation));
View Full Code Here

      tabHolder.setTitle(dialogTitle);
      tabsList.add(tabHolder);
    } else {
      for (com.citytechinc.cq.component.annotations.Tab tab : componentAnnotation.tabs()) {
        if (StringUtils.isNotEmpty(tab.title()) && StringUtils.isNotEmpty(tab.path())) {
          throw new InvalidComponentClassException("Tabs can have only a path or a title");
        }
        TabHolder tabHolder = new TabHolder();
        if (StringUtils.isNotEmpty(tab.title())) {
          tabHolder.setTitle(tab.title());
        }
View Full Code Here

    ClassNotFoundException {

    Component componentAnnotation = (Component) componentClass.getAnnotation(Component.class);

    if (componentAnnotation == null) {
      throw new InvalidComponentClassException("Class provided is not property annotated");
    }
    EditConfigParameters parameters = new EditConfigParameters();

    String title = getTitleForEditConfig(componentClass, componentAnnotation);
    parameters.setActions(getActionsForEditConfig(componentAnnotation, title));
View Full Code Here

      tabHolder.setTitle(dialogTitle);
      tabsList.add(tabHolder);
    } else {
      for (com.citytechinc.cq.component.annotations.Tab tab : componentAnnotation.tabs()) {
        if (StringUtils.isNotEmpty(tab.title()) && StringUtils.isNotEmpty(tab.path())) {
          throw new InvalidComponentClassException("Tabs can have only a path or a title");
        }
        TabHolder tabHolder = new TabHolder();
        if (StringUtils.isNotEmpty(tab.title())) {
          tabHolder.setTitle(tab.title());
        }
View Full Code Here

    throws InvalidComponentClassException, ClassNotFoundException {

    Component componentAnnotation = (Component) componentClass.getAnnotation(Component.class);

    if (componentAnnotation == null) {
      throw new InvalidComponentClassException();
    }

    ContentParameters parameters = new ContentParameters();

    parameters.setAllowedChildren(getAllowedChildrenForComponent(componentAnnotation));
View Full Code Here

    throws InvalidComponentClassException, ClassNotFoundException {

    Component componentAnnotation = (Component) componentClass.getAnnotation(Component.class);

    if (componentAnnotation == null) {
      throw new InvalidComponentClassException();
    }

    ContentParameters parameters = new ContentParameters();

    parameters.setAllowedChildren(getAllowedChildrenForComponent(componentAnnotation));
View Full Code Here

TOP

Related Classes of com.citytechinc.cq.component.dialog.exception.InvalidComponentClassException

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.