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