001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class LayoutSetBranchLocalServiceUtil {
038
043
044
050 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
051 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
052 return getService().addLayoutSetBranch(layoutSetBranch);
053 }
054
055 public static com.liferay.portal.model.LayoutSetBranch addLayoutSetBranch(
056 long userId, long groupId, boolean privateLayout,
057 java.lang.String name, java.lang.String description, boolean master,
058 long copyLayoutSetBranchId,
059 com.liferay.portal.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .addLayoutSetBranch(userId, groupId, privateLayout, name,
063 description, master, copyLayoutSetBranchId, serviceContext);
064 }
065
066
072 public static com.liferay.portal.model.LayoutSetBranch createLayoutSetBranch(
073 long layoutSetBranchId) {
074 return getService().createLayoutSetBranch(layoutSetBranchId);
075 }
076
077
084 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
085 com.liferay.portal.model.LayoutSetBranch layoutSetBranch)
086 throws com.liferay.portal.kernel.exception.PortalException {
087 return getService().deleteLayoutSetBranch(layoutSetBranch);
088 }
089
090 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
091 com.liferay.portal.model.LayoutSetBranch layoutSetBranch,
092 boolean includeMaster)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 return getService().deleteLayoutSetBranch(layoutSetBranch, includeMaster);
095 }
096
097
104 public static com.liferay.portal.model.LayoutSetBranch deleteLayoutSetBranch(
105 long layoutSetBranchId)
106 throws com.liferay.portal.kernel.exception.PortalException {
107 return getService().deleteLayoutSetBranch(layoutSetBranchId);
108 }
109
110 public static void deleteLayoutSetBranches(long groupId,
111 boolean privateLayout)
112 throws com.liferay.portal.kernel.exception.PortalException {
113 getService().deleteLayoutSetBranches(groupId, privateLayout);
114 }
115
116 public static void deleteLayoutSetBranches(long groupId,
117 boolean privateLayout, boolean includeMaster)
118 throws com.liferay.portal.kernel.exception.PortalException {
119 getService()
120 .deleteLayoutSetBranches(groupId, privateLayout, includeMaster);
121 }
122
123
126 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
127 com.liferay.portal.model.PersistedModel persistedModel)
128 throws com.liferay.portal.kernel.exception.PortalException {
129 return getService().deletePersistedModel(persistedModel);
130 }
131
132 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
133 return getService().dynamicQuery();
134 }
135
136
142 public static <T> java.util.List<T> dynamicQuery(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
144 return getService().dynamicQuery(dynamicQuery);
145 }
146
147
159 public static <T> java.util.List<T> dynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end) {
162 return getService().dynamicQuery(dynamicQuery, start, end);
163 }
164
165
178 public static <T> java.util.List<T> dynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
180 int end,
181 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
182 return getService()
183 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
184 }
185
186
192 public static long dynamicQueryCount(
193 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
194 return getService().dynamicQueryCount(dynamicQuery);
195 }
196
197
204 public static long dynamicQueryCount(
205 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
206 com.liferay.portal.kernel.dao.orm.Projection projection) {
207 return getService().dynamicQueryCount(dynamicQuery, projection);
208 }
209
210 public static com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
211 long groupId, boolean privateLayout, java.lang.String name) {
212 return getService().fetchLayoutSetBranch(groupId, privateLayout, name);
213 }
214
215 public static com.liferay.portal.model.LayoutSetBranch fetchLayoutSetBranch(
216 long layoutSetBranchId) {
217 return getService().fetchLayoutSetBranch(layoutSetBranchId);
218 }
219
220 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
221 return getService().getActionableDynamicQuery();
222 }
223
224 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
225 return getService().getIndexableActionableDynamicQuery();
226 }
227
228 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
229 long groupId, boolean privateLayout, java.lang.String name)
230 throws com.liferay.portal.kernel.exception.PortalException {
231 return getService().getLayoutSetBranch(groupId, privateLayout, name);
232 }
233
234
241 public static com.liferay.portal.model.LayoutSetBranch getLayoutSetBranch(
242 long layoutSetBranchId)
243 throws com.liferay.portal.kernel.exception.PortalException {
244 return getService().getLayoutSetBranch(layoutSetBranchId);
245 }
246
247 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranches(
248 long groupId, boolean privateLayout) {
249 return getService().getLayoutSetBranches(groupId, privateLayout);
250 }
251
252
263 public static java.util.List<com.liferay.portal.model.LayoutSetBranch> getLayoutSetBranchs(
264 int start, int end) {
265 return getService().getLayoutSetBranchs(start, end);
266 }
267
268
273 public static int getLayoutSetBranchsCount() {
274 return getService().getLayoutSetBranchsCount();
275 }
276
277 public static com.liferay.portal.model.LayoutSetBranch getMasterLayoutSetBranch(
278 long groupId, boolean privateLayout)
279 throws com.liferay.portal.kernel.exception.PortalException {
280 return getService().getMasterLayoutSetBranch(groupId, privateLayout);
281 }
282
283
288 public static java.lang.String getOSGiServiceIdentifier() {
289 return getService().getOSGiServiceIdentifier();
290 }
291
292 public static com.liferay.portal.model.PersistedModel getPersistedModel(
293 java.io.Serializable primaryKeyObj)
294 throws com.liferay.portal.kernel.exception.PortalException {
295 return getService().getPersistedModel(primaryKeyObj);
296 }
297
298
302 @Deprecated
303 public static com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
304 long userId, long groupId, boolean privateLayout, long layoutSetBranchId)
305 throws com.liferay.portal.kernel.exception.PortalException {
306 return getService()
307 .getUserLayoutSetBranch(userId, groupId, privateLayout,
308 layoutSetBranchId);
309 }
310
311 public static com.liferay.portal.model.LayoutSetBranch getUserLayoutSetBranch(
312 long userId, long groupId, boolean privateLayout, long layoutSetId,
313 long layoutSetBranchId)
314 throws com.liferay.portal.kernel.exception.PortalException {
315 return getService()
316 .getUserLayoutSetBranch(userId, groupId, privateLayout,
317 layoutSetId, layoutSetBranchId);
318 }
319
320 public static com.liferay.portal.model.LayoutSetBranch mergeLayoutSetBranch(
321 long layoutSetBranchId, long mergeLayoutSetBranchId,
322 com.liferay.portal.service.ServiceContext serviceContext)
323 throws com.liferay.portal.kernel.exception.PortalException {
324 return getService()
325 .mergeLayoutSetBranch(layoutSetBranchId,
326 mergeLayoutSetBranchId, serviceContext);
327 }
328
329
335 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
336 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
337 return getService().updateLayoutSetBranch(layoutSetBranch);
338 }
339
340 public static com.liferay.portal.model.LayoutSetBranch updateLayoutSetBranch(
341 long layoutSetBranchId, java.lang.String name,
342 java.lang.String description,
343 com.liferay.portal.service.ServiceContext serviceContext)
344 throws com.liferay.portal.kernel.exception.PortalException {
345 return getService()
346 .updateLayoutSetBranch(layoutSetBranchId, name, description,
347 serviceContext);
348 }
349
350 public static LayoutSetBranchLocalService getService() {
351 if (_service == null) {
352 _service = (LayoutSetBranchLocalService)PortalBeanLocatorUtil.locate(LayoutSetBranchLocalService.class.getName());
353
354 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
355 "_service");
356 }
357
358 return _service;
359 }
360
361 private static LayoutSetBranchLocalService _service;
362 }