001
014
015 package com.liferay.portal.kernel.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 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
044 return getService().getActionableDynamicQuery();
045 }
046
047 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
048 return getService().dynamicQuery();
049 }
050
051 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
052 return getService().getIndexableActionableDynamicQuery();
053 }
054
055
061 public static com.liferay.portal.kernel.model.LayoutSetBranch addLayoutSetBranch(
062 com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch) {
063 return getService().addLayoutSetBranch(layoutSetBranch);
064 }
065
066 public static com.liferay.portal.kernel.model.LayoutSetBranch addLayoutSetBranch(
067 long userId, long groupId, boolean privateLayout,
068 java.lang.String name, java.lang.String description, boolean master,
069 long copyLayoutSetBranchId, ServiceContext serviceContext)
070 throws com.liferay.portal.kernel.exception.PortalException {
071 return getService()
072 .addLayoutSetBranch(userId, groupId, privateLayout, name,
073 description, master, copyLayoutSetBranchId, serviceContext);
074 }
075
076
082 public static com.liferay.portal.kernel.model.LayoutSetBranch createLayoutSetBranch(
083 long layoutSetBranchId) {
084 return getService().createLayoutSetBranch(layoutSetBranchId);
085 }
086
087
094 public static com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(
095 com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 return getService().deleteLayoutSetBranch(layoutSetBranch);
098 }
099
100 public static com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(
101 com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch,
102 boolean includeMaster)
103 throws com.liferay.portal.kernel.exception.PortalException {
104 return getService().deleteLayoutSetBranch(layoutSetBranch, includeMaster);
105 }
106
107
114 public static com.liferay.portal.kernel.model.LayoutSetBranch deleteLayoutSetBranch(
115 long layoutSetBranchId)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService().deleteLayoutSetBranch(layoutSetBranchId);
118 }
119
120 public static com.liferay.portal.kernel.model.LayoutSetBranch fetchLayoutSetBranch(
121 long groupId, boolean privateLayout, java.lang.String name) {
122 return getService().fetchLayoutSetBranch(groupId, privateLayout, name);
123 }
124
125 public static com.liferay.portal.kernel.model.LayoutSetBranch fetchLayoutSetBranch(
126 long layoutSetBranchId) {
127 return getService().fetchLayoutSetBranch(layoutSetBranchId);
128 }
129
130 public static com.liferay.portal.kernel.model.LayoutSetBranch getLayoutSetBranch(
131 long groupId, boolean privateLayout, java.lang.String name)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 return getService().getLayoutSetBranch(groupId, privateLayout, name);
134 }
135
136
143 public static com.liferay.portal.kernel.model.LayoutSetBranch getLayoutSetBranch(
144 long layoutSetBranchId)
145 throws com.liferay.portal.kernel.exception.PortalException {
146 return getService().getLayoutSetBranch(layoutSetBranchId);
147 }
148
149 public static com.liferay.portal.kernel.model.LayoutSetBranch getMasterLayoutSetBranch(
150 long groupId, boolean privateLayout)
151 throws com.liferay.portal.kernel.exception.PortalException {
152 return getService().getMasterLayoutSetBranch(groupId, privateLayout);
153 }
154
155 public static com.liferay.portal.kernel.model.LayoutSetBranch getUserLayoutSetBranch(
156 long userId, long groupId, boolean privateLayout, long layoutSetId,
157 long layoutSetBranchId)
158 throws com.liferay.portal.kernel.exception.PortalException {
159 return getService()
160 .getUserLayoutSetBranch(userId, groupId, privateLayout,
161 layoutSetId, layoutSetBranchId);
162 }
163
164 public static com.liferay.portal.kernel.model.LayoutSetBranch mergeLayoutSetBranch(
165 long layoutSetBranchId, long mergeLayoutSetBranchId,
166 ServiceContext serviceContext)
167 throws com.liferay.portal.kernel.exception.PortalException {
168 return getService()
169 .mergeLayoutSetBranch(layoutSetBranchId,
170 mergeLayoutSetBranchId, serviceContext);
171 }
172
173
179 public static com.liferay.portal.kernel.model.LayoutSetBranch updateLayoutSetBranch(
180 com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch) {
181 return getService().updateLayoutSetBranch(layoutSetBranch);
182 }
183
184 public static com.liferay.portal.kernel.model.LayoutSetBranch updateLayoutSetBranch(
185 long layoutSetBranchId, java.lang.String name,
186 java.lang.String description, ServiceContext serviceContext)
187 throws com.liferay.portal.kernel.exception.PortalException {
188 return getService()
189 .updateLayoutSetBranch(layoutSetBranchId, name, description,
190 serviceContext);
191 }
192
193
196 public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
197 com.liferay.portal.kernel.model.PersistedModel persistedModel)
198 throws com.liferay.portal.kernel.exception.PortalException {
199 return getService().deletePersistedModel(persistedModel);
200 }
201
202 public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
203 java.io.Serializable primaryKeyObj)
204 throws com.liferay.portal.kernel.exception.PortalException {
205 return getService().getPersistedModel(primaryKeyObj);
206 }
207
208
213 public static int getLayoutSetBranchsCount() {
214 return getService().getLayoutSetBranchsCount();
215 }
216
217
222 public static java.lang.String getOSGiServiceIdentifier() {
223 return getService().getOSGiServiceIdentifier();
224 }
225
226
232 public static <T> java.util.List<T> dynamicQuery(
233 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
234 return getService().dynamicQuery(dynamicQuery);
235 }
236
237
249 public static <T> java.util.List<T> dynamicQuery(
250 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
251 int end) {
252 return getService().dynamicQuery(dynamicQuery, start, end);
253 }
254
255
268 public static <T> java.util.List<T> dynamicQuery(
269 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
270 int end,
271 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
272 return getService()
273 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
274 }
275
276 public static java.util.List<com.liferay.portal.kernel.model.LayoutSetBranch> getLayoutSetBranches(
277 long groupId, boolean privateLayout) {
278 return getService().getLayoutSetBranches(groupId, privateLayout);
279 }
280
281
292 public static java.util.List<com.liferay.portal.kernel.model.LayoutSetBranch> getLayoutSetBranchs(
293 int start, int end) {
294 return getService().getLayoutSetBranchs(start, end);
295 }
296
297
303 public static long dynamicQueryCount(
304 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
305 return getService().dynamicQueryCount(dynamicQuery);
306 }
307
308
315 public static long dynamicQueryCount(
316 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
317 com.liferay.portal.kernel.dao.orm.Projection projection) {
318 return getService().dynamicQueryCount(dynamicQuery, projection);
319 }
320
321 public static void deleteLayoutSetBranches(long groupId,
322 boolean privateLayout)
323 throws com.liferay.portal.kernel.exception.PortalException {
324 getService().deleteLayoutSetBranches(groupId, privateLayout);
325 }
326
327 public static void deleteLayoutSetBranches(long groupId,
328 boolean privateLayout, boolean includeMaster)
329 throws com.liferay.portal.kernel.exception.PortalException {
330 getService()
331 .deleteLayoutSetBranches(groupId, privateLayout, includeMaster);
332 }
333
334 public static LayoutSetBranchLocalService getService() {
335 if (_service == null) {
336 _service = (LayoutSetBranchLocalService)PortalBeanLocatorUtil.locate(LayoutSetBranchLocalService.class.getName());
337
338 ReferenceRegistry.registerReference(LayoutSetBranchLocalServiceUtil.class,
339 "_service");
340 }
341
342 return _service;
343 }
344
345 private static LayoutSetBranchLocalService _service;
346 }