1
19
20 package com.liferay.portal.service;
21
22
23
44 public class PortletLocalServiceUtil {
45 public static com.liferay.portal.model.Portlet addPortlet(
46 com.liferay.portal.model.Portlet portlet)
47 throws com.liferay.portal.SystemException {
48 return getService().addPortlet(portlet);
49 }
50
51 public static com.liferay.portal.model.Portlet createPortlet(long id) {
52 return getService().createPortlet(id);
53 }
54
55 public static void deletePortlet(long id)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException {
58 getService().deletePortlet(id);
59 }
60
61 public static void deletePortlet(com.liferay.portal.model.Portlet portlet)
62 throws com.liferay.portal.SystemException {
63 getService().deletePortlet(portlet);
64 }
65
66 public static java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 public static java.util.List<Object> dynamicQuery(
73 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
74 int end) throws com.liferay.portal.SystemException {
75 return getService().dynamicQuery(dynamicQuery, start, end);
76 }
77
78 public static com.liferay.portal.model.Portlet getPortlet(long id)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException {
81 return getService().getPortlet(id);
82 }
83
84 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
85 int start, int end) throws com.liferay.portal.SystemException {
86 return getService().getPortlets(start, end);
87 }
88
89 public static int getPortletsCount()
90 throws com.liferay.portal.SystemException {
91 return getService().getPortletsCount();
92 }
93
94 public static com.liferay.portal.model.Portlet updatePortlet(
95 com.liferay.portal.model.Portlet portlet)
96 throws com.liferay.portal.SystemException {
97 return getService().updatePortlet(portlet);
98 }
99
100 public static com.liferay.portal.model.Portlet updatePortlet(
101 com.liferay.portal.model.Portlet portlet, boolean merge)
102 throws com.liferay.portal.SystemException {
103 return getService().updatePortlet(portlet, merge);
104 }
105
106 public static com.liferay.portal.model.Portlet deployRemotePortlet(
107 com.liferay.portal.model.Portlet portlet) {
108 return getService().deployRemotePortlet(portlet);
109 }
110
111 public static void destroyPortlet(com.liferay.portal.model.Portlet portlet) {
112 getService().destroyPortlet(portlet);
113 }
114
115 public static com.liferay.portal.model.PortletCategory getEARDisplay(
116 java.lang.String xml) throws com.liferay.portal.SystemException {
117 return getService().getEARDisplay(xml);
118 }
119
120 public static com.liferay.portal.model.PortletCategory getWARDisplay(
121 java.lang.String servletContextName, java.lang.String xml)
122 throws com.liferay.portal.SystemException {
123 return getService().getWARDisplay(servletContextName, xml);
124 }
125
126 public static java.util.List<com.liferay.portal.model.Portlet> getFriendlyURLMapperPortlets() {
127 return getService().getFriendlyURLMapperPortlets();
128 }
129
130 public static java.util.List<com.liferay.portal.kernel.portlet.FriendlyURLMapper> getFriendlyURLMappers() {
131 return getService().getFriendlyURLMappers();
132 }
133
134 public static com.liferay.portal.model.Portlet getPortletById(
135 java.lang.String portletId) {
136 return getService().getPortletById(portletId);
137 }
138
139 public static com.liferay.portal.model.Portlet getPortletById(
140 long companyId, java.lang.String portletId)
141 throws com.liferay.portal.SystemException {
142 return getService().getPortletById(companyId, portletId);
143 }
144
145 public static com.liferay.portal.model.Portlet getPortletByStrutsPath(
146 long companyId, java.lang.String strutsPath)
147 throws com.liferay.portal.SystemException {
148 return getService().getPortletByStrutsPath(companyId, strutsPath);
149 }
150
151 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets() {
152 return getService().getPortlets();
153 }
154
155 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
156 long companyId) throws com.liferay.portal.SystemException {
157 return getService().getPortlets(companyId);
158 }
159
160 public static java.util.List<com.liferay.portal.model.Portlet> getPortlets(
161 long companyId, boolean showSystem, boolean showPortal)
162 throws com.liferay.portal.SystemException {
163 return getService().getPortlets(companyId, showSystem, showPortal);
164 }
165
166 public static boolean hasPortlet(long companyId, java.lang.String portletId)
167 throws com.liferay.portal.SystemException {
168 return getService().hasPortlet(companyId, portletId);
169 }
170
171 public static void initEAR(javax.servlet.ServletContext servletContext,
172 java.lang.String[] xmls,
173 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
174 getService().initEAR(servletContext, xmls, pluginPackage);
175 }
176
177 public static java.util.List<com.liferay.portal.model.Portlet> initWAR(
178 java.lang.String servletContextName,
179 javax.servlet.ServletContext servletContext, java.lang.String[] xmls,
180 com.liferay.portal.kernel.plugin.PluginPackage pluginPackage) {
181 return getService()
182 .initWAR(servletContextName, servletContext, xmls,
183 pluginPackage);
184 }
185
186 public static com.liferay.portal.model.Portlet newPortlet(long companyId,
187 java.lang.String portletId) {
188 return getService().newPortlet(companyId, portletId);
189 }
190
191 public static com.liferay.portal.model.Portlet updatePortlet(
192 long companyId, java.lang.String portletId, java.lang.String roles,
193 boolean active) throws com.liferay.portal.SystemException {
194 return getService().updatePortlet(companyId, portletId, roles, active);
195 }
196
197 public static PortletLocalService getService() {
198 if (_service == null) {
199 throw new RuntimeException("PortletLocalService is not set");
200 }
201
202 return _service;
203 }
204
205 public void setService(PortletLocalService service) {
206 _service = service;
207 }
208
209 private static PortletLocalService _service;
210 }