ContelligentElement.java :  » Content-Management-System » contelligent » de » finix » contelligent » xml » elements » Java Open Source

Java Open Source » Content Management System » contelligent 
contelligent » de » finix » contelligent » xml » elements » ContelligentElement.java
/*
 * Copyright 2001-2006 C:1 Financial Services GmbH
 *
 * This software is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License Version 2.1, as published by the Free Software Foundation.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
 */

package de.finix.contelligent.xml.elements;

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

public class ContelligentElement {
    public static final String DEFAULT_SSO_MAPPING = "scms";

    private List packagesURL;

    private SecurityElement securityElement;

    private String manager, mode, rootManagerName, cacheSize, transactionTimeout, clientInitialMemory, clientMaxMemory,
            supportSecureComponents, defaultEncoding, parameterEncoding, httpPort, httpsPort;

    private String servletMapping;

    private HashSet publicDirs = new HashSet();

    private HashSet privateDirs = new HashSet();

    private HashSet autoloadDirs = new HashSet();

    private List multicastListeners = new ArrayList();

    private List multicastSenders = new ArrayList();

    private List udpListeners = new ArrayList();

    private List udpSenders = new ArrayList();

    private List dbListeners = new ArrayList();

    private List dbSenders = new ArrayList();

    private String workflow = "false";

    private String systemIndex = "false";

    private String role = "edit";

    private RevisionElement revisionElement;

    private ErrorMappingElement errorMapping;

    private String importMode = "strict";

    private boolean secureClient = false;

    private boolean allowPush = true;

    private String ssoServletMapping = DEFAULT_SSO_MAPPING;

    private int maxEnvironments = 10;

    private int historyLimit = 10;

    private String smallBinaryThreshold = null;

    public String getImportMode() {
        return importMode;
    }

    public void setImportMode(String importMode) {
        this.importMode = importMode;
    }

    public ErrorMappingElement getErrorMapping() {
        return errorMapping;
    }

    public void setErrorMapping(ErrorMappingElement errorMapping) {
        this.errorMapping = errorMapping;
    }

    public ContelligentElement() {
        packagesURL = new ArrayList();
    }

    public void setServletMapping(String servletMapping) {
        if (servletMapping != null && servletMapping.trim().length() != 0) {
            this.servletMapping = servletMapping;
        } else {
            this.servletMapping = null;
        }
    }

    public String getServletMapping() {
        return servletMapping;
    }

    public void setSsoServletMapping(String ssoServletMapping) {
        if (ssoServletMapping != null && ssoServletMapping.trim().length() != 0) {
            this.ssoServletMapping = ssoServletMapping;
        } else {
            this.ssoServletMapping = DEFAULT_SSO_MAPPING;
        }
    }

    public String getSsoServletMapping() {
        return ssoServletMapping;
    }

    public String getWorkflow() {
        return workflow;
    }

    public void setWorkflow(String workflow) {
        this.workflow = workflow;
    }

    public String getSystemIndex() {
        return systemIndex;
    }

    public void setSystemIndex(String systemIndex) {
        this.systemIndex = systemIndex;
    }

    public void setRevision(RevisionElement revisionElement) {
        this.revisionElement = revisionElement;
    }

    public RevisionElement getRevision() {
        return revisionElement;
    }

    public void setManager(String s) {
        manager = s;
    }

    public String getManager() {
        return manager;
    }

    public void setMode(String s) {
        mode = s;
    }

    public String getMode() {
        return mode;
    }

    public void setRootManagerName(String s) {
        rootManagerName = s;
    }

    public String getRootManagerName() {
        return rootManagerName;
    }

    public void setCacheSize(String s) {
        cacheSize = s;
    }

    public String getCacheSize() {
        return cacheSize;
    }

    public void setSmallBinaryThreshold(String s) {
        smallBinaryThreshold = s;
    }

    public String getSmallBinaryThreshold() {
        return smallBinaryThreshold;
    }

    public void setTransactionTimeout(String s) {
        transactionTimeout = s;
    }

    public String getTransactionTimeout() {
        return transactionTimeout;
    }

    public void setClientInitialMemory(String s) {
        clientInitialMemory = s;
    }

    public String getClientInitialMemory() {
        return clientInitialMemory;
    }

    public void setClientMaxMemory(String s) {
        clientMaxMemory = s;
    }

    public String getClientMaxMemory() {
        return clientMaxMemory;
    }

    public void setSupportSecureComponents(String s) {
        supportSecureComponents = s;
    }

    public String getSupportSecureComponents() {
        return supportSecureComponents;
    }

    public void setDefaultEncoding(String s) {
        defaultEncoding = s;
    }

    public String getDefaultEncoding() {
        return defaultEncoding;
    }

    public void setParameterEncoding(String s) {
        parameterEncoding = s;
    }

    public String getParameterEncoding() {
        return parameterEncoding;
    }

    public void setHttpPort(String s) {
        httpPort = s;
    }

    public String getHttpPort() {
        return httpPort;
    }

    public void setHttpsPort(String s) {
        httpsPort = s;
    }

    public String getHttpsPort() {
        return httpsPort;
    }

    public void setSecurityElement(SecurityElement securityElement) {
        this.securityElement = securityElement;
    }

    public SecurityElement getSecurityElement() {
        return securityElement;
    }

    public void addPackageURL(String pckg) {
        packagesURL.add(pckg);
    }

    public List getPackagesURL() {
        return packagesURL;
    }

    public void addPublic(String dir) {
        if (dir.endsWith("/")) {
            publicDirs.add(dir);
        } else {
            publicDirs.add(dir + "/");
        }
    }

    public HashSet getPublicDirs() {
        return publicDirs;
    }

    public void addPrivate(String dir) {
        if (dir.endsWith("/")) {
            privateDirs.add(dir);
        } else {
            privateDirs.add(dir + "/");
        }
    }

    public HashSet getPrivateDirs() {
        return privateDirs;
    }

    public void addAutoload(String dir) {
        if (dir.endsWith("/")) {
            autoloadDirs.add(dir);
        } else {
            autoloadDirs.add(dir + "/");
        }
    }

    public HashSet getAutoloadDirs() {
        return autoloadDirs;
    }

    public void addMulticastListener(UDPMulticastElement listener) {
        multicastListeners.add(listener);
    }

    public void addMulticastSender(UDPMulticastElement listener) {
        multicastSenders.add(listener);
    }

    public List getMulticastListeners() {
        return multicastListeners;
    }

    public List getMulticastSenders() {
        return multicastSenders;
    }

    public void addUDPListener(UDPMulticastElement listener) {
        udpListeners.add(listener);
    }

    public void addUDPSender(UDPMulticastElement listener) {
        udpSenders.add(listener);
    }

    public List getUDPListeners() {
        return udpListeners;
    }

    public List getUDPSenders() {
        return udpSenders;
    }

    public void addDBListener(DBElement listener) {
        dbListeners.add(listener);
    }

    public void addDBSender(DBElement listener) {
        dbSenders.add(listener);
    }

    public List getDBListeners() {
        return dbListeners;
    }

    public List getDBSenders() {
        return dbSenders;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public void setHistory(String maxEnvironments, String historyLimit) {
        this.maxEnvironments = Integer.parseInt(maxEnvironments);
        this.historyLimit = Integer.parseInt(historyLimit);
    }

    public int getMaxEnvironments() {
        return maxEnvironments;
    }

    public int getHistoryLimit() {
        return historyLimit;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.