All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.citytechinc.cq.component.touchuidialog.container.SectionParameters Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package com.citytechinc.cq.component.touchuidialog.container;

import com.citytechinc.cq.component.touchuidialog.TouchUIDialogElement;
import com.citytechinc.cq.component.xml.XmlElement;
import org.codehaus.plexus.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class SectionParameters extends ContainerParameters {

    private String title;

    private String path;

    private TouchUIDialogElement renderCondition;

    private boolean showOnCreate;

    private boolean hideOnEdit;

    private String nodeName;

    private String orderBefore;

    @Override
    public String getResourceType() {
        if (StringUtils.isNotEmpty(path)) {
            return Section.INCLUDE_RESOURCE_TYPE;
        } else {
            return Section.RESOURCE_TYPE;
        }
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public TouchUIDialogElement getRenderCondition() {
        return renderCondition;
    }

    public void setRenderCondition(TouchUIDialogElement renderCondition) {
        this.renderCondition = renderCondition;
    }

    @Override
    public List getContainedElements() {
        List elements = new ArrayList();

        if (super.getContainedElements() != null) {
            elements.addAll(super.getContainedElements());
        }

        return elements;
    }

    public boolean isShowOnCreate() {
        return showOnCreate;
    }

    public void setShowOnCreate(boolean showOnCreate) {
        this.showOnCreate = showOnCreate;
    }

    public boolean isHideOnEdit() {
        return hideOnEdit;
    }

    public void setHideOnEdit(boolean hideOnEdit) {
        this.hideOnEdit = hideOnEdit;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public String getOrderBefore() {
        return orderBefore;
    }

    public void setOrderBefore(String orderBefore) {
        this.orderBefore = orderBefore;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy