1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class PortletLocalServiceUtil {
40 public static com.liferay.portal.model.Portlet addPortlet(
41 com.liferay.portal.model.Portlet portlet)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addPortlet(portlet);
44 }
45
46 public static com.liferay.portal.model.Portlet createPortlet(long id) {
47 return getService().createPortlet(id);
48 }
49
50 public static void deletePortlet(long id)
51 throws com.liferay.portal.kernel.exception.PortalException,
52 com.liferay.portal.kernel.exception.SystemException {
53 getService().deletePortlet(id);
54 }
55
56 public static void deletePortlet(com.liferay.portal.model.Portlet portlet)
57 throws com.liferay.portal.kernel.exception.SystemException {
58 getService().deletePortlet(portlet);
59 }
60
61 public static java.util.List<Object> dynamicQuery(
62 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
63 throws com.liferay.portal.kernel.exception.SystemException {
64 return getService().dynamicQuery(dynamicQuery);
65 }
66
67 public static java.util.List<Object> dynamicQuery(
68 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69 int end) throws com.liferay.portal.kernel.exception.SystemException {
70 return getService().dynamicQuery(dynamicQuery, start, end);
71 }
72
73 public static java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException {
78 return getService()
79 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
80 }
81
82 public static int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Portlet getPortlet(long id)
89 throws com.liferay.portal.kernel.exception.PortalException,
90 com.liferay.portal.kernel.exception.SystemException {
91 return getService().getPortlet(id);
92 }
93
94 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
95 int start, int end)
96 throws com.liferay.portal.kernel.exception.SystemException {
97 return getService().getPortlets(start, end);
98 }
99
100 public static int getPortletsCount()
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().getPortletsCount();
103 }
104
105 public static com.liferay.portal.model.Portlet updatePortlet(
106 com.liferay.portal.model.Portlet portlet)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().updatePortlet(portlet);
109 }
110
111 public static com.liferay.portal.model.Portlet updatePortlet(
112 com.liferay.portal.model.Portlet portlet, boolean merge)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updatePortlet(portlet, merge);
115 }
116
117 public static void checkPortlet(com.liferay.portal.model.Portlet portlet)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 getService().checkPortlet(portlet);
121 }
122
123 public static void checkPortlets(long companyId)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 getService().checkPortlets(companyId);
127 }
128
129 public static void clearCache() {
130 getService().clearCache();
131 }
132
133 public static com.liferay.portal.model.Portlet deployRemotePortlet(
134 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().deployRemotePortlet(portlet, categoryName);
137 }
138
139 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
140 getService().destroyPortlet(portlet);
141 }
142
143 public static void destroyRemotePortlet(
144 com.liferay.portal.model.Portlet portlet) {
145 getService().destroyRemotePortlet(portlet);
146 }
147
148 public static java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
149 return getService().getCustomAttributesDisplays();
150 }
151
152 public static com.liferay.portal.model.PortletCategory getEARDisplay(
153 java.lang.String xml)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getService().getEARDisplay(xml);
156 }
157
158 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
159 return getService().getFriendlyURLMapperPortlets();
160 }
161
162 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
163 return getService().getFriendlyURLMappers();
164 }
165
166 public static com.liferay.portal.model.PortletApp getPortletApp(
167 java.lang.String servletContextName) {
168 return getService().getPortletApp(servletContextName);
169 }
170
171 public static com.liferay.portal.model.Portlet getPortletById(
172 long companyId, java.lang.String portletId)
173 throws com.liferay.portal.kernel.exception.SystemException {
174 return getService().getPortletById(companyId, portletId);
175 }
176
177 public static com.liferay.portal.model.Portlet getPortletById(
178 java.lang.String portletId) {
179 return getService().getPortletById(portletId);
180 }
181
182 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
183 long companyId, java.lang.String strutsPath)
184 throws com.liferay.portal.kernel.exception.SystemException {
185 return getService().getPortletByStrutsPath(companyId, strutsPath);
186 }
187
188 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
189 return getService().getPortlets();
190 }
191
192 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
193 long companyId)
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getService().getPortlets(companyId);
196 }
197
198 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
199 long companyId, boolean showSystem, boolean showPortal)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getService().getPortlets(companyId, showSystem, showPortal);
202 }
203
204 public static com.liferay.portal.model.PortletCategory getWARDisplay(
205 java.lang.String servletContextName, java.lang.String xml)
206 throws com.liferay.portal.kernel.exception.SystemException {
207 return getService().getWARDisplay(servletContextName, xml);
208 }
209
210 public static boolean hasPortlet(long companyId, java.lang.String portletId)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().hasPortlet(companyId, portletId);
213 }
214
215 public static void initEAR(javax.servlet.ServletContext servletContext,
216 java.lang.String[] xmls,
217 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
218 getService().initEAR(servletContext, xmls, pluginPackage);
219 }
220
221 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
222 java.lang.String servletContextName,
223 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
224 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
225 return getService()
226 .initWAR(servletContextName, servletContext, xmls,
227 pluginPackage);
228 }
229
230 public static com.liferay.portal.model.Portlet clonePortlet(
231 long companyId, java.lang.String portletId)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().clonePortlet(companyId, portletId);
234 }
235
236 public static com.liferay.portal.model.Portlet updatePortlet(
237 long companyId, java.lang.String portletId, java.lang.String roles,
238 boolean active)
239 throws com.liferay.portal.kernel.exception.SystemException {
240 return getService().updatePortlet(companyId, portletId, roles, active);
241 }
242
243 public static PortletLocalService getService() {
244 if (_service == null) {
245 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
246 }
247
248 return _service;
249 }
250
251 public void setService(PortletLocalService service) {
252 _service = service;
253 }
254
255 private static PortletLocalService _service;
256 }