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