1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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  
26  /**
27   * <a href="CompanyLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portal.service.impl.CompanyLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portal.service.CompanyLocalServiceUtil
48   *
49   */
50  public interface CompanyLocalService {
51      public com.liferay.portal.model.Company addCompany(
52          com.liferay.portal.model.Company company)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.Company createCompany(long companyId);
56  
57      public void deleteCompany(long companyId)
58          throws com.liferay.portal.SystemException,
59              com.liferay.portal.PortalException;
60  
61      public void deleteCompany(com.liferay.portal.model.Company company)
62          throws com.liferay.portal.SystemException;
63  
64      public java.util.List<Object> dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List<Object> dynamicQuery(
69          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70          int end) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portal.model.Company getCompany(long companyId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portal.model.Company> getCompanies(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getCompaniesCount() throws com.liferay.portal.SystemException;
80  
81      public com.liferay.portal.model.Company updateCompany(
82          com.liferay.portal.model.Company company)
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portal.model.Company addCompany(java.lang.String webId,
86          java.lang.String virtualHost, java.lang.String mx)
87          throws com.liferay.portal.PortalException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
91          throws com.liferay.portal.PortalException,
92              com.liferay.portal.SystemException;
93  
94      public com.liferay.portal.model.Company checkCompany(
95          java.lang.String webId, java.lang.String mx)
96          throws com.liferay.portal.PortalException,
97              com.liferay.portal.SystemException;
98  
99      public void checkCompanyKey(long companyId)
100         throws com.liferay.portal.PortalException,
101             com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.Company> getCompanies()
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portal.model.Company getCompanyById(long companyId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException;
117 
118     public com.liferay.portal.model.Company getCompanyByVirtualHost(
119         java.lang.String virtualHost)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public com.liferay.portal.model.Company getCompanyByWebId(
124         java.lang.String webId)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portal.kernel.search.Hits search(long companyId,
129         java.lang.String keywords, int start, int end)
130         throws com.liferay.portal.SystemException;
131 
132     public com.liferay.portal.kernel.search.Hits search(long companyId,
133         java.lang.String portletId, long groupId, java.lang.String type,
134         java.lang.String keywords, int start, int end)
135         throws com.liferay.portal.SystemException;
136 
137     public com.liferay.portal.model.Company updateCompany(long companyId,
138         java.lang.String virtualHost, java.lang.String mx)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException;
141 
142     public com.liferay.portal.model.Company updateCompany(long companyId,
143         java.lang.String virtualHost, java.lang.String mx,
144         java.lang.String name, java.lang.String legalName,
145         java.lang.String legalId, java.lang.String legalType,
146         java.lang.String sicCode, java.lang.String tickerSymbol,
147         java.lang.String industry, java.lang.String type, java.lang.String size)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public void updateDisplay(long companyId, java.lang.String languageId,
152         java.lang.String timeZoneId)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void updateLogo(long companyId, java.io.File file)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     public void updateSecurity(long companyId, java.lang.String authType,
161         boolean autoLogin, boolean sendPassword, boolean strangers,
162         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
163         throws com.liferay.portal.SystemException;
164 }