%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.jetspeed.engine.core.PortalContextImpl |
|
|
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.engine.core; |
|
18 | ||
19 | import java.util.Enumeration; |
|
20 | ||
21 | import javax.portlet.PortalContext; |
|
22 | ||
23 | import org.apache.pluto.services.information.PortalContextProvider; |
|
24 | import org.apache.pluto.util.Enumerator; |
|
25 | ||
26 | /** |
|
27 | * PortalContextImpl |
|
28 | * |
|
29 | * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a> |
|
30 | * @version $Id: PortalContextImpl.java 516448 2007-03-09 16:25:47Z ate $ |
|
31 | * @deprecated Can't any references as it appears we always use JetpseedPortletContext |
|
32 | */ |
|
33 | public class PortalContextImpl implements PortalContext |
|
34 | { |
|
35 | 0 | PortalContextProvider provider = null; |
36 | ||
37 | public PortalContextImpl(PortalContextProvider provider) |
|
38 | 0 | { |
39 | 0 | this.provider = provider; |
40 | 0 | } |
41 | ||
42 | /* (non-Javadoc) |
|
43 | * @see javax.portlet.PortalContext#getProperty(java.lang.String) |
|
44 | */ |
|
45 | public String getProperty(String name) |
|
46 | { |
|
47 | 0 | if (name == null) |
48 | { |
|
49 | 0 | throw new IllegalArgumentException("Property name == null"); |
50 | } |
|
51 | 0 | return provider.getProperty(name); |
52 | } |
|
53 | ||
54 | /* (non-Javadoc) |
|
55 | * @see javax.portlet.PortalContext#getPropertyNames() |
|
56 | */ |
|
57 | public Enumeration getPropertyNames() |
|
58 | { |
|
59 | 0 | return(new Enumerator(provider.getPropertyNames())); |
60 | } |
|
61 | ||
62 | /* (non-Javadoc) |
|
63 | * @see javax.portlet.PortalContext#getSupportedPortletModes() |
|
64 | */ |
|
65 | public Enumeration getSupportedPortletModes() |
|
66 | { |
|
67 | 0 | return new Enumerator(provider.getSupportedPortletModes()); |
68 | } |
|
69 | ||
70 | /* (non-Javadoc) |
|
71 | * @see javax.portlet.PortalContext#getSupportedWindowStates() |
|
72 | */ |
|
73 | public Enumeration getSupportedWindowStates() |
|
74 | { |
|
75 | 0 | return new Enumerator(provider.getSupportedWindowStates()); |
76 | } |
|
77 | ||
78 | /* (non-Javadoc) |
|
79 | * @see javax.portlet.PortalContext#getPortalInfo() |
|
80 | */ |
|
81 | public String getPortalInfo() |
|
82 | { |
|
83 | 0 | return provider.getPortalInfo(); |
84 | } |
|
85 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |