001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class LayoutRevisionServiceUtil {
035
040 public static com.liferay.portal.model.LayoutRevision addLayoutRevision(
041 long userId, long layoutSetBranchId, long layoutBranchId,
042 long parentLayoutRevisionId, boolean head, long plid,
043 boolean privateLayout, java.lang.String name, java.lang.String title,
044 java.lang.String description, java.lang.String keywords,
045 java.lang.String robots, java.lang.String typeSettings,
046 boolean iconImage, long iconImageId, java.lang.String themeId,
047 java.lang.String colorSchemeId, java.lang.String wapThemeId,
048 java.lang.String wapColorSchemeId, java.lang.String css,
049 com.liferay.portal.service.ServiceContext serviceContext)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 return getService()
053 .addLayoutRevision(userId, layoutSetBranchId,
054 layoutBranchId, parentLayoutRevisionId, head, plid, privateLayout,
055 name, title, description, keywords, robots, typeSettings,
056 iconImage, iconImageId, themeId, colorSchemeId, wapThemeId,
057 wapColorSchemeId, css, serviceContext);
058 }
059
060 public static LayoutRevisionService getService() {
061 if (_service == null) {
062 _service = (LayoutRevisionService)PortalBeanLocatorUtil.locate(LayoutRevisionService.class.getName());
063
064 ReferenceRegistry.registerReference(LayoutRevisionServiceUtil.class,
065 "_service");
066 MethodCache.remove(LayoutRevisionService.class);
067 }
068
069 return _service;
070 }
071
072 public void setService(LayoutRevisionService service) {
073 MethodCache.remove(LayoutRevisionService.class);
074
075 _service = service;
076
077 ReferenceRegistry.registerReference(LayoutRevisionServiceUtil.class,
078 "_service");
079 MethodCache.remove(LayoutRevisionService.class);
080 }
081
082 private static LayoutRevisionService _service;
083 }