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.jetspeed.portlets.pam;
018:
019: import java.util.Collection;
020:
021: import javax.portlet.PortletMode;
022: import javax.portlet.WindowState;
023:
024: import org.apache.jetspeed.om.common.GenericMetadata;
025: import org.apache.jetspeed.om.common.portlet.PortletApplication;
026: import org.apache.pluto.om.common.ObjectID;
027: import org.apache.pluto.om.portlet.PortletDefinition;
028: import org.apache.pluto.om.portlet.PortletDefinitionList;
029: import org.apache.pluto.om.servlet.WebApplicationDefinition;
030:
031: /**
032: * This portlet is a browser over all the portlet applications in the system.
033: *
034: * @author <a href="mailto:jford@apache.com">Jeremy Ford</a>
035: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
036: * @version $Id: PortletApplicationBean.java 348264 2005-11-22 22:06:45Z taylor $
037: */
038: public class PortletApplicationBean implements PortletApplication {
039: PortletApplication pa;
040:
041: public PortletApplicationBean(PortletApplication pa) {
042: this .pa = pa;
043: }
044:
045: /* (non-Javadoc)
046: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getMetadata()
047: */
048: public GenericMetadata getMetadata() {
049: return pa.getMetadata();
050: }
051:
052: /* (non-Javadoc)
053: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getName()
054: */
055: public String getName() {
056: return pa.getName();
057: }
058:
059: /* (non-Javadoc)
060: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getPortletDefinitions()
061: */
062: public Collection getPortletDefinitions() {
063: return pa.getPortletDefinitions();
064: }
065:
066: /* (non-Javadoc)
067: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getPortletDefinitionByName(java.lang.String)
068: */
069: public PortletDefinition getPortletDefinitionByName(String name) {
070: return pa.getPortletDefinitionByName(name);
071: }
072:
073: /* (non-Javadoc)
074: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getUserAttributeRefs()
075: */
076: public Collection getUserAttributeRefs() {
077: return pa.getUserAttributeRefs();
078: }
079:
080: /* (non-Javadoc)
081: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getUserAttributes()
082: */
083: public Collection getUserAttributes() {
084: return pa.getUserAttributes();
085: }
086:
087: /* (non-Javadoc)
088: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getApplicationIdentifier()
089: */
090: public String getApplicationIdentifier() {
091: return pa.getApplicationIdentifier();
092: }
093:
094: /* (non-Javadoc)
095: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getDescription()
096: */
097: public String getDescription() {
098: return pa.getDescription();
099: }
100:
101: /* (non-Javadoc)
102: * @see org.apache.jetspeed.om.common.portlet.PortletApplication#getApplicationType()
103: */
104: public int getApplicationType() {
105: return pa.getApplicationType();
106: }
107:
108: /* (non-Javadoc)
109: * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getId()
110: */
111: public ObjectID getId() {
112: return pa.getId();
113: }
114:
115: /* (non-Javadoc)
116: * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getVersion()
117: */
118: public String getVersion() {
119: return pa.getVersion();
120: }
121:
122: /* (non-Javadoc)
123: * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getPortletDefinitionList()
124: */
125: public PortletDefinitionList getPortletDefinitionList() {
126: return pa.getPortletDefinitionList();
127: }
128:
129: /* (non-Javadoc)
130: * @see org.apache.pluto.om.portlet.PortletApplicationDefinition#getWebApplicationDefinition()
131: */
132: public WebApplicationDefinition getWebApplicationDefinition() {
133: return pa.getWebApplicationDefinition();
134: }
135:
136: public Collection getJetspeedServices() {
137: return pa.getJetspeedServices();
138: }
139:
140: public Collection getCustomPortletModes() {
141: return pa.getCustomPortletModes();
142: }
143:
144: public Collection getCustomWindowStates() {
145: return pa.getCustomWindowStates();
146: }
147:
148: public Collection getSupportedPortletModes() {
149: return pa.getSupportedPortletModes();
150: }
151:
152: public Collection getSupportedWindowStates() {
153: return pa.getSupportedWindowStates();
154: }
155:
156: public PortletMode getMappedPortletMode(PortletMode mode) {
157: return pa.getMappedPortletMode(mode);
158: }
159:
160: public WindowState getMappedWindowState(WindowState state) {
161: return pa.getMappedWindowState(state);
162: }
163:
164: public PortletMode getCustomPortletMode(PortletMode mode) {
165: return pa.getCustomPortletMode(mode);
166: }
167:
168: public WindowState getCustomWindowState(WindowState state) {
169: return pa.getCustomWindowState(state);
170: }
171:
172: public String getJetspeedSecurityConstraint() {
173: return pa.getJetspeedSecurityConstraint();
174: }
175:
176: public boolean isLayoutApplication() {
177: return pa.isLayoutApplication();
178: }
179: }
|