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