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 public void clearCompanyPortletsPool();
242
243
246 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
247 java.lang.String portletId);
248
249 public com.liferay.portal.model.Portlet clonePortlet(
250 java.lang.String portletId);
251
252 public com.liferay.portal.model.Portlet deployRemotePortlet(
253 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException;
256
257 public com.liferay.portal.model.Portlet deployRemotePortlet(
258 com.liferay.portal.model.Portlet portlet,
259 java.lang.String[] categoryNames)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
264
265 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
269
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public com.liferay.portal.model.PortletCategory getEARDisplay(
272 java.lang.String xml)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
276 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
280
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public com.liferay.portal.model.PortletApp getPortletApp(
283 java.lang.String servletContextName);
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portal.model.Portlet getPortletById(long companyId,
287 java.lang.String portletId)
288 throws com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public com.liferay.portal.model.Portlet getPortletById(
292 java.lang.String portletId);
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
296 long companyId, java.lang.String strutsPath)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
301
302 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
304 long companyId)
305 throws com.liferay.portal.kernel.exception.SystemException;
306
307 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
309 long companyId, boolean showSystem, boolean showPortal)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public com.liferay.portal.model.PortletCategory getWARDisplay(
314 java.lang.String servletContextName, java.lang.String xml)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public boolean hasPortlet(long companyId, java.lang.String portletId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 public void initEAR(javax.servlet.ServletContext servletContext,
322 java.lang.String[] xmls,
323 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
324
325 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
326 java.lang.String servletContextName,
327 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
328 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
332 long companyId)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335 public void removeCompanyPortletsPool(long companyId);
336
337 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
338 java.lang.String portletId, java.lang.String roles, boolean active)
339 throws com.liferay.portal.kernel.exception.SystemException;
340 }