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