001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface PortletLocalService {
043
050 public com.liferay.portal.model.Portlet addPortlet(
051 com.liferay.portal.model.Portlet portlet)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portal.model.Portlet createPortlet(long id);
061
062
069 public void deletePortlet(long id)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deletePortlet(com.liferay.portal.model.Portlet portlet)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.Portlet getPortlet(long id)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
171 int start, int end)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public int getPortletsCount()
182 throws com.liferay.portal.kernel.exception.SystemException;
183
184
191 public com.liferay.portal.model.Portlet updatePortlet(
192 com.liferay.portal.model.Portlet portlet)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195
203 public com.liferay.portal.model.Portlet updatePortlet(
204 com.liferay.portal.model.Portlet portlet, boolean merge)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207 public void checkPortlet(com.liferay.portal.model.Portlet portlet)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException;
210
211 public void checkPortlets(long companyId)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 public void clearCache();
216
217 public com.liferay.portal.model.Portlet clonePortlet(long companyId,
218 java.lang.String portletId)
219 throws com.liferay.portal.kernel.exception.SystemException;
220
221 public com.liferay.portal.model.Portlet deployRemotePortlet(
222 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
226
227 public void destroyRemotePortlet(com.liferay.portal.model.Portlet portlet);
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays();
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portal.model.PortletCategory getEARDisplay(
234 java.lang.String xml)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets();
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portal.model.PortletApp getPortletApp(
245 java.lang.String servletContextName);
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portal.model.Portlet getPortletById(long companyId,
249 java.lang.String portletId)
250 throws com.liferay.portal.kernel.exception.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portal.model.Portlet getPortletById(
254 java.lang.String portletId);
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
258 long companyId, java.lang.String strutsPath)
259 throws com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
266 long companyId)
267 throws com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
271 long companyId, boolean showSystem, boolean showPortal)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public com.liferay.portal.model.PortletCategory getWARDisplay(
276 java.lang.String servletContextName, java.lang.String xml)
277 throws com.liferay.portal.kernel.exception.SystemException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public boolean hasPortlet(long companyId, java.lang.String portletId)
281 throws com.liferay.portal.kernel.exception.SystemException;
282
283 public void initEAR(javax.servlet.ServletContext servletContext,
284 java.lang.String[] xmls,
285 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
286
287 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
288 java.lang.String servletContextName,
289 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
290 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
291
292 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
293 java.lang.String portletId, java.lang.String roles, boolean active)
294 throws com.liferay.portal.kernel.exception.SystemException;
295 }