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