001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class PortletLocalServiceUtil {
033 public static com.liferay.portal.model.Portlet addPortlet(
034 com.liferay.portal.model.Portlet portlet)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addPortlet(portlet);
037 }
038
039 public static com.liferay.portal.model.Portlet createPortlet(long id) {
040 return getService().createPortlet(id);
041 }
042
043 public static void deletePortlet(long id)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 getService().deletePortlet(id);
047 }
048
049 public static void deletePortlet(com.liferay.portal.model.Portlet portlet)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 getService().deletePortlet(portlet);
052 }
053
054 @SuppressWarnings("unchecked")
055 public static java.util.List dynamicQuery(
056 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().dynamicQuery(dynamicQuery);
059 }
060
061 @SuppressWarnings("unchecked")
062 public static java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().dynamicQuery(dynamicQuery, start, end);
066 }
067
068 @SuppressWarnings("unchecked")
069 public static java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076 }
077
078 public static long dynamicQueryCount(
079 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getService().dynamicQueryCount(dynamicQuery);
082 }
083
084 public static com.liferay.portal.model.Portlet getPortlet(long id)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getPortlet(id);
088 }
089
090 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getPortlets(start, end);
094 }
095
096 public static int getPortletsCount()
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getPortletsCount();
099 }
100
101 public static com.liferay.portal.model.Portlet updatePortlet(
102 com.liferay.portal.model.Portlet portlet)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().updatePortlet(portlet);
105 }
106
107 public static com.liferay.portal.model.Portlet updatePortlet(
108 com.liferay.portal.model.Portlet portlet, boolean merge)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().updatePortlet(portlet, merge);
111 }
112
113 public static void checkPortlet(com.liferay.portal.model.Portlet portlet)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 getService().checkPortlet(portlet);
117 }
118
119 public static void checkPortlets(long companyId)
120 throws com.liferay.portal.kernel.exception.PortalException,
121 com.liferay.portal.kernel.exception.SystemException {
122 getService().checkPortlets(companyId);
123 }
124
125 public static void clearCache() {
126 getService().clearCache();
127 }
128
129 public static com.liferay.portal.model.Portlet clonePortlet(
130 long companyId, java.lang.String portletId)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getService().clonePortlet(companyId, portletId);
133 }
134
135 public static com.liferay.portal.model.Portlet deployRemotePortlet(
136 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getService().deployRemotePortlet(portlet, categoryName);
139 }
140
141 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
142 getService().destroyPortlet(portlet);
143 }
144
145 public static void destroyRemotePortlet(
146 com.liferay.portal.model.Portlet portlet) {
147 getService().destroyRemotePortlet(portlet);
148 }
149
150 public static java.util.List<com.liferay.portlet.expando.model.CustomAttributesDisplay> getCustomAttributesDisplays() {
151 return getService().getCustomAttributesDisplays();
152 }
153
154 public static com.liferay.portal.model.PortletCategory getEARDisplay(
155 java.lang.String xml)
156 throws com.liferay.portal.kernel.exception.SystemException {
157 return getService().getEARDisplay(xml);
158 }
159
160 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
161 return getService().getFriendlyURLMapperPortlets();
162 }
163
164 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
165 return getService().getFriendlyURLMappers();
166 }
167
168 public static com.liferay.portal.model.PortletApp getPortletApp(
169 java.lang.String servletContextName) {
170 return getService().getPortletApp(servletContextName);
171 }
172
173 public static com.liferay.portal.model.Portlet getPortletById(
174 long companyId, java.lang.String portletId)
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getService().getPortletById(companyId, portletId);
177 }
178
179 public static com.liferay.portal.model.Portlet getPortletById(
180 java.lang.String portletId) {
181 return getService().getPortletById(portletId);
182 }
183
184 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
185 long companyId, java.lang.String strutsPath)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getService().getPortletByStrutsPath(companyId, strutsPath);
188 }
189
190 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
191 return getService().getPortlets();
192 }
193
194 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
195 long companyId)
196 throws com.liferay.portal.kernel.exception.SystemException {
197 return getService().getPortlets(companyId);
198 }
199
200 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
201 long companyId, boolean showSystem, boolean showPortal)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().getPortlets(companyId, showSystem, showPortal);
204 }
205
206 public static com.liferay.portal.model.PortletCategory getWARDisplay(
207 java.lang.String servletContextName, java.lang.String xml)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().getWARDisplay(servletContextName, xml);
210 }
211
212 public static boolean hasPortlet(long companyId, java.lang.String portletId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().hasPortlet(companyId, portletId);
215 }
216
217 public static void initEAR(javax.servlet.ServletContext servletContext,
218 java.lang.String[] xmls,
219 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
220 getService().initEAR(servletContext, xmls, pluginPackage);
221 }
222
223 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
224 java.lang.String servletContextName,
225 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
226 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
227 return getService()
228 .initWAR(servletContextName, servletContext, xmls,
229 pluginPackage);
230 }
231
232 public static com.liferay.portal.model.Portlet updatePortlet(
233 long companyId, java.lang.String portletId, java.lang.String roles,
234 boolean active)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().updatePortlet(companyId, portletId, roles, active);
237 }
238
239 public static PortletLocalService getService() {
240 if (_service == null) {
241 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
242 }
243
244 return _service;
245 }
246
247 public void setService(PortletLocalService service) {
248 _service = service;
249 }
250
251 private static PortletLocalService _service;
252 }