001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.util;
022:
023: /**
024: * <a href="PrefsPropsUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class PrefsPropsUtil_IW {
030: public static PrefsPropsUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public javax.portlet.PortletPreferences getPreferences()
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.PortalException {
037: return PrefsPropsUtil.getPreferences();
038: }
039:
040: public javax.portlet.PortletPreferences getPreferences(
041: long companyId) throws com.liferay.portal.SystemException,
042: com.liferay.portal.PortalException {
043: return PrefsPropsUtil.getPreferences(companyId);
044: }
045:
046: public boolean getBoolean(java.lang.String name)
047: throws com.liferay.portal.SystemException,
048: com.liferay.portal.PortalException {
049: return PrefsPropsUtil.getBoolean(name);
050: }
051:
052: public boolean getBoolean(long companyId, java.lang.String name)
053: throws com.liferay.portal.SystemException,
054: com.liferay.portal.PortalException {
055: return PrefsPropsUtil.getBoolean(companyId, name);
056: }
057:
058: public boolean getBoolean(javax.portlet.PortletPreferences prefs,
059: long companyId, java.lang.String name) {
060: return PrefsPropsUtil.getBoolean(prefs, companyId, name);
061: }
062:
063: public boolean getBoolean(java.lang.String name,
064: boolean defaultValue)
065: throws com.liferay.portal.SystemException,
066: com.liferay.portal.PortalException {
067: return PrefsPropsUtil.getBoolean(name, defaultValue);
068: }
069:
070: public boolean getBoolean(long companyId, java.lang.String name,
071: boolean defaultValue)
072: throws com.liferay.portal.SystemException,
073: com.liferay.portal.PortalException {
074: return PrefsPropsUtil.getBoolean(companyId, name, defaultValue);
075: }
076:
077: public boolean getBoolean(javax.portlet.PortletPreferences prefs,
078: long companyId, java.lang.String name, boolean defaultValue) {
079: return PrefsPropsUtil.getBoolean(prefs, companyId, name,
080: defaultValue);
081: }
082:
083: public java.lang.String getContent(java.lang.String name)
084: throws com.liferay.portal.SystemException,
085: com.liferay.portal.PortalException {
086: return PrefsPropsUtil.getContent(name);
087: }
088:
089: public java.lang.String getContent(long companyId,
090: java.lang.String name)
091: throws com.liferay.portal.SystemException,
092: com.liferay.portal.PortalException {
093: return PrefsPropsUtil.getContent(companyId, name);
094: }
095:
096: public java.lang.String getContent(
097: javax.portlet.PortletPreferences prefs, long companyId,
098: java.lang.String name) {
099: return PrefsPropsUtil.getContent(prefs, companyId, name);
100: }
101:
102: public double getDouble(java.lang.String name)
103: throws com.liferay.portal.SystemException,
104: com.liferay.portal.PortalException {
105: return PrefsPropsUtil.getDouble(name);
106: }
107:
108: public double getDouble(long companyId, java.lang.String name)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portal.PortalException {
111: return PrefsPropsUtil.getDouble(companyId, name);
112: }
113:
114: public double getDouble(javax.portlet.PortletPreferences prefs,
115: long companyId, java.lang.String name) {
116: return PrefsPropsUtil.getDouble(prefs, companyId, name);
117: }
118:
119: public double getDouble(java.lang.String name, double defaultValue)
120: throws com.liferay.portal.SystemException,
121: com.liferay.portal.PortalException {
122: return PrefsPropsUtil.getDouble(name, defaultValue);
123: }
124:
125: public double getDouble(long companyId, java.lang.String name,
126: double defaultValue)
127: throws com.liferay.portal.SystemException,
128: com.liferay.portal.PortalException {
129: return PrefsPropsUtil.getDouble(companyId, name, defaultValue);
130: }
131:
132: public double getDouble(javax.portlet.PortletPreferences prefs,
133: long companyId, java.lang.String name, double defaultValue) {
134: return PrefsPropsUtil.getDouble(prefs, companyId, name,
135: defaultValue);
136: }
137:
138: public int getInteger(java.lang.String name)
139: throws com.liferay.portal.SystemException,
140: com.liferay.portal.PortalException {
141: return PrefsPropsUtil.getInteger(name);
142: }
143:
144: public int getInteger(long companyId, java.lang.String name)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.PortalException {
147: return PrefsPropsUtil.getInteger(companyId, name);
148: }
149:
150: public int getInteger(javax.portlet.PortletPreferences prefs,
151: long companyId, java.lang.String name) {
152: return PrefsPropsUtil.getInteger(prefs, companyId, name);
153: }
154:
155: public int getInteger(java.lang.String name, int defaultValue)
156: throws com.liferay.portal.SystemException,
157: com.liferay.portal.PortalException {
158: return PrefsPropsUtil.getInteger(name, defaultValue);
159: }
160:
161: public int getInteger(long companyId, java.lang.String name,
162: int defaultValue)
163: throws com.liferay.portal.SystemException,
164: com.liferay.portal.PortalException {
165: return PrefsPropsUtil.getInteger(companyId, name, defaultValue);
166: }
167:
168: public int getInteger(javax.portlet.PortletPreferences prefs,
169: long companyId, java.lang.String name, int defaultValue) {
170: return PrefsPropsUtil.getInteger(prefs, companyId, name,
171: defaultValue);
172: }
173:
174: public long getLong(java.lang.String name)
175: throws com.liferay.portal.SystemException,
176: com.liferay.portal.PortalException {
177: return PrefsPropsUtil.getLong(name);
178: }
179:
180: public long getLong(long companyId, java.lang.String name)
181: throws com.liferay.portal.SystemException,
182: com.liferay.portal.PortalException {
183: return PrefsPropsUtil.getLong(companyId, name);
184: }
185:
186: public long getLong(javax.portlet.PortletPreferences prefs,
187: long companyId, java.lang.String name) {
188: return PrefsPropsUtil.getLong(prefs, companyId, name);
189: }
190:
191: public long getLong(java.lang.String name, long defaultValue)
192: throws com.liferay.portal.SystemException,
193: com.liferay.portal.PortalException {
194: return PrefsPropsUtil.getLong(name, defaultValue);
195: }
196:
197: public long getLong(long companyId, java.lang.String name,
198: long defaultValue)
199: throws com.liferay.portal.SystemException,
200: com.liferay.portal.PortalException {
201: return PrefsPropsUtil.getLong(companyId, name, defaultValue);
202: }
203:
204: public long getLong(javax.portlet.PortletPreferences prefs,
205: long companyId, java.lang.String name, long defaultValue) {
206: return PrefsPropsUtil.getLong(prefs, companyId, name,
207: defaultValue);
208: }
209:
210: public short getShort(java.lang.String name)
211: throws com.liferay.portal.SystemException,
212: com.liferay.portal.PortalException {
213: return PrefsPropsUtil.getShort(name);
214: }
215:
216: public short getShort(long companyId, java.lang.String name)
217: throws com.liferay.portal.SystemException,
218: com.liferay.portal.PortalException {
219: return PrefsPropsUtil.getShort(companyId, name);
220: }
221:
222: public short getShort(javax.portlet.PortletPreferences prefs,
223: long companyId, java.lang.String name) {
224: return PrefsPropsUtil.getShort(prefs, companyId, name);
225: }
226:
227: public short getShort(java.lang.String name, short defaultValue)
228: throws com.liferay.portal.SystemException,
229: com.liferay.portal.PortalException {
230: return PrefsPropsUtil.getShort(name, defaultValue);
231: }
232:
233: public short getShort(long companyId, java.lang.String name,
234: short defaultValue)
235: throws com.liferay.portal.SystemException,
236: com.liferay.portal.PortalException {
237: return PrefsPropsUtil.getShort(companyId, name, defaultValue);
238: }
239:
240: public short getShort(javax.portlet.PortletPreferences prefs,
241: long companyId, java.lang.String name, short defaultValue) {
242: return PrefsPropsUtil.getShort(prefs, companyId, name,
243: defaultValue);
244: }
245:
246: public java.lang.String getString(java.lang.String name)
247: throws com.liferay.portal.SystemException,
248: com.liferay.portal.PortalException {
249: return PrefsPropsUtil.getString(name);
250: }
251:
252: public java.lang.String getString(long companyId,
253: java.lang.String name)
254: throws com.liferay.portal.SystemException,
255: com.liferay.portal.PortalException {
256: return PrefsPropsUtil.getString(companyId, name);
257: }
258:
259: public java.lang.String getString(
260: javax.portlet.PortletPreferences prefs, long companyId,
261: java.lang.String name) {
262: return PrefsPropsUtil.getString(prefs, companyId, name);
263: }
264:
265: public java.lang.String getString(java.lang.String name,
266: java.lang.String defaultValue)
267: throws com.liferay.portal.SystemException,
268: com.liferay.portal.PortalException {
269: return PrefsPropsUtil.getString(name, defaultValue);
270: }
271:
272: public java.lang.String getString(long companyId,
273: java.lang.String name, java.lang.String defaultValue)
274: throws com.liferay.portal.SystemException,
275: com.liferay.portal.PortalException {
276: return PrefsPropsUtil.getString(companyId, name, defaultValue);
277: }
278:
279: public java.lang.String getString(
280: javax.portlet.PortletPreferences prefs, long companyId,
281: java.lang.String name, java.lang.String defaultValue) {
282: return PrefsPropsUtil.getString(prefs, companyId, name,
283: defaultValue);
284: }
285:
286: public java.lang.String getString(
287: javax.portlet.PortletPreferences prefs, long companyId,
288: java.lang.String name, boolean defaultValue) {
289: return PrefsPropsUtil.getString(prefs, companyId, name,
290: defaultValue);
291: }
292:
293: public java.lang.String getString(
294: javax.portlet.PortletPreferences prefs, long companyId,
295: java.lang.String name, double defaultValue) {
296: return PrefsPropsUtil.getString(prefs, companyId, name,
297: defaultValue);
298: }
299:
300: public java.lang.String getString(
301: javax.portlet.PortletPreferences prefs, long companyId,
302: java.lang.String name, int defaultValue) {
303: return PrefsPropsUtil.getString(prefs, companyId, name,
304: defaultValue);
305: }
306:
307: public java.lang.String getString(
308: javax.portlet.PortletPreferences prefs, long companyId,
309: java.lang.String name, long defaultValue) {
310: return PrefsPropsUtil.getString(prefs, companyId, name,
311: defaultValue);
312: }
313:
314: public java.lang.String getString(
315: javax.portlet.PortletPreferences prefs, long companyId,
316: java.lang.String name, short defaultValue) {
317: return PrefsPropsUtil.getString(prefs, companyId, name,
318: defaultValue);
319: }
320:
321: public java.lang.String[] getStringArray(java.lang.String name,
322: java.lang.String delimiter)
323: throws com.liferay.portal.SystemException,
324: com.liferay.portal.PortalException {
325: return PrefsPropsUtil.getStringArray(name, delimiter);
326: }
327:
328: public java.lang.String[] getStringArray(long companyId,
329: java.lang.String name, java.lang.String delimiter)
330: throws com.liferay.portal.SystemException,
331: com.liferay.portal.PortalException {
332: return PrefsPropsUtil
333: .getStringArray(companyId, name, delimiter);
334: }
335:
336: public java.lang.String[] getStringArray(
337: javax.portlet.PortletPreferences prefs, long companyId,
338: java.lang.String name, java.lang.String delimiter)
339: throws com.liferay.portal.SystemException,
340: com.liferay.portal.PortalException {
341: return PrefsPropsUtil.getStringArray(prefs, companyId, name,
342: delimiter);
343: }
344:
345: public java.lang.String[] getStringArray(java.lang.String name,
346: java.lang.String delimiter, java.lang.String[] defaultValue)
347: throws com.liferay.portal.SystemException,
348: com.liferay.portal.PortalException {
349: return PrefsPropsUtil.getStringArray(name, delimiter,
350: defaultValue);
351: }
352:
353: public java.lang.String[] getStringArray(long companyId,
354: java.lang.String name, java.lang.String delimiter,
355: java.lang.String[] defaultValue)
356: throws com.liferay.portal.SystemException,
357: com.liferay.portal.PortalException {
358: return PrefsPropsUtil.getStringArray(companyId, name,
359: delimiter, defaultValue);
360: }
361:
362: public java.lang.String[] getStringArray(
363: javax.portlet.PortletPreferences prefs, long companyId,
364: java.lang.String name, java.lang.String delimiter,
365: java.lang.String[] defaultValue)
366: throws com.liferay.portal.SystemException,
367: com.liferay.portal.PortalException {
368: return PrefsPropsUtil.getStringArray(prefs, companyId, name,
369: delimiter, defaultValue);
370: }
371:
372: private PrefsPropsUtil_IW() {
373: }
374:
375: private static PrefsPropsUtil_IW _instance = new PrefsPropsUtil_IW();
376: }
|