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

com.flowcentraltech.flowcentral.configuration.xml.AppConfig Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
/*
 * Copyright 2021-2022 FlowCentral Technologies Limited.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.flowcentraltech.flowcentral.configuration.xml;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.tcdng.unify.core.util.xml.MarshalFalseToNullXmlAdapter;
import com.tcdng.unify.core.util.xml.MarshalTrueToNullXmlAdapter;

/**
 * Application configuration.
 * 
 * @author FlowCentral Technologies Limited
 * @since 1.0
 */
@XmlRootElement(name = "application")
public class AppConfig extends BaseNameConfig {

    private String module;

    private int displayIndex;

    private Boolean developable;

    private Boolean menuAccess;

    private Boolean allowSecondaryTenants;

    private AppReportsConfig reportsConfig;

    private AppNotifTemplatesConfig notifTemplatesConfig;

    private AppWorkflowsConfig workflowsConfig;

    private AppWorkflowWizardsConfig workflowWizardsConfig;
    
    private AppletsConfig appletsConfig;
    
    private WidgetTypesConfig widgetTypesConfig;

    private RefsConfig refsConfig;

    private AppEntitiesConfig entitiesConfig;

    private AppTablesConfig tablesConfig;

    private WfChannelsConfig wfChannelsConfig;
    
    private AppFormsConfig formsConfig;

    private AppAssignmentPagesConfig assignmentPagesConfig;

    private PropertyListsConfig propertyListsConfig;

    private PropertyRulesConfig propertyRulesConfig;

    private AppChartsConfig chartsConfig;

    private AppDashboardsConfig dashboardsConfig;

    private SuggestionTypesConfig suggestionTypesConfig;

    public AppConfig() {
        this.menuAccess = Boolean.TRUE;
        this.developable = Boolean.FALSE;
        this.allowSecondaryTenants = Boolean.FALSE;
   }
    
    public String getModule() {
        return module;
    }

    @XmlAttribute(required = true)
    public void setModule(String module) {
        this.module = module;
    }

    public int getDisplayIndex() {
        return displayIndex;
    }

    @XmlAttribute
    public void setDisplayIndex(int displayIndex) {
        this.displayIndex = displayIndex;
    }

    public Boolean getDevelopable() {
        return developable;
    }

    @XmlJavaTypeAdapter(MarshalFalseToNullXmlAdapter.class)
    @XmlAttribute
    public void setDevelopable(Boolean developable) {
        this.developable = developable;
    }

    public Boolean getMenuAccess() {
        return menuAccess;
    }

    @XmlJavaTypeAdapter(MarshalTrueToNullXmlAdapter.class)
    @XmlAttribute
    public void setMenuAccess(Boolean menuAccess) {
        this.menuAccess = menuAccess;
    }

    public Boolean getAllowSecondaryTenants() {
        return allowSecondaryTenants;
    }

    @XmlJavaTypeAdapter(MarshalFalseToNullXmlAdapter.class)
    @XmlAttribute
    public void setAllowSecondaryTenants(Boolean allowSecondaryTenants) {
        this.allowSecondaryTenants = allowSecondaryTenants;
    }

    public AppReportsConfig getReportsConfig() {
        return reportsConfig;
    }

    @XmlElement(name = "reports")
    public void setReportsConfig(AppReportsConfig reportsConfig) {
        this.reportsConfig = reportsConfig;
    }

    public AppNotifTemplatesConfig getNotifTemplatesConfig() {
        return notifTemplatesConfig;
    }

    @XmlElement(name = "notifTemplates")
    public void setNotifTemplatesConfig(AppNotifTemplatesConfig notifTemplatesConfig) {
        this.notifTemplatesConfig = notifTemplatesConfig;
    }

    public AppWorkflowsConfig getWorkflowsConfig() {
        return workflowsConfig;
    }

    @XmlElement(name = "workflows")
    public void setWorkflowsConfig(AppWorkflowsConfig workflowsConfig) {
        this.workflowsConfig = workflowsConfig;
    }

