001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.pluto.descriptors.portlet;
018:
019: import java.util.ArrayList;
020: import java.util.List;
021:
022: /**
023: * Portlet Application Configuration.
024: *
025: * @version $Id: PortletAppDD.java 157475 2005-03-14 22:13:18Z ddewolf $
026: * @since Mar 6, 2005
027: */
028: public class PortletAppDD {
029:
030: /** PortletApplication descriptor version */
031: private String version;
032:
033: /** The defined portlets within the system. */
034: private List portlets = new ArrayList();
035:
036: /** The defined custom modes within the application. */
037: private List customPortletModes = new ArrayList();
038:
039: /** The defined custom states within the application. */
040: private List customWindowStates = new ArrayList();
041:
042: /** The defined userAttributes within the app. */
043: private List userAttributes = new ArrayList();
044:
045: /** The defined constraints */
046: private List securityConstraints = new ArrayList();
047:
048: /**
049: * Default Constructor.
050: */
051: public PortletAppDD() {
052: }
053:
054: public String getVersion() {
055: return version;
056: }
057:
058: public void setVersion(String version) {
059: this .version = version;
060: }
061:
062: /**
063: * Retrieve the portlets which exist within this application.
064: * @return
065: */
066: public List getPortlets() {
067: return portlets;
068: }
069:
070: /**
071: * Set the portlets that exist within this application.
072: * @param portlets
073: */
074: public void setPortlets(List portlets) {
075: this .portlets = portlets;
076: }
077:
078: public List getCustomPortletModes() {
079: return customPortletModes;
080: }
081:
082: public void setCustomPortletModes(List customPortletModes) {
083: this .customPortletModes = customPortletModes;
084: }
085:
086: public List getCustomWindowStates() {
087: return customWindowStates;
088: }
089:
090: public void setCustomWindowStates(List customWindowStates) {
091: this .customWindowStates = customWindowStates;
092: }
093:
094: public List getUserAttributes() {
095: return userAttributes;
096: }
097:
098: public void setUserAttributes(List userAttributes) {
099: this .userAttributes = userAttributes;
100: }
101:
102: public List getSecurityConstraints() {
103: return securityConstraints;
104: }
105:
106: public void setSecurityConstraints(List securityConstraints) {
107: this.securityConstraints = securityConstraints;
108: }
109: }
|