1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class PortletPreferencesLocalServiceUtil {
40 public static com.liferay.portal.model.PortletPreferences addPortletPreferences(
41 com.liferay.portal.model.PortletPreferences portletPreferences)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addPortletPreferences(portletPreferences);
44 }
45
46 public static com.liferay.portal.model.PortletPreferences createPortletPreferences(
47 long portletPreferencesId) {
48 return getService().createPortletPreferences(portletPreferencesId);
49 }
50
51 public static void deletePortletPreferences(long portletPreferencesId)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deletePortletPreferences(portletPreferencesId);
55 }
56
57 public static void deletePortletPreferences(
58 com.liferay.portal.model.PortletPreferences portletPreferences)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deletePortletPreferences(portletPreferences);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portal.model.PortletPreferences getPortletPreferences(
94 long portletPreferencesId)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getPortletPreferences(portletPreferencesId);
98 }
99
100 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getPortletPreferenceses(start, end);
104 }
105
106 public static int getPortletPreferencesesCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getPortletPreferencesesCount();
109 }
110
111 public static com.liferay.portal.model.PortletPreferences updatePortletPreferences(
112 com.liferay.portal.model.PortletPreferences portletPreferences)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updatePortletPreferences(portletPreferences);
115 }
116
117 public static com.liferay.portal.model.PortletPreferences updatePortletPreferences(
118 com.liferay.portal.model.PortletPreferences portletPreferences,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updatePortletPreferences(portletPreferences, merge);
122 }
123
124 public static com.liferay.portal.model.PortletPreferences addPortletPreferences(
125 long companyId, long ownerId, int ownerType, long plid,
126 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
127 java.lang.String defaultPreferences)
128 throws com.liferay.portal.kernel.exception.SystemException {
129 return getService()
130 .addPortletPreferences(companyId, ownerId, ownerType, plid,
131 portletId, portlet, defaultPreferences);
132 }
133
134 public static void deletePortletPreferences(long ownerId, int ownerType,
135 long plid) throws com.liferay.portal.kernel.exception.SystemException {
136 getService().deletePortletPreferences(ownerId, ownerType, plid);
137 }
138
139 public static void deletePortletPreferences(long ownerId, int ownerType,
140 long plid, java.lang.String portletId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 getService()
144 .deletePortletPreferences(ownerId, ownerType, plid, portletId);
145 }
146
147 public static javax.portlet.PortletPreferences getDefaultPreferences(
148 long companyId, java.lang.String portletId)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService().getDefaultPreferences(companyId, portletId);
151 }
152
153 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getService().getPortletPreferences();
156 }
157
158 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
159 long plid, java.lang.String portletId)
160 throws com.liferay.portal.kernel.exception.SystemException {
161 return getService().getPortletPreferences(plid, portletId);
162 }
163
164 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
165 long ownerId, int ownerType, long plid)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().getPortletPreferences(ownerId, ownerType, plid);
168 }
169
170 public static com.liferay.portal.model.PortletPreferences getPortletPreferences(
171 long ownerId, int ownerType, long plid, java.lang.String portletId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return getService()
175 .getPortletPreferences(ownerId, ownerType, plid, portletId);
176 }
177
178 public static java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
179 long plid) throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().getPortletPreferencesByPlid(plid);
181 }
182
183 public static javax.portlet.PortletPreferences getPreferences(
184 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPreferences(portletPreferencesIds);
187 }
188
189 public static javax.portlet.PortletPreferences getPreferences(
190 long companyId, long ownerId, int ownerType, long plid,
191 java.lang.String portletId)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getService()
194 .getPreferences(companyId, ownerId, ownerType, plid,
195 portletId);
196 }
197
198 public static javax.portlet.PortletPreferences getPreferences(
199 long companyId, long ownerId, int ownerType, long plid,
200 java.lang.String portletId, java.lang.String defaultPreferences)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getService()
203 .getPreferences(companyId, ownerId, ownerType, plid,
204 portletId, defaultPreferences);
205 }
206
207 public static com.liferay.portal.model.PortletPreferences updatePreferences(
208 long ownerId, int ownerType, long plid, java.lang.String portletId,
209 javax.portlet.PortletPreferences preferences)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService()
212 .updatePreferences(ownerId, ownerType, plid, portletId,
213 preferences);
214 }
215
216 public static com.liferay.portal.model.PortletPreferences updatePreferences(
217 long ownerId, int ownerType, long plid, java.lang.String portletId,
218 java.lang.String xml)
219 throws com.liferay.portal.kernel.exception.SystemException {
220 return getService()
221 .updatePreferences(ownerId, ownerType, plid, portletId, xml);
222 }
223
224 public static PortletPreferencesLocalService getService() {
225 if (_service == null) {
226 _service = (PortletPreferencesLocalService)PortalBeanLocatorUtil.locate(PortletPreferencesLocalService.class.getName());
227 }
228
229 return _service;
230 }
231
232 public void setService(PortletPreferencesLocalService service) {
233 _service = service;
234 }
235
236 private static PortletPreferencesLocalService _service;
237 }