001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class LayoutSetServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059
079 public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
080 boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
081 java.lang.String layoutSetPrototypeUuid)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 getService()
085 .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
086 layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
087 }
088
089 public static void updateLogo(long groupId, boolean privateLayout,
090 boolean logo, byte[] bytes)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 getService().updateLogo(groupId, privateLayout, logo, bytes);
094 }
095
096 public static void updateLogo(long groupId, boolean privateLayout,
097 boolean logo, java.io.File file)
098 throws com.liferay.portal.kernel.exception.PortalException,
099 com.liferay.portal.kernel.exception.SystemException {
100 getService().updateLogo(groupId, privateLayout, logo, file);
101 }
102
103 public static void updateLogo(long groupId, boolean privateLayout,
104 boolean logo, java.io.InputStream inputStream)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 getService().updateLogo(groupId, privateLayout, logo, inputStream);
108 }
109
110 public static void updateLogo(long groupId, boolean privateLayout,
111 boolean logo, java.io.InputStream inputStream, boolean cleanUpStream)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException {
114 getService()
115 .updateLogo(groupId, privateLayout, logo, inputStream, cleanUpStream);
116 }
117
118 public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
119 long groupId, boolean privateLayout, java.lang.String themeId,
120 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 return getService()
124 .updateLookAndFeel(groupId, privateLayout, themeId,
125 colorSchemeId, css, wapTheme);
126 }
127
128 public static com.liferay.portal.model.LayoutSet updateSettings(
129 long groupId, boolean privateLayout, java.lang.String settings)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService().updateSettings(groupId, privateLayout, settings);
133 }
134
135 public static com.liferay.portal.model.LayoutSet updateVirtualHost(
136 long groupId, boolean privateLayout, java.lang.String virtualHost)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService()
140 .updateVirtualHost(groupId, privateLayout, virtualHost);
141 }
142
143 public static LayoutSetService getService() {
144 if (_service == null) {
145 _service = (LayoutSetService)PortalBeanLocatorUtil.locate(LayoutSetService.class.getName());
146
147 ReferenceRegistry.registerReference(LayoutSetServiceUtil.class,
148 "_service");
149 }
150
151 return _service;
152 }
153
154
157 public void setService(LayoutSetService service) {
158 }
159
160 private static LayoutSetService _service;
161 }