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