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      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.SystemException;
76  
77      public int dynamicQueryCount(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79          throws com.liferay.portal.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portal.model.Company getCompany(long companyId)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portal.model.Company> getCompanies(
88          int start, int end) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getCompaniesCount() throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.Company updateCompany(
94          com.liferay.portal.model.Company company)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.Company updateCompany(
98          com.liferay.portal.model.Company company, boolean merge)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.Company addCompany(java.lang.String webId,
102         java.lang.String virtualHost, java.lang.String mx,
103         java.lang.String shardName, boolean system)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException;
110 
111     public com.liferay.portal.model.Company checkCompany(
112         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public void checkCompanyKey(long companyId)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException;
119 
120     public void deleteLogo(long companyId)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125     public java.util.List<com.liferay.portal.model.Company> getCompanies()
126         throws com.liferay.portal.SystemException;
127 
128     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129     public java.util.List<com.liferay.portal.model.Company> getCompanies(
130         boolean system) throws com.liferay.portal.SystemException;
131 
132     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133     public int getCompaniesCount(boolean system)
134         throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137     public com.liferay.portal.model.Company getCompanyById(long companyId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142     public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152     public com.liferay.portal.model.Company getCompanyByVirtualHost(
153         java.lang.String virtualHost)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158     public com.liferay.portal.model.Company getCompanyByWebId(
159         java.lang.String webId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     public void removePreferences(long companyId, java.lang.String[] keys)
164         throws com.liferay.portal.SystemException;
165 
166     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167     public com.liferay.portal.kernel.search.Hits search(long companyId,
168         long userId, java.lang.String keywords, int start, int end)
169         throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public com.liferay.portal.kernel.search.Hits search(long companyId,
173         long userId, java.lang.String portletId, long groupId,
174         java.lang.String type, java.lang.String keywords, int start, int end)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portal.model.Company updateCompany(long companyId,
178         java.lang.String virtualHost, java.lang.String mx)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException;
181 
182     public com.liferay.portal.model.Company updateCompany(long companyId,
183         java.lang.String virtualHost, java.lang.String mx,
184         java.lang.String homeURL, java.lang.String name,
185         java.lang.String legalName, java.lang.String legalId,
186         java.lang.String legalType, java.lang.String sicCode,
187         java.lang.String tickerSymbol, java.lang.String industry,
188         java.lang.String type, java.lang.String size)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     public void updateDisplay(long companyId, java.lang.String languageId,
193         java.lang.String timeZoneId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     public void updateLogo(long companyId, byte[] bytes)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public void updateLogo(long companyId, java.io.File file)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException;
204 
205     public void updateLogo(long companyId, java.io.InputStream is)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     public void updatePreferences(long companyId,
210         com.liferay.portal.kernel.util.UnicodeProperties properties)
211         throws com.liferay.portal.SystemException;
212 
213     public void updateSecurity(long companyId, java.lang.String authType,
214         boolean autoLogin, boolean sendPassword, boolean strangers,
215         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
216         throws com.liferay.portal.SystemException;
217 }