001
014
015 package com.liferay.portal.util;
016
017 import com.liferay.portal.kernel.exception.SystemException;
018 import com.liferay.portal.kernel.util.PrefsProps;
019
020 import java.util.Properties;
021
022 import javax.portlet.PortletPreferences;
023
024
027 public class PrefsPropsImpl implements PrefsProps {
028
029 public boolean getBoolean(long companyId, String name)
030 throws SystemException {
031
032 return PrefsPropsUtil.getBoolean(companyId, name);
033 }
034
035 public boolean getBoolean(long companyId, String name, boolean defaultValue)
036 throws SystemException {
037
038 return PrefsPropsUtil.getBoolean(companyId, name, defaultValue);
039 }
040
041 public boolean getBoolean(
042 PortletPreferences preferences, long companyId, String name) {
043
044 return PrefsPropsUtil.getBoolean(preferences, companyId, name);
045 }
046
047 public boolean getBoolean(
048 PortletPreferences preferences, long companyId, String name,
049 boolean defaultValue) {
050
051 return PrefsPropsUtil.getBoolean(
052 preferences, companyId, name, defaultValue);
053 }
054
055 public boolean getBoolean(String name) throws SystemException {
056 return PrefsPropsUtil.getBoolean(name);
057 }
058
059 public boolean getBoolean(String name, boolean defaultValue)
060 throws SystemException {
061
062 return PrefsPropsUtil.getBoolean(name, defaultValue);
063 }
064
065 public String getContent(long companyId, String name)
066 throws SystemException {
067
068 return PrefsPropsUtil.getContent(companyId, name);
069 }
070
071 public String getContent(
072 PortletPreferences preferences, long companyId, String name) {
073
074 return PrefsPropsUtil.getContent(preferences, companyId, name);
075 }
076
077 public String getContent(String name) throws SystemException {
078 return PrefsPropsUtil.getContent(name);
079 }
080
081 public double getDouble(long companyId, String name)
082 throws SystemException {
083
084 return PrefsPropsUtil.getDouble(companyId, name);
085 }
086
087 public double getDouble(long companyId, String name, double defaultValue)
088 throws SystemException {
089
090 return PrefsPropsUtil.getDouble(companyId, name, defaultValue);
091 }
092
093 public double getDouble(
094 PortletPreferences preferences, long companyId, String name) {
095
096 return PrefsPropsUtil.getDouble(preferences, companyId, name);
097 }
098
099 public double getDouble(
100 PortletPreferences preferences, long companyId, String name,
101 double defaultValue) {
102
103 return PrefsPropsUtil.getDouble(
104 preferences, companyId, name, defaultValue);
105 }
106
107 public double getDouble(String name) throws SystemException {
108 return PrefsPropsUtil.getDouble(name);
109 }
110
111 public double getDouble(String name, double defaultValue)
112 throws SystemException {
113
114 return PrefsPropsUtil.getDouble(name, defaultValue);
115 }
116
117 public int getInteger(long companyId, String name) throws SystemException {
118 return PrefsPropsUtil.getInteger(companyId, name);
119 }
120
121 public int getInteger(long companyId, String name, int defaultValue)
122 throws SystemException {
123
124 return PrefsPropsUtil.getInteger(companyId, name, defaultValue);
125 }
126
127 public int getInteger(
128 PortletPreferences preferences, long companyId, String name) {
129
130 return PrefsPropsUtil.getInteger(preferences, companyId, name);
131 }
132
133 public int getInteger(
134 PortletPreferences preferences, long companyId, String name,
135 int defaultValue) {
136
137 return PrefsPropsUtil.getInteger(
138 preferences, companyId, name, defaultValue);
139 }
140
141 public int getInteger(String name) throws SystemException {
142 return PrefsPropsUtil.getInteger(name);
143 }
144
145 public int getInteger(String name, int defaultValue)
146 throws SystemException {
147
148 return PrefsPropsUtil.getInteger(name, defaultValue);
149 }
150
151 public long getLong(long companyId, String name) throws SystemException {
152 return PrefsPropsUtil.getLong(companyId, name);
153 }
154
155 public long getLong(long companyId, String name, long defaultValue)
156 throws SystemException {
157
158 return PrefsPropsUtil.getLong(companyId, name, defaultValue);
159 }
160
161 public long getLong(
162 PortletPreferences preferences, long companyId, String name) {
163
164 return PrefsPropsUtil.getLong(preferences, companyId, name);
165 }
166
167 public long getLong(
168 PortletPreferences preferences, long companyId, String name,
169 long defaultValue) {
170
171 return PrefsPropsUtil.getLong(
172 preferences, companyId, name, defaultValue);
173 }
174
175 public long getLong(String name) throws SystemException {
176 return PrefsPropsUtil.getLong(name);
177 }
178
179 public long getLong(String name, long defaultValue) throws SystemException {
180 return PrefsPropsUtil.getLong(name, defaultValue);
181 }
182
183 public PortletPreferences getPreferences() throws SystemException {
184 return PrefsPropsUtil.getPreferences();
185 }
186
187 public PortletPreferences getPreferences(long companyId)
188 throws SystemException {
189
190 return PrefsPropsUtil.getPreferences(companyId);
191 }
192
193 public Properties getProperties(
194 PortletPreferences preferences, long companyId, String prefix,
195 boolean removePrefix) {
196
197 return PrefsPropsUtil.getProperties(
198 preferences, companyId, prefix, removePrefix);
199 }
200
201 public Properties getProperties(String prefix, boolean removePrefix)
202 throws SystemException {
203
204 return PrefsPropsUtil.getProperties(prefix, removePrefix);
205 }
206
207 public short getShort(long companyId, String name) throws SystemException {
208 return PrefsPropsUtil.getShort(companyId, name);
209 }
210
211 public short getShort(long companyId, String name, short defaultValue)
212 throws SystemException {
213
214 return PrefsPropsUtil.getShort(companyId, name, defaultValue);
215 }
216
217 public short getShort(
218 PortletPreferences preferences, long companyId, String name) {
219
220 return PrefsPropsUtil.getShort(preferences, companyId, name);
221 }
222
223 public short getShort(
224 PortletPreferences preferences, long companyId, String name,
225 short defaultValue) {
226
227 return PrefsPropsUtil.getShort(
228 preferences, companyId, name, defaultValue);
229 }
230
231 public short getShort(String name) throws SystemException {
232 return PrefsPropsUtil.getShort(name);
233 }
234
235 public short getShort(String name, short defaultValue)
236 throws SystemException {
237
238 return PrefsPropsUtil.getShort(name, defaultValue);
239 }
240
241 public String getString(long companyId, String name)
242 throws SystemException {
243
244 return PrefsPropsUtil.getString(companyId, name);
245 }
246
247 public String getString(long companyId, String name, String defaultValue)
248 throws SystemException {
249
250 return PrefsPropsUtil.getString(companyId, name, defaultValue);
251 }
252
253 public String getString(
254 PortletPreferences preferences, long companyId, String name) {
255
256 return PrefsPropsUtil.getString(preferences, companyId, name);
257 }
258
259 public String getString(
260 PortletPreferences preferences, long companyId, String name,
261 boolean defaultValue) {
262
263 return PrefsPropsUtil.getString(
264 preferences, companyId, name, defaultValue);
265 }
266
267 public String getString(
268 PortletPreferences preferences, long companyId, String name,
269 double defaultValue) {
270
271 return PrefsPropsUtil.getString(
272 preferences, companyId, name, defaultValue);
273 }
274
275 public String getString(
276 PortletPreferences preferences, long companyId, String name,
277 int defaultValue) {
278
279 return PrefsPropsUtil.getString(
280 preferences, companyId, name, defaultValue);
281 }
282
283 public String getString(
284 PortletPreferences preferences, long companyId, String name,
285 long defaultValue) {
286
287 return PrefsPropsUtil.getString(
288 preferences, companyId, name, defaultValue);
289 }
290
291 public String getString(
292 PortletPreferences preferences, long companyId, String name,
293 short defaultValue) {
294
295 return PrefsPropsUtil.getString(
296 preferences, companyId, name, defaultValue);
297 }
298
299 public String getString(
300 PortletPreferences preferences, long companyId, String name,
301 String defaultValue) {
302
303 return PrefsPropsUtil.getString(
304 preferences, companyId, name, defaultValue);
305 }
306
307 public String getString(String name) throws SystemException {
308 return PrefsPropsUtil.getString(name);
309 }
310
311 public String getString(String name, String defaultValue)
312 throws SystemException {
313
314 return PrefsPropsUtil.getString(name, defaultValue);
315 }
316
317 public String[] getStringArray(
318 long companyId, String name, String delimiter)
319 throws SystemException {
320
321 return PrefsPropsUtil.getStringArray(companyId, name, delimiter);
322 }
323
324 public String[] getStringArray(
325 long companyId, String name, String delimiter,
326 String[] defaultValue)
327 throws SystemException {
328
329 return PrefsPropsUtil.getStringArray(
330 companyId, name, delimiter, defaultValue);
331 }
332
333 public String[] getStringArray(
334 PortletPreferences preferences, long companyId, String name,
335 String delimiter) {
336
337 return PrefsPropsUtil.getStringArray(
338 preferences, companyId, name, delimiter);
339 }
340
341 public String[] getStringArray(
342 PortletPreferences preferences, long companyId, String name,
343 String delimiter, String[] defaultValue) {
344
345 return PrefsPropsUtil.getStringArray(
346 preferences, companyId, name, delimiter, defaultValue);
347 }
348
349 public String[] getStringArray(String name, String delimiter)
350 throws SystemException {
351
352 return PrefsPropsUtil.getStringArray(name, delimiter);
353 }
354
355 public String[] getStringArray(
356 String name, String delimiter, String[] defaultValue)
357 throws SystemException {
358
359 return PrefsPropsUtil.getStringArray(name, delimiter, defaultValue);
360 }
361
362 public String getStringFromNames(long companyId, String... names)
363 throws SystemException {
364
365 return PrefsPropsUtil.getStringFromNames(companyId, names);
366 }
367
368 }