001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the company remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see CompanyServiceUtil
033     * @see com.liferay.portal.service.base.CompanyServiceBaseImpl
034     * @see com.liferay.portal.service.impl.CompanyServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface CompanyService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link CompanyServiceUtil} to access the company remote service. Add custom service methods to {@link com.liferay.portal.service.impl.CompanyServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
047                    java.lang.String virtualHost, java.lang.String mx,
048                    java.lang.String shardName, boolean system, int maxUsers)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException;
051    
052            public void deleteLogo(long companyId)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException;
055    
056            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057            public com.liferay.portal.model.Company getCompanyById(long companyId)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException;
060    
061            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
062            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException;
065    
066            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
067            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException;
070    
071            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
072            public com.liferay.portal.model.Company getCompanyByVirtualHost(
073                    java.lang.String virtualHost)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078            public com.liferay.portal.model.Company getCompanyByWebId(
079                    java.lang.String webId)
080                    throws com.liferay.portal.kernel.exception.PortalException,
081                            com.liferay.portal.kernel.exception.SystemException;
082    
083            public void removePreferences(long companyId, java.lang.String[] keys)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException;
086    
087            public com.liferay.portal.model.Company updateCompany(long companyId,
088                    java.lang.String virtualHost, java.lang.String mx, int maxUsers)
089                    throws com.liferay.portal.kernel.exception.PortalException,
090                            com.liferay.portal.kernel.exception.SystemException;
091    
092            public com.liferay.portal.model.Company updateCompany(long companyId,
093                    java.lang.String virtualHost, java.lang.String mx,
094                    java.lang.String homeURL, java.lang.String name,
095                    java.lang.String legalName, java.lang.String legalId,
096                    java.lang.String legalType, java.lang.String sicCode,
097                    java.lang.String tickerSymbol, java.lang.String industry,
098                    java.lang.String type, java.lang.String size)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public com.liferay.portal.model.Company updateCompany(long companyId,
103                    java.lang.String virtualHost, java.lang.String mx,
104                    java.lang.String homeURL, java.lang.String name,
105                    java.lang.String legalName, java.lang.String legalId,
106                    java.lang.String legalType, java.lang.String sicCode,
107                    java.lang.String tickerSymbol, java.lang.String industry,
108                    java.lang.String type, java.lang.String size,
109                    java.lang.String languageId, java.lang.String timeZoneId,
110                    java.util.List<com.liferay.portal.model.Address> addresses,
111                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
112                    java.util.List<com.liferay.portal.model.Phone> phones,
113                    java.util.List<com.liferay.portal.model.Website> websites,
114                    com.liferay.portal.kernel.util.UnicodeProperties properties)
115                    throws com.liferay.portal.kernel.exception.PortalException,
116                            com.liferay.portal.kernel.exception.SystemException;
117    
118            public void updateDisplay(long companyId, java.lang.String languageId,
119                    java.lang.String timeZoneId)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException;
122    
123            public void updateLogo(long companyId, java.io.File file)
124                    throws com.liferay.portal.kernel.exception.PortalException,
125                            com.liferay.portal.kernel.exception.SystemException;
126    
127            public void updatePreferences(long companyId,
128                    com.liferay.portal.kernel.util.UnicodeProperties properties)
129                    throws com.liferay.portal.kernel.exception.PortalException,
130                            com.liferay.portal.kernel.exception.SystemException;
131    
132            public void updateSecurity(long companyId, java.lang.String authType,
133                    boolean autoLogin, boolean sendPassword, boolean strangers,
134                    boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
135                    throws com.liferay.portal.kernel.exception.PortalException,
136                            com.liferay.portal.kernel.exception.SystemException;
137    }