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