001: /*
002: * Copyright 2001-2006 C:1 Financial Services GmbH
003: *
004: * This software is free software; you can redistribute it and/or
005: * modify it under the terms of the GNU Lesser General Public
006: * License Version 2.1, as published by the Free Software Foundation.
007: *
008: * This software is distributed in the hope that it will be useful,
009: * but WITHOUT ANY WARRANTY; without even the implied warranty of
010: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011: * Lesser General Public License for more details.
012: *
013: * You should have received a copy of the GNU Lesser General Public
014: * License along with this library; if not, write to the Free Software
015: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
016: */
017:
018: package de.finix.contelligent.xml.elements;
019:
020: import java.util.ArrayList;
021: import java.util.Collection;
022: import java.util.Collections;
023:
024: import de.finix.contelligent.ComponentPath;
025:
026: public class ViewConfigurationElement {
027:
028: String root = "/";
029: ComponentPath rootCp = new ComponentPath("/");
030: String rootGUI = "";
031: String allowedTypes = "";
032: String favoriteTypes = "";
033: boolean editInWorkflowOnly = false;
034: boolean allowCommit = false;
035: boolean forbidBlueprintDefinition = true;
036:
037: public void setRoot(String root) {
038: if (root.equals("")) {
039: root = "/";
040: }
041: this .root = root;
042: this .rootCp = new ComponentPath(root);
043: }
044:
045: public void setRootGUI(String rootGUI) {
046: this .rootGUI = rootGUI;
047: }
048:
049: public void setAllowedTypes(String allowedTypes) {
050: this .allowedTypes = allowedTypes;
051: }
052:
053: public void setFavoriteTypes(String favoriteTypes) {
054: this .favoriteTypes = favoriteTypes;
055: }
056:
057: public void setEditInWorkflowOnly(boolean editInWorkflowOnly) {
058: this .editInWorkflowOnly = editInWorkflowOnly;
059: }
060:
061: public void setAllowCommit(boolean allowCommit) {
062: this .allowCommit = allowCommit;
063: }
064:
065: public void setForbidBlueprintDefinition(
066: boolean forbidBlueprintDefinition) {
067: this .forbidBlueprintDefinition = forbidBlueprintDefinition;
068: }
069:
070: public String getRoot() {
071: return root;
072: }
073:
074: public ComponentPath getRootCp() {
075: return rootCp;
076: }
077:
078: public String getRootGUI() {
079: return rootGUI;
080: }
081:
082: public String getAllowedTypes() {
083: return allowedTypes;
084: }
085:
086: public String getFavoriteTypes() {
087: return favoriteTypes;
088: }
089:
090: public boolean getEditInWorkflowOnly() {
091: return editInWorkflowOnly;
092: }
093:
094: public boolean getAllowCommit() {
095: return allowCommit;
096: }
097:
098: public boolean getForbidBlueprintDefinition() {
099: return forbidBlueprintDefinition;
100: }
101:
102: }
|