1   /**
2    * Copyright (c) 2000-2007 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.util;
24  
25  /**
26   * <a href="PrefsPropsUtil_IW.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class PrefsPropsUtil_IW {
32      public static PrefsPropsUtil_IW getInstance() {
33          return _instance;
34      }
35  
36      public javax.portlet.PortletPreferences getPreferences()
37          throws com.liferay.portal.SystemException, 
38              com.liferay.portal.PortalException {
39          return PrefsPropsUtil.getPreferences();
40      }
41  
42      public javax.portlet.PortletPreferences getPreferences(long companyId)
43          throws com.liferay.portal.SystemException, 
44              com.liferay.portal.PortalException {
45          return PrefsPropsUtil.getPreferences(companyId);
46      }
47  
48      public boolean getBoolean(java.lang.String name)
49          throws com.liferay.portal.SystemException, 
50              com.liferay.portal.PortalException {
51          return PrefsPropsUtil.getBoolean(name);
52      }
53  
54      public boolean getBoolean(long companyId, java.lang.String name)
55          throws com.liferay.portal.SystemException, 
56              com.liferay.portal.PortalException {
57          return PrefsPropsUtil.getBoolean(companyId, name);
58      }
59  
60      public boolean getBoolean(javax.portlet.PortletPreferences prefs,
61          long companyId, java.lang.String name) {
62          return PrefsPropsUtil.getBoolean(prefs, companyId, name);
63      }
64  
65      public java.lang.String getContent(java.lang.String name)
66          throws com.liferay.portal.SystemException, 
67              com.liferay.portal.PortalException {
68          return PrefsPropsUtil.getContent(name);
69      }
70  
71      public java.lang.String getContent(long companyId, java.lang.String name)
72          throws com.liferay.portal.SystemException, 
73              com.liferay.portal.PortalException {
74          return PrefsPropsUtil.getContent(companyId, name);
75      }
76  
77      public java.lang.String getContent(javax.portlet.PortletPreferences prefs,
78          long companyId, java.lang.String name) {
79          return PrefsPropsUtil.getContent(prefs, companyId, name);
80      }
81  
82      public double getDouble(java.lang.String name)
83          throws com.liferay.portal.SystemException, 
84              com.liferay.portal.PortalException {
85          return PrefsPropsUtil.getDouble(name);
86      }
87  
88      public double getDouble(long companyId, java.lang.String name)
89          throws com.liferay.portal.SystemException, 
90              com.liferay.portal.PortalException {
91          return PrefsPropsUtil.getDouble(companyId, name);
92      }
93  
94      public double getDouble(javax.portlet.PortletPreferences prefs,
95          long companyId, java.lang.String name) {
96          return PrefsPropsUtil.getDouble(prefs, companyId, name);
97      }
98  
99      public int getInteger(java.lang.String name)
100         throws com.liferay.portal.SystemException, 
101             com.liferay.portal.PortalException {
102         return PrefsPropsUtil.getInteger(name);
103     }
104 
105     public int getInteger(long companyId, java.lang.String name)
106         throws com.liferay.portal.SystemException, 
107             com.liferay.portal.PortalException {
108         return PrefsPropsUtil.getInteger(companyId, name);
109     }
110 
111     public int getInteger(javax.portlet.PortletPreferences prefs,
112         long companyId, java.lang.String name) {
113         return PrefsPropsUtil.getInteger(prefs, companyId, name);
114     }
115 
116     public long getLong(java.lang.String name)
117         throws com.liferay.portal.SystemException, 
118             com.liferay.portal.PortalException {
119         return PrefsPropsUtil.getLong(name);
120     }
121 
122     public long getLong(long companyId, java.lang.String name)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portal.PortalException {
125         return PrefsPropsUtil.getLong(companyId, name);
126     }
127 
128     public long getLong(javax.portlet.PortletPreferences prefs, long companyId,
129         java.lang.String name) {
130         return PrefsPropsUtil.getLong(prefs, companyId, name);
131     }
132 
133     public short getShort(java.lang.String name)
134         throws com.liferay.portal.SystemException, 
135             com.liferay.portal.PortalException {
136         return PrefsPropsUtil.getShort(name);
137     }
138 
139     public short getShort(long companyId, java.lang.String name)
140         throws com.liferay.portal.SystemException, 
141             com.liferay.portal.PortalException {
142         return PrefsPropsUtil.getShort(companyId, name);
143     }
144 
145     public short getShort(javax.portlet.PortletPreferences prefs,
146         long companyId, java.lang.String name) {
147         return PrefsPropsUtil.getShort(prefs, companyId, name);
148     }
149 
150     public java.lang.String getString(java.lang.String name)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portal.PortalException {
153         return PrefsPropsUtil.getString(name);
154     }
155 
156     public java.lang.String getString(long companyId, java.lang.String name)
157         throws com.liferay.portal.SystemException, 
158             com.liferay.portal.PortalException {
159         return PrefsPropsUtil.getString(companyId, name);
160     }
161 
162     public java.lang.String getString(javax.portlet.PortletPreferences prefs,
163         long companyId, java.lang.String name) {
164         return PrefsPropsUtil.getString(prefs, companyId, name);
165     }
166 
167     public java.lang.String[] getStringArray(java.lang.String name)
168         throws com.liferay.portal.SystemException, 
169             com.liferay.portal.PortalException {
170         return PrefsPropsUtil.getStringArray(name);
171     }
172 
173     public java.lang.String[] getStringArray(long companyId,
174         java.lang.String name)
175         throws com.liferay.portal.SystemException, 
176             com.liferay.portal.PortalException {
177         return PrefsPropsUtil.getStringArray(companyId, name);
178     }
179 
180     public java.lang.String[] getStringArray(
181         javax.portlet.PortletPreferences prefs, long companyId,
182         java.lang.String name)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException {
185         return PrefsPropsUtil.getStringArray(prefs, companyId, name);
186     }
187 
188     private PrefsPropsUtil_IW() {
189     }
190 
191     private static PrefsPropsUtil_IW _instance = new PrefsPropsUtil_IW();
192 }