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="CompanyService.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.CompanyServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       CompanyServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface CompanyService {
50      public com.liferay.portal.model.Company addCompany(java.lang.String webId,
51          java.lang.String virtualHost, java.lang.String mx,
52          java.lang.String shardName, boolean system)
53          throws com.liferay.portal.kernel.exception.PortalException,
54              com.liferay.portal.kernel.exception.SystemException;
55  
56      public void deleteLogo(long companyId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException;
59  
60      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
61      public com.liferay.portal.model.Company getCompanyById(long companyId)
62          throws com.liferay.portal.kernel.exception.PortalException,
63              com.liferay.portal.kernel.exception.SystemException;
64  
65      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
66      public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
67          throws com.liferay.portal.kernel.exception.PortalException,
68              com.liferay.portal.kernel.exception.SystemException;
69  
70      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
71      public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
72          throws com.liferay.portal.kernel.exception.PortalException,
73              com.liferay.portal.kernel.exception.SystemException;
74  
75      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76      public com.liferay.portal.model.Company getCompanyByVirtualHost(
77          java.lang.String virtualHost)
78          throws com.liferay.portal.kernel.exception.PortalException,
79              com.liferay.portal.kernel.exception.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portal.model.Company getCompanyByWebId(
83          java.lang.String webId)
84          throws com.liferay.portal.kernel.exception.PortalException,
85              com.liferay.portal.kernel.exception.SystemException;
86  
87      public void removePreferences(long companyId, java.lang.String[] keys)
88          throws com.liferay.portal.kernel.exception.PortalException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public com.liferay.portal.model.Company updateCompany(long companyId,
92          java.lang.String virtualHost, java.lang.String mx)
93          throws com.liferay.portal.kernel.exception.PortalException,
94              com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portal.model.Company updateCompany(long companyId,
97          java.lang.String virtualHost, java.lang.String mx,
98          java.lang.String homeURL, java.lang.String name,
99          java.lang.String legalName, java.lang.String legalId,
100         java.lang.String legalType, java.lang.String sicCode,
101         java.lang.String tickerSymbol, java.lang.String industry,
102         java.lang.String type, java.lang.String size)
103         throws com.liferay.portal.kernel.exception.PortalException,
104             com.liferay.portal.kernel.exception.SystemException;
105 
106     public com.liferay.portal.model.Company updateCompany(long companyId,
107         java.lang.String virtualHost, java.lang.String mx,
108         java.lang.String homeURL, java.lang.String name,
109         java.lang.String legalName, java.lang.String legalId,
110         java.lang.String legalType, java.lang.String sicCode,
111         java.lang.String tickerSymbol, java.lang.String industry,
112         java.lang.String type, java.lang.String size,
113         java.lang.String languageId, java.lang.String timeZoneId,
114         java.util.List<com.liferay.portal.model.Address> addresses,
115         java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
116         java.util.List<com.liferay.portal.model.Phone> phones,
117         java.util.List<com.liferay.portal.model.Website> websites,
118         com.liferay.portal.kernel.util.UnicodeProperties properties)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException;
121 
122     public void updateDisplay(long companyId, java.lang.String languageId,
123         java.lang.String timeZoneId)
124         throws com.liferay.portal.kernel.exception.PortalException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public void updateLogo(long companyId, java.io.File file)
128         throws com.liferay.portal.kernel.exception.PortalException,
129             com.liferay.portal.kernel.exception.SystemException;
130 
131     public void updatePreferences(long companyId,
132         com.liferay.portal.kernel.util.UnicodeProperties properties)
133         throws com.liferay.portal.kernel.exception.PortalException,
134             com.liferay.portal.kernel.exception.SystemException;
135 
136     public void updateSecurity(long companyId, java.lang.String authType,
137         boolean autoLogin, boolean sendPassword, boolean strangers,
138         boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
139         throws com.liferay.portal.kernel.exception.PortalException,
140             com.liferay.portal.kernel.exception.SystemException;
141 }