1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service;
16  
17  import com.liferay.portal.kernel.annotation.Isolation;
18  import com.liferay.portal.kernel.annotation.Propagation;
19  import com.liferay.portal.kernel.annotation.Transactional;
20  import com.liferay.portal.kernel.exception.PortalException;
21  import com.liferay.portal.kernel.exception.SystemException;
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.kernel.exception.SystemException;
53  
54      public com.liferay.portal.model.Company createCompany(long companyId);
55  
56      public void deleteCompany(long companyId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      public void deleteCompany(com.liferay.portal.model.Company company)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      @SuppressWarnings("unchecked")
64      public java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException;
67  
68      @SuppressWarnings("unchecked")
69      public java.util.List dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException;
72  
73      @SuppressWarnings("unchecked")
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.kernel.exception.SystemException;
79  
80      public long dynamicQueryCount(
81          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82          throws com.liferay.portal.kernel.exception.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public com.liferay.portal.model.Company getCompany(long companyId)
86          throws com.liferay.portal.kernel.exception.PortalException,
87              com.liferay.portal.kernel.exception.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)
92          throws com.liferay.portal.kernel.exception.SystemException;
93  
94      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public int getCompaniesCount()
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public com.liferay.portal.model.Company updateCompany(
99          com.liferay.portal.model.Company company)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public com.liferay.portal.model.Company updateCompany(
103         com.liferay.portal.model.Company company, boolean merge)
104         throws com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Company addCompany(java.lang.String webId,
107         java.lang.String virtualHost, java.lang.String mx,
108         java.lang.String shardName, boolean system, int maxUsers)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException;
111 
112     public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
113         throws com.liferay.portal.kernel.exception.PortalException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portal.model.Company checkCompany(
117         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
118         throws com.liferay.portal.kernel.exception.PortalException,
119             com.liferay.portal.kernel.exception.SystemException;
120 
121     public void checkCompanyKey(long companyId)
122         throws com.liferay.portal.kernel.exception.PortalException,
123             com.liferay.portal.kernel.exception.SystemException;
124 
125     public void deleteLogo(long companyId)
126         throws com.liferay.portal.kernel.exception.PortalException,
127             com.liferay.portal.kernel.exception.SystemException;
128 
129     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130     public java.util.List<com.liferay.portal.model.Company> getCompanies()
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134     public java.util.List<com.liferay.portal.model.Company> getCompanies(
135         boolean system)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139     public int getCompaniesCount(boolean system)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public com.liferay.portal.model.Company getCompanyById(long companyId)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148     public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
149         throws com.liferay.portal.kernel.exception.PortalException,
150             com.liferay.portal.kernel.exception.SystemException;
151 
152     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153     public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
154         throws com.liferay.portal.kernel.exception.PortalException,
155             com.liferay.portal.kernel.exception.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public com.liferay.portal.model.Company getCompanyByVirtualHost(
159         java.lang.String virtualHost)
160         throws com.liferay.portal.kernel.exception.PortalException,
161             com.liferay.portal.kernel.exception.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portal.model.Company getCompanyByWebId(
165         java.lang.String webId)
166         throws com.liferay.portal.kernel.exception.PortalException,
167             com.liferay.portal.kernel.exception.SystemException;
168 
169     public void removePreferences(long companyId, java.lang.String[] keys)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173     public com.liferay.portal.kernel.search.Hits search(long companyId,
174         long userId, java.lang.String keywords, int start, int end)
175         throws com.liferay.portal.kernel.exception.SystemException;
176 
177     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178     public com.liferay.portal.kernel.search.Hits search(long companyId,
179         long userId, java.lang.String portletId, long groupId,
180         java.lang.String type, java.lang.String keywords, int start, int end)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 
183     public com.liferay.portal.model.Company updateCompany(long companyId,
184         java.lang.String virtualHost, java.lang.String mx, int maxUsers)
185         throws com.liferay.portal.kernel.exception.PortalException,
186             com.liferay.portal.kernel.exception.SystemException;
187 
188     public com.liferay.portal.model.Company updateCompany(long companyId,
189         java.lang.String virtualHost, java.lang.String mx,
190         java.lang.String homeURL, java.lang.String name,
191         java.lang.String legalName, java.lang.String legalId,
192         java.lang.String legalType, java.lang.String sicCode,
193         java.lang.String tickerSymbol, java.lang.String industry,
194         java.lang.String type, java.lang.String size)
195         throws com.liferay.portal.kernel.exception.PortalException,
196             com.liferay.portal.kernel.exception.SystemException;
197 
198     public void updateDisplay(long companyId, java.lang.String languageId,
199         java.lang.String timeZoneId)
200         throws com.liferay.portal.kernel.exception.PortalException,
201             com.liferay.portal.kernel.exception.SystemException;
202 
203     public void updateLogo(long companyId, byte[] bytes)
204         throws com.liferay.portal.kernel.exception.PortalException,
205             com.liferay.portal.kernel.exception.SystemException;
206 
207     public void updateLogo(long companyId, java.io.File file)
208         throws com.liferay.portal.kernel.exception.PortalException,
209             com.liferay.portal.kernel.exception.SystemException;
210 
211     public void updateLogo(long companyId, java.io.InputStream is)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException;
214 
215     public void updatePreferences(long companyId,
216         com.liferay.portal.kernel.util.UnicodeProperties properties)
217         throws com.liferay.portal.kernel.exception.SystemException;
218 
219     public void updateSecurity(long companyId, java.lang.String authType,
220         boolean autoLogin, boolean sendPassword, boolean strangers,
221         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
222         throws com.liferay.portal.kernel.exception.SystemException;
223 }