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 LayoutSetServiceUtil {
035
040
041
045 public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
046 boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 getService()
050 .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
051 layoutSetPrototypeLinkEnabled);
052 }
053
054
074 public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
075 boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
076 java.lang.String layoutSetPrototypeUuid)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 getService()
080 .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
081 layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
082 }
083
084 public static void updateLogo(long groupId, boolean privateLayout,
085 boolean logo, java.io.InputStream inputStream)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 getService().updateLogo(groupId, privateLayout, logo, inputStream);
089 }
090
091 public static void updateLogo(long groupId, boolean privateLayout,
092 boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 getService()
096 .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
097 }
098
099 public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
100 long groupId, boolean privateLayout, java.lang.String themeId,
101 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService()
105 .updateLookAndFeel(groupId, privateLayout, themeId,
106 colorSchemeId, css, wapTheme);
107 }
108
109 public static com.liferay.portal.model.LayoutSet updateSettings(
110 long groupId, boolean privateLayout, java.lang.String settings)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException {
113 return getService().updateSettings(groupId, privateLayout, settings);
114 }
115
116 public static com.liferay.portal.model.LayoutSet updateVirtualHost(
117 long groupId, boolean privateLayout, java.lang.String virtualHost)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException {
120 return getService()
121 .updateVirtualHost(groupId, privateLayout, virtualHost);
122 }
123
124 public static LayoutSetService getService() {
125 if (_service == null) {
126 _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
127
128 ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
129 "_service");
130 MethodCache.remove(LayoutSetService.class);
131 }
132
133 return _service;
134 }
135
136 public void setService(LayoutSetService service) {
137 MethodCache.remove(LayoutSetService.class);
138
139 _service = service;
140
141 ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
142 "_service");
143 MethodCache.remove(LayoutSetService.class);
144 }
145
146 private static LayoutSetService _service;
147 }