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.service;
022:
023: /**
024: * <a href="LayoutServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portal.service.LayoutService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portal.service.LayoutServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portal.service.LayoutService
047: * @see com.liferay.portal.service.LayoutServiceFactory
048: *
049: */
050: public class LayoutServiceUtil {
051: public static com.liferay.portal.model.Layout addLayout(
052: long groupId, boolean privateLayout, long parentLayoutId,
053: java.lang.String name, java.lang.String title,
054: java.lang.String description, java.lang.String type,
055: boolean hidden, java.lang.String friendlyURL)
056: throws com.liferay.portal.PortalException,
057: com.liferay.portal.SystemException,
058: java.rmi.RemoteException {
059: LayoutService layoutService = LayoutServiceFactory.getService();
060:
061: return layoutService.addLayout(groupId, privateLayout,
062: parentLayoutId, name, title, description, type, hidden,
063: friendlyURL);
064: }
065:
066: public static com.liferay.portal.model.Layout addLayout(
067: long groupId, boolean privateLayout, long parentLayoutId,
068: java.util.Map localeNamesMap,
069: java.util.Map localeTitlesMap,
070: java.lang.String description, java.lang.String type,
071: boolean hidden, java.lang.String friendlyURL)
072: throws com.liferay.portal.PortalException,
073: com.liferay.portal.SystemException,
074: java.rmi.RemoteException {
075: LayoutService layoutService = LayoutServiceFactory.getService();
076:
077: return layoutService.addLayout(groupId, privateLayout,
078: parentLayoutId, localeNamesMap, localeTitlesMap,
079: description, type, hidden, friendlyURL);
080: }
081:
082: public static void deleteLayout(long plid)
083: throws com.liferay.portal.PortalException,
084: com.liferay.portal.SystemException,
085: java.rmi.RemoteException {
086: LayoutService layoutService = LayoutServiceFactory.getService();
087:
088: layoutService.deleteLayout(plid);
089: }
090:
091: public static void deleteLayout(long groupId,
092: boolean privateLayout, long layoutId)
093: throws com.liferay.portal.PortalException,
094: com.liferay.portal.SystemException,
095: java.rmi.RemoteException {
096: LayoutService layoutService = LayoutServiceFactory.getService();
097:
098: layoutService.deleteLayout(groupId, privateLayout, layoutId);
099: }
100:
101: public static java.lang.String getLayoutName(long groupId,
102: boolean privateLayout, long layoutId,
103: java.lang.String languageId)
104: throws com.liferay.portal.PortalException,
105: com.liferay.portal.SystemException,
106: java.rmi.RemoteException {
107: LayoutService layoutService = LayoutServiceFactory.getService();
108:
109: return layoutService.getLayoutName(groupId, privateLayout,
110: layoutId, languageId);
111: }
112:
113: public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
114: long companyId, java.lang.String portletId,
115: java.lang.String prefsKey, java.lang.String prefsValue)
116: throws com.liferay.portal.SystemException,
117: java.rmi.RemoteException {
118: LayoutService layoutService = LayoutServiceFactory.getService();
119:
120: return layoutService.getLayoutReferences(companyId, portletId,
121: prefsKey, prefsValue);
122: }
123:
124: public static byte[] exportLayouts(long groupId,
125: boolean privateLayout, java.util.Map parameterMap)
126: throws com.liferay.portal.PortalException,
127: com.liferay.portal.SystemException,
128: java.rmi.RemoteException {
129: LayoutService layoutService = LayoutServiceFactory.getService();
130:
131: return layoutService.exportLayouts(groupId, privateLayout,
132: parameterMap);
133: }
134:
135: public static byte[] exportLayouts(long groupId,
136: boolean privateLayout, long[] layoutIds,
137: java.util.Map parameterMap)
138: throws com.liferay.portal.PortalException,
139: com.liferay.portal.SystemException,
140: java.rmi.RemoteException {
141: LayoutService layoutService = LayoutServiceFactory.getService();
142:
143: return layoutService.exportLayouts(groupId, privateLayout,
144: layoutIds, parameterMap);
145: }
146:
147: public static byte[] exportPortletInfo(long plid,
148: java.lang.String portletId, java.util.Map parameterMap)
149: throws com.liferay.portal.PortalException,
150: com.liferay.portal.SystemException,
151: java.rmi.RemoteException {
152: LayoutService layoutService = LayoutServiceFactory.getService();
153:
154: return layoutService.exportPortletInfo(plid, portletId,
155: parameterMap);
156: }
157:
158: public static void importLayouts(long groupId,
159: boolean privateLayout, java.util.Map parameterMap,
160: java.io.File file)
161: throws com.liferay.portal.PortalException,
162: com.liferay.portal.SystemException,
163: java.rmi.RemoteException {
164: LayoutService layoutService = LayoutServiceFactory.getService();
165:
166: layoutService.importLayouts(groupId, privateLayout,
167: parameterMap, file);
168: }
169:
170: public static void importLayouts(long groupId,
171: boolean privateLayout, java.util.Map parameterMap,
172: java.io.InputStream is)
173: throws com.liferay.portal.PortalException,
174: com.liferay.portal.SystemException,
175: java.rmi.RemoteException {
176: LayoutService layoutService = LayoutServiceFactory.getService();
177:
178: layoutService.importLayouts(groupId, privateLayout,
179: parameterMap, is);
180: }
181:
182: public static void importPortletInfo(long plid,
183: java.lang.String portletId, java.util.Map parameterMap,
184: java.io.File file)
185: throws com.liferay.portal.PortalException,
186: com.liferay.portal.SystemException,
187: java.rmi.RemoteException {
188: LayoutService layoutService = LayoutServiceFactory.getService();
189:
190: layoutService.importPortletInfo(plid, portletId, parameterMap,
191: file);
192: }
193:
194: public static void importPortletInfo(long plid,
195: java.lang.String portletId, java.util.Map parameterMap,
196: java.io.InputStream is)
197: throws com.liferay.portal.PortalException,
198: com.liferay.portal.SystemException,
199: java.rmi.RemoteException {
200: LayoutService layoutService = LayoutServiceFactory.getService();
201:
202: layoutService.importPortletInfo(plid, portletId, parameterMap,
203: is);
204: }
205:
206: public static void setLayouts(long groupId, boolean privateLayout,
207: long parentLayoutId, long[] layoutIds)
208: throws com.liferay.portal.PortalException,
209: com.liferay.portal.SystemException,
210: java.rmi.RemoteException {
211: LayoutService layoutService = LayoutServiceFactory.getService();
212:
213: layoutService.setLayouts(groupId, privateLayout,
214: parentLayoutId, layoutIds);
215: }
216:
217: public static com.liferay.portal.model.Layout updateLayout(
218: long groupId, boolean privateLayout, long layoutId,
219: long parentLayoutId, java.util.Map localeNamesMap,
220: java.util.Map localeTitlesMap,
221: java.lang.String description, java.lang.String type,
222: boolean hidden, java.lang.String friendlyURL)
223: throws com.liferay.portal.PortalException,
224: com.liferay.portal.SystemException,
225: java.rmi.RemoteException {
226: LayoutService layoutService = LayoutServiceFactory.getService();
227:
228: return layoutService
229: .updateLayout(groupId, privateLayout, layoutId,
230: parentLayoutId, localeNamesMap,
231: localeTitlesMap, description, type, hidden,
232: friendlyURL);
233: }
234:
235: public static com.liferay.portal.model.Layout updateLayout(
236: long groupId, boolean privateLayout, long layoutId,
237: long parentLayoutId, java.util.Map localeNamesMap,
238: java.util.Map localeTitlesMap,
239: java.lang.String description, java.lang.String type,
240: boolean hidden, java.lang.String friendlyURL,
241: java.lang.Boolean iconImage, byte[] iconBytes)
242: throws com.liferay.portal.PortalException,
243: com.liferay.portal.SystemException,
244: java.rmi.RemoteException {
245: LayoutService layoutService = LayoutServiceFactory.getService();
246:
247: return layoutService.updateLayout(groupId, privateLayout,
248: layoutId, parentLayoutId, localeNamesMap,
249: localeTitlesMap, description, type, hidden,
250: friendlyURL, iconImage, iconBytes);
251: }
252:
253: public static com.liferay.portal.model.Layout updateLayout(
254: long groupId, boolean privateLayout, long layoutId,
255: java.lang.String typeSettings)
256: throws com.liferay.portal.PortalException,
257: com.liferay.portal.SystemException,
258: java.rmi.RemoteException {
259: LayoutService layoutService = LayoutServiceFactory.getService();
260:
261: return layoutService.updateLayout(groupId, privateLayout,
262: layoutId, typeSettings);
263: }
264:
265: public static com.liferay.portal.model.Layout updateLookAndFeel(
266: long groupId, boolean privateLayout, long layoutId,
267: java.lang.String themeId, java.lang.String colorSchemeId,
268: java.lang.String css, boolean wapTheme)
269: throws com.liferay.portal.PortalException,
270: com.liferay.portal.SystemException,
271: java.rmi.RemoteException {
272: LayoutService layoutService = LayoutServiceFactory.getService();
273:
274: return layoutService.updateLookAndFeel(groupId, privateLayout,
275: layoutId, themeId, colorSchemeId, css, wapTheme);
276: }
277:
278: public static com.liferay.portal.model.Layout updateName(long plid,
279: java.lang.String name, java.lang.String languageId)
280: throws com.liferay.portal.PortalException,
281: com.liferay.portal.SystemException,
282: java.rmi.RemoteException {
283: LayoutService layoutService = LayoutServiceFactory.getService();
284:
285: return layoutService.updateName(plid, name, languageId);
286: }
287:
288: public static com.liferay.portal.model.Layout updateName(
289: long groupId, boolean privateLayout, long layoutId,
290: java.lang.String name, java.lang.String languageId)
291: throws com.liferay.portal.PortalException,
292: com.liferay.portal.SystemException,
293: java.rmi.RemoteException {
294: LayoutService layoutService = LayoutServiceFactory.getService();
295:
296: return layoutService.updateName(groupId, privateLayout,
297: layoutId, name, languageId);
298: }
299:
300: public static com.liferay.portal.model.Layout updateParentLayoutId(
301: long plid, long parentPlid)
302: throws com.liferay.portal.PortalException,
303: com.liferay.portal.SystemException,
304: java.rmi.RemoteException {
305: LayoutService layoutService = LayoutServiceFactory.getService();
306:
307: return layoutService.updateParentLayoutId(plid, parentPlid);
308: }
309:
310: public static com.liferay.portal.model.Layout updateParentLayoutId(
311: long groupId, boolean privateLayout, long layoutId,
312: long parentLayoutId)
313: throws com.liferay.portal.PortalException,
314: com.liferay.portal.SystemException,
315: java.rmi.RemoteException {
316: LayoutService layoutService = LayoutServiceFactory.getService();
317:
318: return layoutService.updateParentLayoutId(groupId,
319: privateLayout, layoutId, parentLayoutId);
320: }
321:
322: public static com.liferay.portal.model.Layout updatePriority(
323: long plid, int priority)
324: throws com.liferay.portal.PortalException,
325: com.liferay.portal.SystemException,
326: java.rmi.RemoteException {
327: LayoutService layoutService = LayoutServiceFactory.getService();
328:
329: return layoutService.updatePriority(plid, priority);
330: }
331:
332: public static com.liferay.portal.model.Layout updatePriority(
333: long groupId, boolean privateLayout, long layoutId,
334: int priority) throws com.liferay.portal.PortalException,
335: com.liferay.portal.SystemException,
336: java.rmi.RemoteException {
337: LayoutService layoutService = LayoutServiceFactory.getService();
338:
339: return layoutService.updatePriority(groupId, privateLayout,
340: layoutId, priority);
341: }
342: }
|