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