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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public com.liferay.portal.model.Portlet fetchPortlet(long id)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public com.liferay.portal.model.Portlet getPortlet(long id)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getPortletsCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portal.model.Portlet updatePortlet(
204 com.liferay.portal.model.Portlet portlet)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portal.model.Portlet updatePortlet(
216 com.liferay.portal.model.Portlet portlet, boolean merge)
217 throws com.liferay.portal.kernel.exception.SystemException;
218
219
224 public java.lang.String getBeanIdentifier();
225
226
231 public void setBeanIdentifier(java.lang.String beanIdentifier);
232
233 public void addPortletCategory(long companyId, java.lang.String categoryName);
234
235 public void checkPortlet(com.liferay.portal.model.Portlet portlet)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public void checkPortlets(long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243 public void clearCache();
244
245 public void clearCompanyPortletsPool();
246
247
250 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
251 java.lang.String portletId);
252
253 public com.liferay.portal.model.Portlet clonePortlet(
254 java.lang.String portletId);
255
256 public com.liferay.portal.model.Portlet deployRemotePortlet(
257 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public com.liferay.portal.model.Portlet deployRemotePortlet(
262 com.liferay.portal.model.Portlet portlet,
263 java.lang.String[] categoryNames)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
268
269 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portal.model.PortletCategory getEARDisplay(
276 java.lang.String xml)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portal.model.PortletApp getPortletApp(
287 java.lang.String servletContextName);
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public com.liferay.portal.model.Portlet getPortletById(long companyId,
291 java.lang.String portletId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295 public com.liferay.portal.model.Portlet getPortletById(
296 java.lang.String portletId);
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
300 long companyId, java.lang.String strutsPath)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
308 long companyId)
309 throws com.liferay.portal.kernel.exception.SystemException;
310
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
313 long companyId, boolean showSystem, boolean showPortal)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public java.util.List<com.liferay.portal.model.Portlet> getScopablePortlets();
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public com.liferay.portal.model.PortletCategory getWARDisplay(
321 java.lang.String servletContextName, java.lang.String xml)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public boolean hasPortlet(long companyId, java.lang.String portletId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328 public void initEAR(javax.servlet.ServletContext servletContext,
329 java.lang.String[] xmls,
330 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
331
332 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
333 java.lang.String servletContextName,
334 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
335 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public java.util.Map<java.lang.String, com.liferay.portal.model.Portlet> loadGetPortletsPool(
339 long companyId)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 public void removeCompanyPortletsPool(long companyId);
343
344 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
345 java.lang.String portletId, java.lang.String roles, boolean active)
346 throws com.liferay.portal.kernel.exception.SystemException;
347 }