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      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.kernel.exception.SystemException;
76  
77      public int dynamicQueryCount(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79          throws com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portal.model.Company getCompany(long companyId)
83          throws com.liferay.portal.kernel.exception.PortalException,
84              com.liferay.portal.kernel.exception.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)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public int getCompaniesCount()
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public com.liferay.portal.model.Company updateCompany(
96          com.liferay.portal.model.Company company)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public com.liferay.portal.model.Company updateCompany(
100         com.liferay.portal.model.Company company, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException;
102 
103     public com.liferay.portal.model.Company addCompany(java.lang.String webId,
104         java.lang.String virtualHost, java.lang.String mx,
105         java.lang.String shardName, boolean system)
106         throws com.liferay.portal.kernel.exception.PortalException,
107             com.liferay.portal.kernel.exception.SystemException;
108 
109     public com.liferay.portal.model.Company checkCompany(java.lang.String webId)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException;
112 
113     public com.liferay.portal.model.Company checkCompany(
114         java.lang.String webId, java.lang.String mx, java.lang.String shardName)
115         throws com.liferay.portal.kernel.exception.PortalException,
116             com.liferay.portal.kernel.exception.SystemException;
117 
118     public void checkCompanyKey(long companyId)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void deleteLogo(long companyId)
123         throws com.liferay.portal.kernel.exception.PortalException,
124             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         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131     public java.util.List<com.liferay.portal.model.Company> getCompanies(
132         boolean system)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136     public int getCompaniesCount(boolean system)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140     public com.liferay.portal.model.Company getCompanyById(long companyId)
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 getCompanyByLogoId(long logoId)
146         throws com.liferay.portal.kernel.exception.PortalException,
147             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
152             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
158             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException;
165 
166     public void removePreferences(long companyId, java.lang.String[] keys)
167         throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
183             com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
193             com.liferay.portal.kernel.exception.SystemException;
194 
195     public void updateDisplay(long companyId, java.lang.String languageId,
196         java.lang.String timeZoneId)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException;
199 
200     public void updateLogo(long companyId, byte[] bytes)
201         throws com.liferay.portal.kernel.exception.PortalException,
202             com.liferay.portal.kernel.exception.SystemException;
203 
204     public void updateLogo(long companyId, java.io.File file)
205         throws com.liferay.portal.kernel.exception.PortalException,
206             com.liferay.portal.kernel.exception.SystemException;
207 
208     public void updateLogo(long companyId, java.io.InputStream is)
209         throws com.liferay.portal.kernel.exception.PortalException,
210             com.liferay.portal.kernel.exception.SystemException;
211 
212     public void updatePreferences(long companyId,
213         com.liferay.portal.kernel.util.UnicodeProperties properties)
214         throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException;
220 }