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
035 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
036 PortalException.class, SystemException.class})
037 public interface PortletLocalService extends BaseLocalService,
038 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
072 public com.liferay.portal.model.Portlet deletePortlet(long id)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076
083 public com.liferay.portal.model.Portlet deletePortlet(
084 com.liferay.portal.model.Portlet portlet)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
088
089
096 @SuppressWarnings("rawtypes")
097 public java.util.List dynamicQuery(
098 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101
114 @SuppressWarnings("rawtypes")
115 public java.util.List dynamicQuery(
116 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
117 int end) throws com.liferay.portal.kernel.exception.SystemException;
118
119
133 @SuppressWarnings("rawtypes")
134 public java.util.List dynamicQuery(
135 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
136 int end,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140
147 public long dynamicQueryCount(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
161 com.liferay.portal.kernel.dao.orm.Projection projection)
162 throws com.liferay.portal.kernel.exception.SystemException;
163
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.Portlet fetchPortlet(long id)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portal.model.Portlet getPortlet(long id)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181 @Override
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public com.liferay.portal.model.PersistedModel getPersistedModel(
184 java.io.Serializable primaryKeyObj)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187
188
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
202 int start, int end)
203 throws com.liferay.portal.kernel.exception.SystemException;
204
205
211 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
212 public int getPortletsCount()
213 throws com.liferay.portal.kernel.exception.SystemException;
214
215
222 public com.liferay.portal.model.Portlet updatePortlet(
223 com.liferay.portal.model.Portlet portlet)
224 throws com.liferay.portal.kernel.exception.SystemException;
225
226
231 public java.lang.String getBeanIdentifier();
232
233
238 public void setBeanIdentifier(java.lang.String beanIdentifier);
239
240 public void addPortletCategory(long companyId, java.lang.String categoryName);
241
242 public void checkPortlet(com.liferay.portal.model.Portlet portlet)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException;
245
246 public void checkPortlets(long companyId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void clearCache();
251
252 public void clearCompanyPortletsPool();
253
254
257 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
258 java.lang.String portletId);
259
260 public com.liferay.portal.model.Portlet clonePortlet(
261 java.lang.String portletId);
262
263 public void deletePortlet(long companyId, java.lang.String portletId,
264 long plid)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 public void deletePortlets(long companyId, java.lang.String[] portletIds,
269 long plid)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException;
272
273 public com.liferay.portal.model.Portlet deployRemotePortlet(
274 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public com.liferay.portal.model.Portlet deployRemotePortlet(
279 com.liferay.portal.model.Portlet portlet,
280 java.lang.String[] categoryNames)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
285
286 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portal.model.PortletCategory getEARDisplay(
293 java.lang.String xml)
294 throws com.liferay.portal.kernel.exception.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public com.liferay.portal.model.PortletApp getPortletApp(
304 java.lang.String servletContextName);
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public com.liferay.portal.model.Portlet getPortletById(long companyId,
308 java.lang.String portletId)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public com.liferay.portal.model.Portlet getPortletById(
313 java.lang.String portletId);
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
317 long companyId, java.lang.String strutsPath)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
325 long companyId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
330 long companyId, boolean showSystem, boolean showPortal)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
334 public java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets();
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public com.liferay.portal.model.PortletCategory getWARDisplay(
338 java.lang.String servletContextName, java.lang.String xml)
339 throws com.liferay.portal.kernel.exception.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public boolean hasPortlet(long companyId, java.lang.String portletId)
343 throws com.liferay.portal.kernel.exception.SystemException;
344
345 public void initEAR(javax.servlet.ServletContext servletContext,
346 java.lang.String[] xmls,
347 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
348
349 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
350 java.lang.String servletContextName,
351 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
352 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
353
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
356 long companyId)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 public void removeCompanyPortletsPool(long companyId);
360
361 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
362 java.lang.String portletId, java.lang.String roles, boolean active)
363 throws com.liferay.portal.kernel.exception.SystemException;
364 }