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 BaseLocalService,
039 PersistedModelLocalService {
040
045
046
053 public com.liferay.portal.model.Portlet addPortlet(
054 com.liferay.portal.model.Portlet portlet)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portal.model.Portlet createPortlet(long id);
064
065
073 public com.liferay.portal.model.Portlet deletePortlet(long id)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
084 public com.liferay.portal.model.Portlet deletePortlet(
085 com.liferay.portal.model.Portlet portlet)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
089
090
097 @SuppressWarnings("rawtypes")
098 public java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102
115 @SuppressWarnings("rawtypes")
116 public java.util.List dynamicQuery(
117 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
118 int end) throws com.liferay.portal.kernel.exception.SystemException;
119
120
134 @SuppressWarnings("rawtypes")
135 public java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141
148 public long dynamicQueryCount(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.Portlet fetchPortlet(long id)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
164 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
165 public com.liferay.portal.model.Portlet getPortlet(long id)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portal.model.PersistedModel getPersistedModel(
171 java.io.Serializable primaryKeyObj)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getPortletsCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portal.model.Portlet updatePortlet(
210 com.liferay.portal.model.Portlet portlet)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portal.model.Portlet updatePortlet(
222 com.liferay.portal.model.Portlet portlet, boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
230 public java.lang.String getBeanIdentifier();
231
232
237 public void setBeanIdentifier(java.lang.String beanIdentifier);
238
239 public void addPortletCategory(long companyId, java.lang.String categoryName);
240
241 public void checkPortlet(com.liferay.portal.model.Portlet portlet)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 public void checkPortlets(long companyId)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException;
248
249 public void clearCache();
250
251 public void clearCompanyPortletsPool();
252
253
256 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
257 java.lang.String portletId);
258
259 public com.liferay.portal.model.Portlet clonePortlet(
260 java.lang.String portletId);
261
262 public void deletePortlet(long companyId, java.lang.String portletId,
263 long plid)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void deletePortlets(long companyId, java.lang.String[] portletIds,
268 long plid)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public com.liferay.portal.model.Portlet deployRemotePortlet(
273 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException;
276
277 public com.liferay.portal.model.Portlet deployRemotePortlet(
278 com.liferay.portal.model.Portlet portlet,
279 java.lang.String[] categoryNames)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException;
282
283 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
284
285 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
286
287 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
288 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public com.liferay.portal.model.PortletCategory getEARDisplay(
292 java.lang.String xml)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public com.liferay.portal.model.PortletApp getPortletApp(
303 java.lang.String servletContextName);
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public com.liferay.portal.model.Portlet getPortletById(long companyId,
307 java.lang.String portletId)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portal.model.Portlet getPortletById(
312 java.lang.String portletId);
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
316 long companyId, java.lang.String strutsPath)
317 throws com.liferay.portal.kernel.exception.SystemException;
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
321
322 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
323 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
324 long companyId)
325 throws com.liferay.portal.kernel.exception.SystemException;
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
329 long companyId, boolean showSystem, boolean showPortal)
330 throws com.liferay.portal.kernel.exception.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets();
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public com.liferay.portal.model.PortletCategory getWARDisplay(
337 java.lang.String servletContextName, java.lang.String xml)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
341 public boolean hasPortlet(long companyId, java.lang.String portletId)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344 public void initEAR(javax.servlet.ServletContext servletContext,
345 java.lang.String[] xmls,
346 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
347
348 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
349 java.lang.String servletContextName,
350 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
351 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
355 long companyId)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358 public void removeCompanyPortletsPool(long companyId);
359
360 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
361 java.lang.String portletId, java.lang.String roles, boolean active)
362 throws com.liferay.portal.kernel.exception.SystemException;
363 }