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