View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.jetspeed.portlets.pam.beans;
18  
19  import java.util.Collection;
20  
21  import javax.portlet.PortletMode;
22  import javax.portlet.WindowState;
23  
24  import org.apache.jetspeed.om.common.GenericMetadata;
25  import org.apache.jetspeed.om.common.portlet.PortletApplication;
26  import org.apache.pluto.om.common.ObjectID;
27  import org.apache.pluto.om.portlet.PortletDefinition;
28  import org.apache.pluto.om.portlet.PortletDefinitionList;
29  import org.apache.pluto.om.servlet.WebApplicationDefinition;
30  
31  /***
32   * This portlet is a browser over all the portlet applications in the system.
33   *
34   * @author <a href="mailto:jford@apache.com">Jeremy Ford</a>
35   * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
36   * @version $Id: PortletApplicationBean.java 348264 2005-11-22 22:06:45Z taylor $
37   */
38  public class PortletApplicationBean implements PortletApplication
39  {
40      PortletApplication pa;
41      
42      
43      public PortletApplicationBean(PortletApplication pa)
44      {
45          this.pa = pa;
46      }
47      
48      /* (non-Javadoc)
49       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getMetadata()
50       */
51      public GenericMetadata getMetadata()
52      {
53          return pa.getMetadata();
54      }
55  
56      /* (non-Javadoc)
57       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getName()
58       */
59      public String getName()
60      {
61          return pa.getName();
62      }
63  
64      /* (non-Javadoc)
65       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getPortletDefinitions()
66       */
67      public Collection getPortletDefinitions()
68      {
69          return pa.getPortletDefinitions();
70      }
71  
72      /* (non-Javadoc)
73       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getPortletDefinitionByName(java.lang.String)
74       */
75      public PortletDefinition getPortletDefinitionByName(String name)
76      {
77          return pa.getPortletDefinitionByName(name);
78      }
79  
80      /* (non-Javadoc)
81       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getUserAttributeRefs()
82       */
83      public Collection getUserAttributeRefs()
84      {
85          return pa.getUserAttributeRefs();
86      }
87  
88      /* (non-Javadoc)
89       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getUserAttributes()
90       */
91      public Collection getUserAttributes()
92      {
93          return pa.getUserAttributes();
94      }
95  
96      /* (non-Javadoc)
97       * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getApplicationIdentifier()
98       */
99      public String getApplicationIdentifier()
100     {
101         return pa.getApplicationIdentifier();
102     }
103 
104     /* (non-Javadoc)
105      * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getDescription()
106      */
107     public String getDescription()
108     {
109         return pa.getDescription();
110     }
111 
112     /* (non-Javadoc)
113      * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getApplicationType()
114      */
115     public int getApplicationType()
116     {
117         return pa.getApplicationType();
118     }
119 
120     /* (non-Javadoc)
121      * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getId()
122      */
123     public ObjectID getId()
124     {
125         return pa.getId();
126     }
127 
128     /* (non-Javadoc)
129      * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getVersion()
130      */
131     public String getVersion()
132     {
133         return pa.getVersion();
134     }
135 
136     /* (non-Javadoc)
137      * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getPortletDefinitionList()
138      */
139     public PortletDefinitionList getPortletDefinitionList()
140     {
141         return pa.getPortletDefinitionList();
142     }
143 
144     /* (non-Javadoc)
145      * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getWebApplicationDefinition()
146      */
147     public WebApplicationDefinition getWebApplicationDefinition()
148     {
149         return pa.getWebApplicationDefinition();
150     }
151 
152     public Collection getJetspeedServices()
153     {
154         return pa.getJetspeedServices();
155     }
156 
157     public Collection getCustomPortletModes()
158     {
159         return pa.getCustomPortletModes();
160     }
161 
162     public Collection getCustomWindowStates()
163     {
164         return pa.getCustomWindowStates();
165     }
166 
167     public Collection getSupportedPortletModes()
168     {
169         return pa.getSupportedPortletModes();
170     }
171 
172     public Collection getSupportedWindowStates()
173     {
174         return pa.getSupportedWindowStates();
175     }
176 
177     public PortletMode getMappedPortletMode(PortletMode mode)
178     {
179         return pa.getMappedPortletMode(mode);
180     }
181 
182     public WindowState getMappedWindowState(WindowState state)
183     {
184         return pa.getMappedWindowState(state);
185     }
186 
187     public PortletMode getCustomPortletMode(PortletMode mode)
188     {
189         return pa.getCustomPortletMode(mode);
190     }
191 
192     public WindowState getCustomWindowState(WindowState state)
193     {
194         return pa.getCustomWindowState(state);
195     }
196     
197     public String getJetspeedSecurityConstraint()
198     {
199         return pa.getJetspeedSecurityConstraint();
200     }
201     public boolean isLayoutApplication()
202     {
203         return pa.isLayoutApplication();
204     }       
205 }