1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="CompanyLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portal.service.impl.CompanyLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       CompanyLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface CompanyLocalService {
50      public com.liferay.portal.model.Company addCompany(
51          com.liferay.portal.model.Company company)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.Company createCompany(long companyId);
55  
56      public void deleteCompany(long companyId)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteCompany(com.liferay.portal.model.Company company)
61          throws com.liferay.portal.SystemException;
62  
63      @SuppressWarnings("rawtypes")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.SystemException;
67  
68      @SuppressWarnings("rawtypes")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException;
72  
73      @SuppressWarnings("rawtypes")
74      public java.util.List dynamicQuery(
75          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76          int end,
77          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78          throws com.liferay.portal.SystemException;
79  
80      public int dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public com.liferay.portal.model.Company getCompany(long companyId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portal.model.Company> getCompanies(
91          int start, int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getCompaniesCount() throws com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.Company updateCompany(
97          com.liferay.portal.model.Company company)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portal.model.Company updateCompany(
101         com.liferay.portal.model.Company company, boolean merge)
102         throws com.liferay.portal.SystemException;
103 
104     public com.liferay.portal.model.Company addCompany(java.lang.String webId,
105         java.lang.String virtualHost, java.lang.String mx,
106         java.lang.String shardName, boolean system)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.Company checkCompany(
115         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public void checkCompanyKey(long companyId)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException;
122 
123     public void deleteLogo(long companyId)
124         throws com.liferay.portal.PortalException,
125             com.liferay.portal.SystemException;
126 
127     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
128     public java.util.List<com.liferay.portal.model.Company> getCompanies()
129         throws com.liferay.portal.SystemException;
130 
131     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132     public java.util.List<com.liferay.portal.model.Company> getCompanies(
133         boolean system) throws com.liferay.portal.SystemException;
134 
135     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136     public int getCompaniesCount(boolean system)
137         throws com.liferay.portal.SystemException;
138 
139     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140     public com.liferay.portal.model.Company getCompanyById(long companyId)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145     public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150     public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
151         throws com.liferay.portal.PortalException,
152             com.liferay.portal.SystemException;
153 
154     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155     public com.liferay.portal.model.Company getCompanyByVirtualHost(
156         java.lang.String virtualHost)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException;
159 
160     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public com.liferay.portal.model.Company getCompanyByWebId(
162         java.lang.String webId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void removePreferences(long companyId, java.lang.String[] keys)
167         throws com.liferay.portal.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public com.liferay.portal.kernel.search.Hits search(long companyId,
171         long userId, java.lang.String keywords, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public com.liferay.portal.kernel.search.Hits search(long companyId,
176         long userId, java.lang.String portletId, long groupId,
177         java.lang.String type, java.lang.String keywords, int start, int end)
178         throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portal.model.Company updateCompany(long companyId,
181         java.lang.String virtualHost, java.lang.String mx)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException;
184 
185     public com.liferay.portal.model.Company updateCompany(long companyId,
186         java.lang.String virtualHost, java.lang.String mx,
187         java.lang.String homeURL, java.lang.String name,
188         java.lang.String legalName, java.lang.String legalId,
189         java.lang.String legalType, java.lang.String sicCode,
190         java.lang.String tickerSymbol, java.lang.String industry,
191         java.lang.String type, java.lang.String size)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     public void updateDisplay(long companyId, java.lang.String languageId,
196         java.lang.String timeZoneId)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException;
199 
200     public void updateLogo(long companyId, byte[] bytes)
201         throws com.liferay.portal.PortalException,
202             com.liferay.portal.SystemException;
203 
204     public void updateLogo(long companyId, java.io.File file)
205         throws com.liferay.portal.PortalException,
206             com.liferay.portal.SystemException;
207 
208     public void updateLogo(long companyId, java.io.InputStream is)
209         throws com.liferay.portal.PortalException,
210             com.liferay.portal.SystemException;
211 
212     public void updatePreferences(long companyId,
213         com.liferay.portal.kernel.util.UnicodeProperties properties)
214         throws com.liferay.portal.SystemException;
215 
216     public void updateSecurity(long companyId, java.lang.String authType,
217         boolean autoLogin, boolean sendPassword, boolean strangers,
218         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
219         throws com.liferay.portal.SystemException;
220 }