KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > impl > config > PortletContainer


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portletcontainer.impl.config;
6
7 import java.util.* ;
8 /**
9  * Jul 7, 2004
10  * @author: Tuan Nguyen
11  * @email: tuan08@users.sourceforge.net
12  * @version: $Id: PortletContainer.java,v 1.2 2004/10/26 18:47:54 benjmestrallet Exp $
13  */

14 public class PortletContainer {
15     private Global global ;
16     private SharedSession sharedSession ;
17     private ObjectPool objectPool ;
18     private Cache cache ;
19     private List supportedContent ;
20     private List customMode ;
21     private List customWindowState ;
22     private List properties ;
23
24   private DelegatedBundle bundle;
25     
26   public PortletContainer() {
27     supportedContent = new ArrayList() ;
28     customMode = new ArrayList() ;
29     customWindowState = new ArrayList() ;
30     properties = new ArrayList() ;
31   }
32     
33     public Cache getCache() { return cache; }
34     public void setCache(Cache cache) { this.cache = cache; }
35     
36     public List getCustomMode() {return customMode; }
37     public void setCustomMode(List list) { this.customMode = list;}
38   public void addCustomMode(CustomMode mode) {customMode.add(mode);}
39     
40     public List getCustomWindowState() {return customWindowState; }
41     public void setCustomWindowState(List list) { customWindowState = list; }
42   public void addCustomWindowState(CustomWindowState state) {
43     customWindowState.add(state);
44   }
45     
46     public Global getGlobal() { return global; }
47     public void setGlobal(Global global) { this.global = global;}
48     
49     public ObjectPool getObjectPool() { return objectPool;}
50     public void setObjectPool(ObjectPool op) { objectPool = op; }
51     
52     public List getProperties() { return properties;}
53     public void setProperties(List list) {this.properties = list; }
54   public void addProperties(Properties props) {properties.add(props) ; }
55     
56     public SharedSession getSharedSession() { return sharedSession; }
57     public void setSharedSession(SharedSession ss) { sharedSession = ss; }
58
59   
60   public void setDelegatedBundle(DelegatedBundle bundle) {
61     this.bundle = bundle;
62   }
63   public DelegatedBundle getDelegatedBundle() {
64     return bundle;
65   }
66   
67     public List getSupportedContent() { return supportedContent;}
68     public void setSupportedContent(List list) {supportedContent = list; }
69   public void addSupportedContent(SupportedContent supported) {
70     supportedContent.add(supported);
71   }
72
73 }
Popular Tags