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     * The interface for the company remote service.
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * <p>
031     * 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.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see CompanyServiceUtil
036     * @see com.liferay.portal.service.base.CompanyServiceBaseImpl
037     * @see com.liferay.portal.service.impl.CompanyServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface CompanyService {
043            public com.liferay.portal.model.Company addCompany(java.lang.String webId,
044                    java.lang.String virtualHost, java.lang.String mx,
045                    java.lang.String shardName, boolean system, int maxUsers)
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            com.liferay.portal.kernel.exception.SystemException;
048    
049            public void deleteLogo(long companyId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException;
052    
053            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
054            public com.liferay.portal.model.Company getCompanyById(long companyId)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException;
057    
058            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
059            public com.liferay.portal.model.Company getCompanyByLogoId(long logoId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException;
062    
063            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064            public com.liferay.portal.model.Company getCompanyByMx(java.lang.String mx)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
069            public com.liferay.portal.model.Company getCompanyByVirtualHost(
070                    java.lang.String virtualHost)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public com.liferay.portal.model.Company getCompanyByWebId(
076                    java.lang.String webId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public void removePreferences(long companyId, java.lang.String[] keys)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException;
083    
084            public com.liferay.portal.model.Company updateCompany(long companyId,
085                    java.lang.String virtualHost, java.lang.String mx, int maxUsers)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException;
088    
089            public com.liferay.portal.model.Company updateCompany(long companyId,
090                    java.lang.String virtualHost, java.lang.String mx,
091                    java.lang.String homeURL, java.lang.String name,
092                    java.lang.String legalName, java.lang.String legalId,
093                    java.lang.String legalType, java.lang.String sicCode,
094                    java.lang.String tickerSymbol, java.lang.String industry,
095                    java.lang.String type, java.lang.String size)
096                    throws com.liferay.portal.kernel.exception.PortalException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.Company updateCompany(long companyId,
100                    java.lang.String virtualHost, java.lang.String mx,
101                    java.lang.String homeURL, java.lang.String name,
102                    java.lang.String legalName, java.lang.String legalId,
103                    java.lang.String legalType, java.lang.String sicCode,
104                    java.lang.String tickerSymbol, java.lang.String industry,
105                    java.lang.String type, java.lang.String size,
106                    java.lang.String languageId, java.lang.String timeZoneId,
107                    java.util.List<com.liferay.portal.model.Address> addresses,
108                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
109                    java.util.List<com.liferay.portal.model.Phone> phones,
110                    java.util.List<com.liferay.portal.model.Website> websites,
111                    com.liferay.portal.kernel.util.UnicodeProperties properties)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException;
114    
115            public void updateDisplay(long companyId, java.lang.String languageId,
116                    java.lang.String timeZoneId)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            public void updateLogo(long companyId, java.io.File file)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException;
123    
124            public void updatePreferences(long companyId,
125                    com.liferay.portal.kernel.util.UnicodeProperties properties)
126                    throws com.liferay.portal.kernel.exception.PortalException,
127                            com.liferay.portal.kernel.exception.SystemException;
128    
129            public void updateSecurity(long companyId, java.lang.String authType,
130                    boolean autoLogin, boolean sendPassword, boolean strangers,
131                    boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
132                    throws com.liferay.portal.kernel.exception.PortalException,
133                            com.liferay.portal.kernel.exception.SystemException;
134    }