1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface PortletLocalService {
57 public com.liferay.portal.model.Portlet addPortlet(
58 com.liferay.portal.model.Portlet portlet)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portal.model.Portlet createPortlet(long id);
62
63 public void deletePortlet(long id)
64 throws com.liferay.portal.SystemException,
65 com.liferay.portal.PortalException;
66
67 public void deletePortlet(com.liferay.portal.model.Portlet portlet)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portal.model.Portlet getPortlet(long id)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getPortletsCount() throws com.liferay.portal.SystemException;
89
90 public com.liferay.portal.model.Portlet updatePortlet(
91 com.liferay.portal.model.Portlet portlet)
92 throws com.liferay.portal.SystemException;
93
94 public void destroyPortlet(com.liferay.portal.model.Portlet portlet);
95
96 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97 public com.liferay.portal.model.PortletCategory getEARDisplay(
98 java.lang.String xml) throws com.liferay.portal.SystemException;
99
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public com.liferay.portal.model.PortletCategory getWARDisplay(
102 java.lang.String servletContextName, java.lang.String xml)
103 throws com.liferay.portal.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers();
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portal.model.Portlet getPortletById(long companyId,
110 java.lang.String portletId) throws com.liferay.portal.SystemException;
111
112 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113 public com.liferay.portal.model.Portlet getPortletByStrutsPath(
114 long companyId, java.lang.String strutsPath)
115 throws com.liferay.portal.SystemException;
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public java.util.List<com.liferay.portal.model.Portlet> getPortlets();
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
122 long companyId) throws com.liferay.portal.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<com.liferay.portal.model.Portlet> getPortlets(
126 long companyId, boolean showSystem, boolean showPortal)
127 throws com.liferay.portal.SystemException;
128
129 public boolean hasPortlet(long companyId, java.lang.String portletId)
130 throws com.liferay.portal.SystemException;
131
132 public void initEAR(java.lang.String[] xmls,
133 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
134
135 public java.util.List<com.liferay.portal.model.Portlet> initWAR(
136 java.lang.String servletContextName, java.lang.String[] xmls,
137 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage);
138
139 public com.liferay.portal.model.Portlet updatePortlet(long companyId,
140 java.lang.String portletId, java.lang.String roles, boolean active)
141 throws com.liferay.portal.SystemException;
142 }