    public AppWorkflowWizardsConfig getWorkflowWizardsConfig() {
        return workflowWizardsConfig;
    }

    @XmlElement(name = "workflow-wizards")
    public void setWorkflowWizardsConfig(AppWorkflowWizardsConfig workflowWizardsConfig) {
        this.workflowWizardsConfig = workflowWizardsConfig;
    }

    public AppletsConfig getAppletsConfig() {
        return appletsConfig;
    }

    @XmlElement(name = "applets")
    public void setAppletsConfig(AppletsConfig appletsConfig) {
        this.appletsConfig = appletsConfig;
    }

    public WidgetTypesConfig getWidgetTypesConfig() {
        return widgetTypesConfig;
    }

    @XmlElement(name = "widgetTypes")
    public void setWidgetTypesConfig(WidgetTypesConfig widgetTypesConfig) {
        this.widgetTypesConfig = widgetTypesConfig;
    }

    public RefsConfig getRefsConfig() {
        return refsConfig;
    }

    @XmlElement(name = "references")
    public void setRefsConfig(RefsConfig refsConfig) {
        this.refsConfig = refsConfig;
    }

    public AppEntitiesConfig getEntitiesConfig() {
        return entitiesConfig;
    }

    @XmlElement(name = "entities")
    public void setEntitiesConfig(AppEntitiesConfig entitiesConfig) {
        this.entitiesConfig = entitiesConfig;
    }

    public AppTablesConfig getTablesConfig() {
        return tablesConfig;
    }

    @XmlElement(name = "tables")
    public void setTablesConfig(AppTablesConfig tablesConfig) {
        this.tablesConfig = tablesConfig;
    }

    public AppFormsConfig getFormsConfig() {
        return formsConfig;
    }

    @XmlElement(name = "forms")
    public void setFormsConfig(AppFormsConfig formsConfig) {
        this.formsConfig = formsConfig;
    }

    public WfChannelsConfig getWfChannelsConfig() {
        return wfChannelsConfig;
    }

    @XmlElement(name = "workflow-channels")
    public void setWfChannelsConfig(WfChannelsConfig wfChannelsConfig) {
        this.wfChannelsConfig = wfChannelsConfig;
    }

    public AppAssignmentPagesConfig getAssignmentPagesConfig() {
        return assignmentPagesConfig;
    }

    @XmlElement(name = "assignmentPages")
    public void setAssignmentPagesConfig(AppAssignmentPagesConfig assignmentPagesConfig) {
        this.assignmentPagesConfig = assignmentPagesConfig;
    }

    public PropertyListsConfig getPropertyListsConfig() {
        return propertyListsConfig;
    }

    @XmlElement(name = "propertyLists")
    public void setPropertyListsConfig(PropertyListsConfig propertyListsConfig) {
        this.propertyListsConfig = propertyListsConfig;
    }

    public PropertyRulesConfig getPropertyRulesConfig() {
        return propertyRulesConfig;
    }

    @XmlElement(name = "propertyRules")
    public void setPropertyRulesConfig(PropertyRulesConfig propertyRulesConfig) {
        this.propertyRulesConfig = propertyRulesConfig;
    }

    public AppChartsConfig getChartsConfig() {
        return chartsConfig;
    }

    @XmlElement(name = "charts")
    public void setChartsConfig(AppChartsConfig chartsConfig) {
        this.chartsConfig = chartsConfig;
    }

    public AppDashboardsConfig getDashboardsConfig() {
        return dashboardsConfig;
    }

    @XmlElement(name = "dashboards")
    public void setDashboardsConfig(AppDashboardsConfig dashboardsConfig) {
        this.dashboardsConfig = dashboardsConfig;
    }

    public SuggestionTypesConfig getSuggestionTypesConfig() {
        return suggestionTypesConfig;
    }

    @XmlElement(name = "suggestionTypes")
    public void setSuggestionTypesConfig(SuggestionTypesConfig suggestionTypesConfig) {
        this.suggestionTypesConfig = suggestionTypesConfig;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy