Liferay 6.0.5

com.liferay.portal.service
Interface CompanyService

All Known Implementing Classes:
CompanyServiceBaseImpl, CompanyServiceImpl, CompanyServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface CompanyService

The interface for the company remote service.

Never modify or reference this interface directly. Always use CompanyServiceUtil to access the company remote service. Add custom service methods to CompanyServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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.

See Also:
CompanyServiceUtil, CompanyServiceBaseImpl, CompanyServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 Company addCompany(String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers)
           
 void deleteLogo(long companyId)
           
 Company getCompanyById(long companyId)
           
 Company getCompanyByLogoId(long logoId)
           
 Company getCompanyByMx(String mx)
           
 Company getCompanyByVirtualHost(String virtualHost)
           
 Company getCompanyByWebId(String webId)
           
 void removePreferences(long companyId, String[] keys)
           
 Company updateCompany(long companyId, String virtualHost, String mx, int maxUsers)
           
 Company updateCompany(long companyId, String virtualHost, String mx, String homeURL, String name, String legalName, String legalId, String legalType, String sicCode, String tickerSymbol, String industry, String type, String size)
           
 Company updateCompany(long companyId, String virtualHost, String mx, String homeURL, String name, String legalName, String legalId, String legalType, String sicCode, String tickerSymbol, String industry, String type, String size, String languageId, String timeZoneId, List<Address> addresses, List<EmailAddress> emailAddresses, List<Phone> phones, List<Website> websites, UnicodeProperties properties)
           
 void updateDisplay(long companyId, String languageId, String timeZoneId)
           
 void updateLogo(long companyId, File file)
           
 void updatePreferences(long companyId, UnicodeProperties properties)
           
 void updateSecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
           
 

Method Detail

addCompany

Company addCompany(String webId,
                   String virtualHost,
                   String mx,
                   String shardName,
                   boolean system,
                   int maxUsers)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

deleteLogo

void deleteLogo(long companyId)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

getCompanyById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyById(long companyId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCompanyByLogoId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByLogoId(long logoId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getCompanyByMx

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByMx(String mx)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCompanyByVirtualHost

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByVirtualHost(String virtualHost)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getCompanyByWebId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByWebId(String webId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

removePreferences

void removePreferences(long companyId,
                       String[] keys)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateCompany

Company updateCompany(long companyId,
                      String virtualHost,
                      String mx,
                      int maxUsers)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateCompany

Company updateCompany(long companyId,
                      String virtualHost,
                      String mx,
                      String homeURL,
                      String name,
                      String legalName,
                      String legalId,
                      String legalType,
                      String sicCode,
                      String tickerSymbol,
                      String industry,
                      String type,
                      String size)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateCompany

Company updateCompany(long companyId,
                      String virtualHost,
                      String mx,
                      String homeURL,
                      String name,
                      String legalName,
                      String legalId,
                      String legalType,
                      String sicCode,
                      String tickerSymbol,
                      String industry,
                      String type,
                      String size,
                      String languageId,
                      String timeZoneId,
                      List<Address> addresses,
                      List<EmailAddress> emailAddresses,
                      List<Phone> phones,
                      List<Website> websites,
                      UnicodeProperties properties)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateDisplay

void updateDisplay(long companyId,
                   String languageId,
                   String timeZoneId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

updateLogo

void updateLogo(long companyId,
                File file)
                throws PortalException,
                       SystemException
Throws:
PortalException
SystemException

updatePreferences

void updatePreferences(long companyId,
                       UnicodeProperties properties)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateSecurity

void updateSecurity(long companyId,
                    String authType,
                    boolean autoLogin,
                    boolean sendPassword,
                    boolean strangers,
                    boolean strangersWithMx,
                    boolean strangersVerify,
                    boolean communityLogo)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

Liferay 6.0.5