001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface PortletLocalService extends PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.Portlet addPortlet(
053 com.liferay.portal.model.Portlet portlet)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.Portlet createPortlet(long id);
063
064
071 public void deletePortlet(long id)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075
081 public void deletePortlet(com.liferay.portal.model.Portlet portlet)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.model.Portlet getPortlet(long id)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portal.model.PersistedModel getPersistedModel(
161 java.io.Serializable primaryKeyObj)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
179 int start, int end)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public int getPortletsCount()
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
199 public com.liferay.portal.model.Portlet updatePortlet(
200 com.liferay.portal.model.Portlet portlet)
201 throws com.liferay.portal.kernel.exception.SystemException;
202
203
211 public com.liferay.portal.model.Portlet updatePortlet(
212 com.liferay.portal.model.Portlet portlet, boolean merge)
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215
220 public java.lang.String getBeanIdentifier();
221
222
227 public void setBeanIdentifier(java.lang.String beanIdentifier);
228
229 public void addPortletCategory(long companyId, java.lang.String categoryName);
230
231 public void checkPortlet(com.liferay.portal.model.Portlet portlet)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public void checkPortlets(long companyId)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public void clearCache();
240
241
244 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
245 java.lang.String portletId);
246
247 public com.liferay.portal.model.Portlet clonePortlet(
248 java.lang.String portletId);
249
250 public com.liferay.portal.model.Portlet deployRemotePortlet(
251 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 public com.liferay.portal.model.Portlet deployRemotePortlet(
256 com.liferay.portal.model.Portlet portlet,
257 java.lang.String[] categoryNames)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
262
263 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public com.liferay.portal.model.PortletCategory getEARDisplay(
270 java.lang.String xml)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portal.model.PortletApp getPortletApp(
281 java.lang.String servletContextName);
282
283 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
284 public com.liferay.portal.model.Portlet getPortletById(long companyId,
285 java.lang.String portletId)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public com.liferay.portal.model.Portlet getPortletById(
290 java.lang.String portletId);
291
292 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
294 long companyId, java.lang.String strutsPath)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
302 long companyId)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
307 long companyId, boolean showSystem, boolean showPortal)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portal.model.PortletCategory getWARDisplay(
312 java.lang.String servletContextName, java.lang.String xml)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public boolean hasPortlet(long companyId, java.lang.String portletId)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 public void initEAR(javax.servlet.ServletContext servletContext,
320 java.lang.String[] xmls,
321 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
322
323 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
324 java.lang.String servletContextName,
325 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
326 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
327
328 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
329 java.lang.String portletId, java.lang.String roles, boolean active)
330 throws com.liferay.portal.kernel.exception.SystemException;
331 }