1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class CompanyLocalServiceUtil {
40 public static com.liferay.portal.model.Company addCompany(
41 com.liferay.portal.model.Company company)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addCompany(company);
44 }
45
46 public static com.liferay.portal.model.Company createCompany(long companyId) {
47 return getService().createCompany(companyId);
48 }
49
50 public static void deleteCompany(long companyId)
51 throws com.liferay.portal.kernel.exception.PortalException,
52 com.liferay.portal.kernel.exception.SystemException {
53 getService().deleteCompany(companyId);
54 }
55
56 public static void deleteCompany(com.liferay.portal.model.Company company)
57 throws com.liferay.portal.kernel.exception.SystemException {
58 getService().deleteCompany(company);
59 }
60
61 @SuppressWarnings("unchecked")
62 public static java.util.List dynamicQuery(
63 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
64 throws com.liferay.portal.kernel.exception.SystemException {
65 return getService().dynamicQuery(dynamicQuery);
66 }
67
68 @SuppressWarnings("unchecked")
69 public static java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException {
72 return getService().dynamicQuery(dynamicQuery, start, end);
73 }
74
75 @SuppressWarnings("unchecked")
76 public static java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.kernel.exception.SystemException {
81 return getService()
82 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
83 }
84
85 public static long dynamicQueryCount(
86 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
87 throws com.liferay.portal.kernel.exception.SystemException {
88 return getService().dynamicQueryCount(dynamicQuery);
89 }
90
91 public static com.liferay.portal.model.Company getCompany(long companyId)
92 throws com.liferay.portal.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.SystemException {
94 return getService().getCompany(companyId);
95 }
96
97 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
98 int start, int end)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getCompanies(start, end);
101 }
102
103 public static int getCompaniesCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getCompaniesCount();
106 }
107
108 public static com.liferay.portal.model.Company updateCompany(
109 com.liferay.portal.model.Company company)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateCompany(company);
112 }
113
114 public static com.liferay.portal.model.Company updateCompany(
115 com.liferay.portal.model.Company company, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updateCompany(company, merge);
118 }
119
120 public static com.liferay.portal.model.Company addCompany(
121 java.lang.String webId, java.lang.String virtualHost,
122 java.lang.String mx, java.lang.String shardName, boolean system,
123 int maxUsers)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .addCompany(webId, virtualHost, mx, shardName, system,
128 maxUsers);
129 }
130
131 public static com.liferay.portal.model.Company checkCompany(
132 java.lang.String webId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return getService().checkCompany(webId);
136 }
137
138 public static com.liferay.portal.model.Company checkCompany(
139 java.lang.String webId, java.lang.String mx, java.lang.String shardName)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService().checkCompany(webId, mx, shardName);
143 }
144
145 public static void checkCompanyKey(long companyId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 getService().checkCompanyKey(companyId);
149 }
150
151 public static void deleteLogo(long companyId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException {
154 getService().deleteLogo(companyId);
155 }
156
157 public static java.util.List<com.liferay.portal.model.Company> getCompanies()
158 throws com.liferay.portal.kernel.exception.SystemException {
159 return getService().getCompanies();
160 }
161
162 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
163 boolean system)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().getCompanies(system);
166 }
167
168 public static int getCompaniesCount(boolean system)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().getCompaniesCount(system);
171 }
172
173 public static com.liferay.portal.model.Company getCompanyById(
174 long companyId)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getService().getCompanyById(companyId);
178 }
179
180 public static com.liferay.portal.model.Company getCompanyByLogoId(
181 long logoId)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getCompanyByLogoId(logoId);
185 }
186
187 public static com.liferay.portal.model.Company getCompanyByMx(
188 java.lang.String mx)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getCompanyByMx(mx);
192 }
193
194 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
195 java.lang.String virtualHost)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return getService().getCompanyByVirtualHost(virtualHost);
199 }
200
201 public static com.liferay.portal.model.Company getCompanyByWebId(
202 java.lang.String webId)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException {
205 return getService().getCompanyByWebId(webId);
206 }
207
208 public static void removePreferences(long companyId, java.lang.String[] keys)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 getService().removePreferences(companyId, keys);
211 }
212
213 public static com.liferay.portal.kernel.search.Hits search(long companyId,
214 long userId, java.lang.String keywords, int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().search(companyId, userId, keywords, start, end);
217 }
218
219 public static com.liferay.portal.kernel.search.Hits search(long companyId,
220 long userId, java.lang.String portletId, long groupId,
221 java.lang.String type, java.lang.String keywords, int start, int end)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService()
224 .search(companyId, userId, portletId, groupId, type,
225 keywords, start, end);
226 }
227
228 public static com.liferay.portal.model.Company updateCompany(
229 long companyId, java.lang.String virtualHost, java.lang.String mx,
230 int maxUsers)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getService().updateCompany(companyId, virtualHost, mx, maxUsers);
234 }
235
236 public static com.liferay.portal.model.Company updateCompany(
237 long companyId, java.lang.String virtualHost, java.lang.String mx,
238 java.lang.String homeURL, java.lang.String name,
239 java.lang.String legalName, java.lang.String legalId,
240 java.lang.String legalType, java.lang.String sicCode,
241 java.lang.String tickerSymbol, java.lang.String industry,
242 java.lang.String type, java.lang.String size)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException {
245 return getService()
246 .updateCompany(companyId, virtualHost, mx, homeURL, name,
247 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
248 type, size);
249 }
250
251 public static void updateDisplay(long companyId,
252 java.lang.String languageId, java.lang.String timeZoneId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 getService().updateDisplay(companyId, languageId, timeZoneId);
256 }
257
258 public static void updateLogo(long companyId, byte[] bytes)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException {
261 getService().updateLogo(companyId, bytes);
262 }
263
264 public static void updateLogo(long companyId, java.io.File file)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException {
267 getService().updateLogo(companyId, file);
268 }
269
270 public static void updateLogo(long companyId, java.io.InputStream is)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 getService().updateLogo(companyId, is);
274 }
275
276 public static void updatePreferences(long companyId,
277 com.liferay.portal.kernel.util.UnicodeProperties properties)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 getService().updatePreferences(companyId, properties);
280 }
281
282 public static void updateSecurity(long companyId,
283 java.lang.String authType, boolean autoLogin, boolean sendPassword,
284 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
285 boolean communityLogo)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 getService()
288 .updateSecurity(companyId, authType, autoLogin, sendPassword,
289 strangers, strangersWithMx, strangersVerify, communityLogo);
290 }
291
292 public static CompanyLocalService getService() {
293 if (_service == null) {
294 _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
295 }
296
297 return _service;
298 }
299
300 public void setService(CompanyLocalService service) {
301 _service = service;
302 }
303
304 private static CompanyLocalService _service;
305 }