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="LayoutService.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 interface defines the service. The default implementation is
033: * <code>com.liferay.portal.service.impl.LayoutServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.LayoutServiceFactory
045: * @see com.liferay.portal.service.LayoutServiceUtil
046: *
047: */
048: public interface LayoutService {
049: public com.liferay.portal.model.Layout addLayout(long groupId,
050: boolean privateLayout, long parentLayoutId,
051: java.lang.String name, java.lang.String title,
052: java.lang.String description, java.lang.String type,
053: boolean hidden, java.lang.String friendlyURL)
054: throws java.rmi.RemoteException,
055: com.liferay.portal.SystemException,
056: com.liferay.portal.PortalException;
057:
058: public com.liferay.portal.model.Layout addLayout(long groupId,
059: boolean privateLayout, long parentLayoutId,
060: java.util.Map localeNamesMap,
061: java.util.Map localeTitlesMap,
062: java.lang.String description, java.lang.String type,
063: boolean hidden, java.lang.String friendlyURL)
064: throws java.rmi.RemoteException,
065: com.liferay.portal.SystemException,
066: com.liferay.portal.PortalException;
067:
068: public void deleteLayout(long plid)
069: throws java.rmi.RemoteException,
070: com.liferay.portal.SystemException,
071: com.liferay.portal.PortalException;
072:
073: public void deleteLayout(long groupId, boolean privateLayout,
074: long layoutId) throws java.rmi.RemoteException,
075: com.liferay.portal.SystemException,
076: com.liferay.portal.PortalException;
077:
078: public java.lang.String getLayoutName(long groupId,
079: boolean privateLayout, long layoutId,
080: java.lang.String languageId)
081: throws java.rmi.RemoteException,
082: com.liferay.portal.SystemException,
083: com.liferay.portal.PortalException;
084:
085: public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
086: long companyId, java.lang.String portletId,
087: java.lang.String prefsKey, java.lang.String prefsValue)
088: throws java.rmi.RemoteException,
089: com.liferay.portal.SystemException;
090:
091: public byte[] exportLayouts(long groupId, boolean privateLayout,
092: java.util.Map parameterMap)
093: throws java.rmi.RemoteException,
094: com.liferay.portal.SystemException,
095: com.liferay.portal.PortalException;
096:
097: public byte[] exportLayouts(long groupId, boolean privateLayout,
098: long[] layoutIds, java.util.Map parameterMap)
099: throws java.rmi.RemoteException,
100: com.liferay.portal.SystemException,
101: com.liferay.portal.PortalException;
102:
103: public byte[] exportPortletInfo(long plid,
104: java.lang.String portletId, java.util.Map parameterMap)
105: throws java.rmi.RemoteException,
106: com.liferay.portal.SystemException,
107: com.liferay.portal.PortalException;
108:
109: public void importLayouts(long groupId, boolean privateLayout,
110: java.util.Map parameterMap, java.io.File file)
111: throws java.rmi.RemoteException,
112: com.liferay.portal.SystemException,
113: com.liferay.portal.PortalException;
114:
115: public void importLayouts(long groupId, boolean privateLayout,
116: java.util.Map parameterMap, java.io.InputStream is)
117: throws java.rmi.RemoteException,
118: com.liferay.portal.SystemException,
119: com.liferay.portal.PortalException;
120:
121: public void importPortletInfo(long plid,
122: java.lang.String portletId, java.util.Map parameterMap,
123: java.io.File file) throws java.rmi.RemoteException,
124: com.liferay.portal.SystemException,
125: com.liferay.portal.PortalException;
126:
127: public void importPortletInfo(long plid,
128: java.lang.String portletId, java.util.Map parameterMap,
129: java.io.InputStream is) throws java.rmi.RemoteException,
130: com.liferay.portal.SystemException,
131: com.liferay.portal.PortalException;
132:
133: public void setLayouts(long groupId, boolean privateLayout,
134: long parentLayoutId, long[] layoutIds)
135: throws java.rmi.RemoteException,
136: com.liferay.portal.SystemException,
137: com.liferay.portal.PortalException;
138:
139: public com.liferay.portal.model.Layout updateLayout(long groupId,
140: boolean privateLayout, long layoutId, long parentLayoutId,
141: java.util.Map localeNamesMap,
142: java.util.Map localeTitlesMap,
143: java.lang.String description, java.lang.String type,
144: boolean hidden, java.lang.String friendlyURL)
145: throws java.rmi.RemoteException,
146: com.liferay.portal.SystemException,
147: com.liferay.portal.PortalException;
148:
149: public com.liferay.portal.model.Layout updateLayout(long groupId,
150: boolean privateLayout, long layoutId, long parentLayoutId,
151: java.util.Map localeNamesMap,
152: java.util.Map localeTitlesMap,
153: java.lang.String description, java.lang.String type,
154: boolean hidden, java.lang.String friendlyURL,
155: java.lang.Boolean iconImage, byte[] iconBytes)
156: throws java.rmi.RemoteException,
157: com.liferay.portal.SystemException,
158: com.liferay.portal.PortalException;
159:
160: public com.liferay.portal.model.Layout updateLayout(long groupId,
161: boolean privateLayout, long layoutId,
162: java.lang.String typeSettings)
163: throws java.rmi.RemoteException,
164: com.liferay.portal.SystemException,
165: com.liferay.portal.PortalException;
166:
167: public com.liferay.portal.model.Layout updateLookAndFeel(
168: long groupId, boolean privateLayout, long layoutId,
169: java.lang.String themeId, java.lang.String colorSchemeId,
170: java.lang.String css, boolean wapTheme)
171: throws java.rmi.RemoteException,
172: com.liferay.portal.SystemException,
173: com.liferay.portal.PortalException;
174:
175: public com.liferay.portal.model.Layout updateName(long plid,
176: java.lang.String name, java.lang.String languageId)
177: throws java.rmi.RemoteException,
178: com.liferay.portal.SystemException,
179: com.liferay.portal.PortalException;
180:
181: public com.liferay.portal.model.Layout updateName(long groupId,
182: boolean privateLayout, long layoutId,
183: java.lang.String name, java.lang.String languageId)
184: throws java.rmi.RemoteException,
185: com.liferay.portal.SystemException,
186: com.liferay.portal.PortalException;
187:
188: public com.liferay.portal.model.Layout updateParentLayoutId(
189: long plid, long parentPlid)
190: throws java.rmi.RemoteException,
191: com.liferay.portal.SystemException,
192: com.liferay.portal.PortalException;
193:
194: public com.liferay.portal.model.Layout updateParentLayoutId(
195: long groupId, boolean privateLayout, long layoutId,
196: long parentLayoutId) throws java.rmi.RemoteException,
197: com.liferay.portal.SystemException,
198: com.liferay.portal.PortalException;
199:
200: public com.liferay.portal.model.Layout updatePriority(long plid,
201: int priority) throws java.rmi.RemoteException,
202: com.liferay.portal.SystemException,
203: com.liferay.portal.PortalException;
204:
205: public com.liferay.portal.model.Layout updatePriority(long groupId,
206: boolean privateLayout, long layoutId, int priority)
207: throws java.rmi.RemoteException,
208: com.liferay.portal.SystemException,
209: com.liferay.portal.PortalException;
210: }
|