KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > portlet > metadata > PortletApplicationMetaData


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.portlet.metadata;
10
11 import java.util.LinkedHashMap JavaDoc;
12 import java.util.LinkedList JavaDoc;
13 import java.util.List JavaDoc;
14 import java.util.Map JavaDoc;
15
16 import javax.servlet.ServletContext JavaDoc;
17
18 import org.jboss.portal.server.metadata.ApplicationMetaData;
19
20 /**
21  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
22  * @version $Revision: 1.2 $
23  */

24 public class PortletApplicationMetaData extends ApplicationMetaData
25 {
26
27    private String JavaDoc version;
28    private Map JavaDoc portletModes;
29    private Map JavaDoc windowStates;
30    private Map JavaDoc userAttributes;
31    private List JavaDoc securityConstraints;
32
33    public PortletApplicationMetaData(String JavaDoc name,
34                                      ServletContext JavaDoc servletContext,
35                                      String JavaDoc contextPath,
36                                      ClassLoader JavaDoc classLoader)
37    {
38       super(name, servletContext, contextPath, classLoader);
39       this.portletModes = new LinkedHashMap JavaDoc();
40       this.windowStates = new LinkedHashMap JavaDoc();
41       this.userAttributes = new LinkedHashMap JavaDoc();
42       this.securityConstraints = new LinkedList JavaDoc();
43    }
44
45    public String JavaDoc getVersion()
46    {
47       return version;
48    }
49
50    public void setVersion(String JavaDoc version)
51    {
52       this.version = version;
53    }
54
55    public Map JavaDoc getPortletModes()
56    {
57       return portletModes;
58    }
59
60    public Map JavaDoc getWindowStates()
61    {
62       return windowStates;
63    }
64
65    public Map JavaDoc getUserAttributes()
66    {
67       return userAttributes;
68    }
69
70    public List JavaDoc getSecurityConstraints()
71    {
72       return securityConstraints;
73    }
74 }
75
Popular Tags