001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * <p>
025     * This interface defines the service. The default implementation is
026     * {@link
027     * com.liferay.portal.service.impl.CompanyLocalServiceImpl}.
028     * Modify methods in that class and rerun ServiceBuilder to populate this class
029     * and all other generated classes.
030     * </p>
031     *
032     * <p>
033     * 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.
034     * </p>
035     *
036     * @author    Brian Wing Shun Chan
037     * @see       CompanyLocalServiceUtil
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface CompanyLocalService {
043            public com.liferay.portal.model.Company addCompany(
044                    com.liferay.portal.model.Company company)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portal.model.Company createCompany(long companyId);
048    
049            public void deleteCompany(long companyId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            public void deleteCompany(com.liferay.portal.model.Company company)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            @SuppressWarnings("unchecked")
057            public java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            @SuppressWarnings("unchecked")
062            public java.util.List dynamicQuery(
063                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
064                    int end) throws com.liferay.portal.kernel.exception.SystemException;
065    
066            @SuppressWarnings("unchecked")
067            public java.util.List dynamicQuery(
068                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
069                    int end,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public long dynamicQueryCount(
074                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public com.liferay.portal.model.Company getCompany(long companyId)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException;
081    
082            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
083            public java.util.List<com.liferay.portal.model.Company> getCompanies(
084                    int start, int end)
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088            public int getCompaniesCount()
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public com.liferay.portal.model.Company updateCompany(
092                    com.liferay.portal.model.Company company)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public com.liferay.portal.model.Company updateCompany(
096                    com.liferay.portal.model.Company company, boolean merge)
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
100                    java.lang.String virtualHost, java.lang.String mx,
101                    java.lang.String shardName, boolean system, int maxUsers)
102                    throws com.liferay.portal.kernel.exception.PortalException,
103                            com.liferay.portal.kernel.exception.SystemException;
104    
105            public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
106                    throws com.liferay.portal.kernel.exception.PortalException,
107                            com.liferay.portal.kernel.exception.SystemException;
108    
109            public com.liferay.portal.model.Company checkCompany(
110                    java.lang.String webId, java.lang.String mx, java.lang.String shardName)
111                    throws com.liferay.portal.kernel.exception.PortalException,
112                            com.liferay.portal.kernel.exception.SystemException;
113    
114            public void checkCompanyKey(long companyId)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void deleteLogo(long companyId)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException;
121    
122            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123            public java.util.List<com.liferay.portal.model.Company> getCompanies()
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127            public java.util.List<com.liferay.portal.model.Company> getCompanies(
128                    boolean system)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132            public int getCompaniesCount(boolean system)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136            public com.liferay.portal.model.Company getCompanyById(long companyId)
137                    throws com.liferay.portal.kernel.exception.PortalException,
138                            com.liferay.portal.kernel.exception.SystemException;
139    
140            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
142                    throws com.liferay.portal.kernel.exception.PortalException,
143                            com.liferay.portal.kernel.exception.SystemException;
144    
145            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
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 getCompanyByVirtualHost(
152                    java.lang.String virtualHost)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException;
155    
156            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157            public com.liferay.portal.model.Company getCompanyByWebId(
158                    java.lang.String webId)
159                    throws com.liferay.portal.kernel.exception.PortalException,
160                            com.liferay.portal.kernel.exception.SystemException;
161    
162            public void removePreferences(long companyId, java.lang.String[] keys)
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    
165            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166            public com.liferay.portal.kernel.search.Hits search(long companyId,
167                    long userId, java.lang.String keywords, int start, int end)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171            public com.liferay.portal.kernel.search.Hits search(long companyId,
172                    long userId, java.lang.String portletId, long groupId,
173                    java.lang.String type, java.lang.String keywords, int start, int end)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public com.liferay.portal.model.Company updateCompany(long companyId,
177                    java.lang.String virtualHost, java.lang.String mx, int maxUsers)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException;
180    
181            public com.liferay.portal.model.Company updateCompany(long companyId,
182                    java.lang.String virtualHost, java.lang.String mx,
183                    java.lang.String homeURL, java.lang.String name,
184                    java.lang.String legalName, java.lang.String legalId,
185                    java.lang.String legalType, java.lang.String sicCode,
186                    java.lang.String tickerSymbol, java.lang.String industry,
187                    java.lang.String type, java.lang.String size)
188                    throws com.liferay.portal.kernel.exception.PortalException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            public void updateDisplay(long companyId, java.lang.String languageId,
192                    java.lang.String timeZoneId)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException;
195    
196            public void updateLogo(long companyId, byte[] bytes)
197                    throws com.liferay.portal.kernel.exception.PortalException,
198                            com.liferay.portal.kernel.exception.SystemException;
199    
200            public void updateLogo(long companyId, java.io.File file)
201                    throws com.liferay.portal.kernel.exception.PortalException,
202                            com.liferay.portal.kernel.exception.SystemException;
203    
204            public void updateLogo(long companyId, java.io.InputStream is)
205                    throws com.liferay.portal.kernel.exception.PortalException,
206                            com.liferay.portal.kernel.exception.SystemException;
207    
208            public void updatePreferences(long companyId,
209                    com.liferay.portal.kernel.util.UnicodeProperties properties)
210                    throws com.liferay.portal.kernel.exception.SystemException;
211    
212            public void updateSecurity(long companyId, java.lang.String authType,
213                    boolean autoLogin, boolean sendPassword, boolean strangers,
214                    boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
215                    throws com.liferay.portal.kernel.exception.SystemException;
216    }