001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class CompanyLocalServiceUtil {
033 public static com.liferay.portal.model.Company addCompany(
034 com.liferay.portal.model.Company company)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addCompany(company);
037 }
038
039 public static com.liferay.portal.model.Company createCompany(long companyId) {
040 return getService().createCompany(companyId);
041 }
042
043 public static void deleteCompany(long companyId)
044 throws com.liferay.portal.kernel.exception.PortalException,
045 com.liferay.portal.kernel.exception.SystemException {
046 getService().deleteCompany(companyId);
047 }
048
049 public static void deleteCompany(com.liferay.portal.model.Company company)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 getService().deleteCompany(company);
052 }
053
054 @SuppressWarnings("unchecked")
055 public static java.util.List dynamicQuery(
056 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
057 throws com.liferay.portal.kernel.exception.SystemException {
058 return getService().dynamicQuery(dynamicQuery);
059 }
060
061 @SuppressWarnings("unchecked")
062 public static java.util.List dynamicQuery(
063 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064 int end) throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().dynamicQuery(dynamicQuery, start, end);
066 }
067
068 @SuppressWarnings("unchecked")
069 public static java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return getService()
075 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
076 }
077
078 public static long dynamicQueryCount(
079 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getService().dynamicQueryCount(dynamicQuery);
082 }
083
084 public static com.liferay.portal.model.Company getCompany(long companyId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getCompany(companyId);
088 }
089
090 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
091 int start, int end)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().getCompanies(start, end);
094 }
095
096 public static int getCompaniesCount()
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getCompaniesCount();
099 }
100
101 public static com.liferay.portal.model.Company updateCompany(
102 com.liferay.portal.model.Company company)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().updateCompany(company);
105 }
106
107 public static com.liferay.portal.model.Company updateCompany(
108 com.liferay.portal.model.Company company, boolean merge)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().updateCompany(company, merge);
111 }
112
113 public static com.liferay.portal.model.Company addCompany(
114 java.lang.String webId, java.lang.String virtualHost,
115 java.lang.String mx, java.lang.String shardName, boolean system,
116 int maxUsers)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException {
119 return getService()
120 .addCompany(webId, virtualHost, mx, shardName, system,
121 maxUsers);
122 }
123
124 public static com.liferay.portal.model.Company checkCompany(
125 java.lang.String webId)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException {
128 return getService().checkCompany(webId);
129 }
130
131 public static com.liferay.portal.model.Company checkCompany(
132 java.lang.String webId, java.lang.String mx, java.lang.String shardName)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return getService().checkCompany(webId, mx, shardName);
136 }
137
138 public static void checkCompanyKey(long companyId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 getService().checkCompanyKey(companyId);
142 }
143
144 public static void deleteLogo(long companyId)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 getService().deleteLogo(companyId);
148 }
149
150 public static java.util.List<com.liferay.portal.model.Company> getCompanies()
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService().getCompanies();
153 }
154
155 public static java.util.List<com.liferay.portal.model.Company> getCompanies(
156 boolean system)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().getCompanies(system);
159 }
160
161 public static int getCompaniesCount(boolean system)
162 throws com.liferay.portal.kernel.exception.SystemException {
163 return getService().getCompaniesCount(system);
164 }
165
166 public static com.liferay.portal.model.Company getCompanyById(
167 long companyId)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException {
170 return getService().getCompanyById(companyId);
171 }
172
173 public static com.liferay.portal.model.Company getCompanyByLogoId(
174 long logoId)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException {
177 return getService().getCompanyByLogoId(logoId);
178 }
179
180 public static com.liferay.portal.model.Company getCompanyByMx(
181 java.lang.String mx)
182 throws com.liferay.portal.kernel.exception.PortalException,
183 com.liferay.portal.kernel.exception.SystemException {
184 return getService().getCompanyByMx(mx);
185 }
186
187 public static com.liferay.portal.model.Company getCompanyByVirtualHost(
188 java.lang.String virtualHost)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().getCompanyByVirtualHost(virtualHost);
192 }
193
194 public static com.liferay.portal.model.Company getCompanyByWebId(
195 java.lang.String webId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 return getService().getCompanyByWebId(webId);
199 }
200
201 public static void removePreferences(long companyId, java.lang.String[] keys)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 getService().removePreferences(companyId, keys);
204 }
205
206 public static com.liferay.portal.kernel.search.Hits search(long companyId,
207 long userId, java.lang.String keywords, int start, int end)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getService().search(companyId, userId, keywords, start, end);
210 }
211
212 public static com.liferay.portal.kernel.search.Hits search(long companyId,
213 long userId, java.lang.String portletId, long groupId,
214 java.lang.String type, java.lang.String keywords, int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService()
217 .search(companyId, userId, portletId, groupId, type,
218 keywords, start, end);
219 }
220
221 public static com.liferay.portal.model.Company updateCompany(
222 long companyId, java.lang.String virtualHost, java.lang.String mx,
223 int maxUsers)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException {
226 return getService().updateCompany(companyId, virtualHost, mx, maxUsers);
227 }
228
229 public static com.liferay.portal.model.Company updateCompany(
230 long companyId, java.lang.String virtualHost, java.lang.String mx,
231 java.lang.String homeURL, java.lang.String name,
232 java.lang.String legalName, java.lang.String legalId,
233 java.lang.String legalType, java.lang.String sicCode,
234 java.lang.String tickerSymbol, java.lang.String industry,
235 java.lang.String type, java.lang.String size)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException {
238 return getService()
239 .updateCompany(companyId, virtualHost, mx, homeURL, name,
240 legalName, legalId, legalType, sicCode, tickerSymbol, industry,
241 type, size);
242 }
243
244 public static void updateDisplay(long companyId,
245 java.lang.String languageId, java.lang.String timeZoneId)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 getService().updateDisplay(companyId, languageId, timeZoneId);
249 }
250
251 public static void updateLogo(long companyId, byte[] bytes)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 getService().updateLogo(companyId, bytes);
255 }
256
257 public static void updateLogo(long companyId, java.io.File file)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException {
260 getService().updateLogo(companyId, file);
261 }
262
263 public static void updateLogo(long companyId, java.io.InputStream is)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException {
266 getService().updateLogo(companyId, is);
267 }
268
269 public static void updatePreferences(long companyId,
270 com.liferay.portal.kernel.util.UnicodeProperties properties)
271 throws com.liferay.portal.kernel.exception.SystemException {
272 getService().updatePreferences(companyId, properties);
273 }
274
275 public static void updateSecurity(long companyId,
276 java.lang.String authType, boolean autoLogin, boolean sendPassword,
277 boolean strangers, boolean strangersWithMx, boolean strangersVerify,
278 boolean communityLogo)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 getService()
281 .updateSecurity(companyId, authType, autoLogin, sendPassword,
282 strangers, strangersWithMx, strangersVerify, communityLogo);
283 }
284
285 public static CompanyLocalService getService() {
286 if (_service == null) {
287 _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
288 }
289
290 return _service;
291 }
292
293 public void setService(CompanyLocalService service) {
294 _service = service;
295 }
296
297 private static CompanyLocalService _service;
298 }