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.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.PortalException,
52 com.liferay.portal.SystemException {
53 getService().deletePortlet(id);
54 }
55
56 public static void deletePortlet(com.liferay.portal.model.Portlet portlet)
57 throws com.liferay.portal.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.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.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.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.SystemException {
85 return getService().dynamicQueryCount(dynamicQuery);
86 }
87
88 public static com.liferay.portal.model.Portlet getPortlet(long id)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.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) throws com.liferay.portal.SystemException {
96 return getService().getPortlets(start, end);
97 }
98
99 public static int getPortletsCount()
100 throws com.liferay.portal.SystemException {
101 return getService().getPortletsCount();
102 }
103
104 public static com.liferay.portal.model.Portlet updatePortlet(
105 com.liferay.portal.model.Portlet portlet)
106 throws com.liferay.portal.SystemException {
107 return getService().updatePortlet(portlet);
108 }
109
110 public static com.liferay.portal.model.Portlet updatePortlet(
111 com.liferay.portal.model.Portlet portlet, boolean merge)
112 throws com.liferay.portal.SystemException {
113 return getService().updatePortlet(portlet, merge);
114 }
115
116 public static com.liferay.portal.model.Portlet clonePortlet(
117 long companyId, java.lang.String portletId)
118 throws com.liferay.portal.SystemException {
119 return getService().clonePortlet(companyId, portletId);
120 }
121
122 public static com.liferay.portal.model.Portlet deployRemotePortlet(
123 com.liferay.portal.model.Portlet portlet, java.lang.String categoryName)
124 throws com.liferay.portal.SystemException {
125 return getService().deployRemotePortlet(portlet, categoryName);
126 }
127
128 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
129 getService().destroyPortlet(portlet);
130 }
131
132 public static void destroyRemotePortlet(
133 com.liferay.portal.model.Portlet portlet) {
134 getService().destroyRemotePortlet(portlet);
135 }
136
137 public static com.liferay.portal.model.PortletCategory getEARDisplay(
138 java.lang.String xml) throws com.liferay.portal.SystemException {
139 return getService().getEARDisplay(xml);
140 }
141
142 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
143 return getService().getFriendlyURLMapperPortlets();
144 }
145
146 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
147 return getService().getFriendlyURLMappers();
148 }
149
150 public static com.liferay.portal.model.PortletApp getPortletApp(
151 java.lang.String servletContextName) {
152 return getService().getPortletApp(servletContextName);
153 }
154
155 public static com.liferay.portal.model.Portlet getPortletById(
156 long companyId, java.lang.String portletId)
157 throws com.liferay.portal.SystemException {
158 return getService().getPortletById(companyId, portletId);
159 }
160
161 public static com.liferay.portal.model.Portlet getPortletById(
162 java.lang.String portletId) {
163 return getService().getPortletById(portletId);
164 }
165
166 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
167 long companyId, java.lang.String strutsPath)
168 throws com.liferay.portal.SystemException {
169 return getService().getPortletByStrutsPath(companyId, strutsPath);
170 }
171
172 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
173 return getService().getPortlets();
174 }
175
176 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
177 long companyId) throws com.liferay.portal.SystemException {
178 return getService().getPortlets(companyId);
179 }
180
181 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
182 long companyId, boolean showSystem, boolean showPortal)
183 throws com.liferay.portal.SystemException {
184 return getService().getPortlets(companyId, showSystem, showPortal);
185 }
186
187 public static com.liferay.portal.model.PortletCategory getWARDisplay(
188 java.lang.String servletContextName, java.lang.String xml)
189 throws com.liferay.portal.SystemException {
190 return getService().getWARDisplay(servletContextName, xml);
191 }
192
193 public static boolean hasPortlet(long companyId, java.lang.String portletId)
194 throws com.liferay.portal.SystemException {
195 return getService().hasPortlet(companyId, portletId);
196 }
197
198 public static void initEAR(javax.servlet.ServletContext servletContext,
199 java.lang.String[] xmls,
200 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
201 getService().initEAR(servletContext, xmls, pluginPackage);
202 }
203
204 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
205 java.lang.String servletContextName,
206 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
207 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
208 return getService()
209 .initWAR(servletContextName, servletContext, xmls,
210 pluginPackage);
211 }
212
213 public static com.liferay.portal.model.Portlet newPortlet(long companyId,
214 java.lang.String portletId) {
215 return getService().newPortlet(companyId, portletId);
216 }
217
218 public static com.liferay.portal.model.Portlet updatePortlet(
219 long companyId, java.lang.String portletId, java.lang.String roles,
220 boolean active) throws com.liferay.portal.SystemException {
221 return getService().updatePortlet(companyId, portletId, roles, active);
222 }
223
224 public static PortletLocalService getService() {
225 if (_service == null) {
226 _service = (PortletLocalService)PortalBeanLocatorUtil.locate(PortletLocalService.class.getName());
227 }
228
229 return _service;
230 }
231
232 public void setService(PortletLocalService service) {
233 _service = service;
234 }
235
236 private static PortletLocalService _service;
237 }