1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class LayoutSetLocalServiceUtil {
42 public static com.liferay.portal.model.LayoutSet addLayoutSet(
43 com.liferay.portal.model.LayoutSet layoutSet)
44 throws com.liferay.portal.SystemException {
45 return getService().addLayoutSet(layoutSet);
46 }
47
48 public static com.liferay.portal.model.LayoutSet createLayoutSet(
49 long layoutSetId) {
50 return getService().createLayoutSet(layoutSetId);
51 }
52
53 public static void deleteLayoutSet(long layoutSetId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteLayoutSet(layoutSetId);
57 }
58
59 public static void deleteLayoutSet(
60 com.liferay.portal.model.LayoutSet layoutSet)
61 throws com.liferay.portal.SystemException {
62 getService().deleteLayoutSet(layoutSet);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.LayoutSet getLayoutSet(
96 long layoutSetId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getLayoutSet(layoutSetId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getLayoutSets(start, end);
105 }
106
107 public static int getLayoutSetsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getLayoutSetsCount();
110 }
111
112 public static com.liferay.portal.model.LayoutSet updateLayoutSet(
113 com.liferay.portal.model.LayoutSet layoutSet)
114 throws com.liferay.portal.SystemException {
115 return getService().updateLayoutSet(layoutSet);
116 }
117
118 public static com.liferay.portal.model.LayoutSet updateLayoutSet(
119 com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
120 throws com.liferay.portal.SystemException {
121 return getService().updateLayoutSet(layoutSet, merge);
122 }
123
124 public static com.liferay.portal.model.LayoutSet addLayoutSet(
125 long groupId, boolean privateLayout)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService().addLayoutSet(groupId, privateLayout);
129 }
130
131 public static void deleteLayoutSet(long groupId, boolean privateLayout)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 getService().deleteLayoutSet(groupId, privateLayout);
135 }
136
137 public static com.liferay.portal.model.LayoutSet getLayoutSet(
138 long groupId, boolean privateLayout)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 return getService().getLayoutSet(groupId, privateLayout);
142 }
143
144 public static com.liferay.portal.model.LayoutSet getLayoutSet(
145 java.lang.String virtualHost)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException {
148 return getService().getLayoutSet(virtualHost);
149 }
150
151 public static void updateLogo(long groupId, boolean privateLayout,
152 boolean logo, java.io.File file)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService().updateLogo(groupId, privateLayout, logo, file);
156 }
157
158 public static void updateLogo(long groupId, boolean privateLayout,
159 boolean logo, java.io.InputStream is)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException {
162 getService().updateLogo(groupId, privateLayout, logo, is);
163 }
164
165 public static void updateLookAndFeel(long groupId,
166 java.lang.String themeId, java.lang.String colorSchemeId,
167 java.lang.String css, boolean wapTheme)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 getService()
171 .updateLookAndFeel(groupId, themeId, colorSchemeId, css, wapTheme);
172 }
173
174 public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
175 long groupId, boolean privateLayout, java.lang.String themeId,
176 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 return getService()
180 .updateLookAndFeel(groupId, privateLayout, themeId,
181 colorSchemeId, css, wapTheme);
182 }
183
184 public static com.liferay.portal.model.LayoutSet updatePageCount(
185 long groupId, boolean privateLayout)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 return getService().updatePageCount(groupId, privateLayout);
189 }
190
191 public static com.liferay.portal.model.LayoutSet updateVirtualHost(
192 long groupId, boolean privateLayout, java.lang.String virtualHost)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 return getService()
196 .updateVirtualHost(groupId, privateLayout, virtualHost);
197 }
198
199 public static LayoutSetLocalService getService() {
200 if (_service == null) {
201 _service = (LayoutSetLocalService)PortalBeanLocatorUtil.locate(LayoutSetLocalService.class.getName());
202
203 ReferenceRegistry.registerReference(LayoutSetLocalServiceUtil.class,
204 "_service");
205 MethodCache.remove(LayoutSetLocalService.class);
206 }
207
208 return _service;
209 }
210
211 public void setService(LayoutSetLocalService service) {
212 MethodCache.remove(LayoutSetLocalService.class);
213
214 _service = service;
215
216 ReferenceRegistry.registerReference(LayoutSetLocalServiceUtil.class,
217 "_service");
218 MethodCache.remove(LayoutSetLocalService.class);
219 }
220
221 private static LayoutSetLocalService _service;
222 }