1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="CompanyLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link CompanyLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       CompanyLocalService
45   * @generated
46   */
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 void deleteLogo(long companyId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         getService().deleteLogo(companyId);
141     }
142 
143     public static java.util.List<com.liferay.portal.model.Company> getCompanies()
144         throws com.liferay.portal.SystemException {
145         return getService().getCompanies();
146     }
147 
148     public static java.util.List<com.liferay.portal.model.Company> getCompanies(
149         boolean system) throws com.liferay.portal.SystemException {
150         return getService().getCompanies(system);
151     }
152 
153     public static int getCompaniesCount(boolean system)
154         throws com.liferay.portal.SystemException {
155         return getService().getCompaniesCount(system);
156     }
157 
158     public static com.liferay.portal.model.Company getCompanyById(
159         long companyId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return getService().getCompanyById(companyId);
163     }
164 
165     public static com.liferay.portal.model.Company getCompanyByLogoId(
166         long logoId)
167         throws com.liferay.portal.PortalException,
168             com.liferay.portal.SystemException {
169         return getService().getCompanyByLogoId(logoId);
170     }
171 
172     public static com.liferay.portal.model.Company getCompanyByMx(
173         java.lang.String mx)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         return getService().getCompanyByMx(mx);
177     }
178 
179     public static com.liferay.portal.model.Company getCompanyByVirtualHost(
180         java.lang.String virtualHost)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         return getService().getCompanyByVirtualHost(virtualHost);
184     }
185 
186     public static com.liferay.portal.model.Company getCompanyByWebId(
187         java.lang.String webId)
188         throws com.liferay.portal.PortalException,
189             com.liferay.portal.SystemException {
190         return getService().getCompanyByWebId(webId);
191     }
192 
193     public static void removePreferences(long companyId, java.lang.String[] keys)
194         throws com.liferay.portal.SystemException {
195         getService().removePreferences(companyId, keys);
196     }
197 
198     public static com.liferay.portal.kernel.search.Hits search(long companyId,
199         long userId, java.lang.String keywords, int start, int end)
200         throws com.liferay.portal.SystemException {
201         return getService().search(companyId, userId, keywords, start, end);
202     }
203 
204     public static com.liferay.portal.kernel.search.Hits search(long companyId,
205         long userId, java.lang.String portletId, long groupId,
206         java.lang.String type, java.lang.String keywords, int start, int end)
207         throws com.liferay.portal.SystemException {
208         return getService()
209                    .search(companyId, userId, portletId, groupId, type,
210             keywords, start, end);
211     }
212 
213     public static com.liferay.portal.model.Company updateCompany(
214         long companyId, java.lang.String virtualHost, java.lang.String mx)
215         throws com.liferay.portal.PortalException,
216             com.liferay.portal.SystemException {
217         return getService().updateCompany(companyId, virtualHost, mx);
218     }
219 
220     public static com.liferay.portal.model.Company updateCompany(
221         long companyId, java.lang.String virtualHost, java.lang.String mx,
222         java.lang.String homeURL, java.lang.String name,
223         java.lang.String legalName, java.lang.String legalId,
224         java.lang.String legalType, java.lang.String sicCode,
225         java.lang.String tickerSymbol, java.lang.String industry,
226         java.lang.String type, java.lang.String size)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         return getService()
230                    .updateCompany(companyId, virtualHost, mx, homeURL, name,
231             legalName, legalId, legalType, sicCode, tickerSymbol, industry,
232             type, size);
233     }
234 
235     public static void updateDisplay(long companyId,
236         java.lang.String languageId, java.lang.String timeZoneId)
237         throws com.liferay.portal.PortalException,
238             com.liferay.portal.SystemException {
239         getService().updateDisplay(companyId, languageId, timeZoneId);
240     }
241 
242     public static void updateLogo(long companyId, byte[] bytes)
243         throws com.liferay.portal.PortalException,
244             com.liferay.portal.SystemException {
245         getService().updateLogo(companyId, bytes);
246     }
247 
248     public static void updateLogo(long companyId, java.io.File file)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         getService().updateLogo(companyId, file);
252     }
253 
254     public static void updateLogo(long companyId, java.io.InputStream is)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException {
257         getService().updateLogo(companyId, is);
258     }
259 
260     public static void updatePreferences(long companyId,
261         com.liferay.portal.kernel.util.UnicodeProperties properties)
262         throws com.liferay.portal.SystemException {
263         getService().updatePreferences(companyId, properties);
264     }
265 
266     public static void updateSecurity(long companyId,
267         java.lang.String authType, boolean autoLogin, boolean sendPassword,
268         boolean strangers, boolean strangersWithMx, boolean strangersVerify,
269         boolean communityLogo) throws com.liferay.portal.SystemException {
270         getService()
271             .updateSecurity(companyId, authType, autoLogin, sendPassword,
272             strangers, strangersWithMx, strangersVerify, communityLogo);
273     }
274 
275     public static CompanyLocalService getService() {
276         if (_service == null) {
277             _service = (CompanyLocalService)PortalBeanLocatorUtil.locate(CompanyLocalService.class.getName());
278         }
279 
280         return _service;
281     }
282 
283     public void setService(CompanyLocalService service) {
284         _service = service;
285     }
286 
287     private static CompanyLocalService _service;
288 }