com.liferay.portal.service
Class CompanyServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.CompanyServiceUtil

public class CompanyServiceUtil
extends java.lang.Object

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class provides static methods for the com.liferay.portal.service.CompanyService bean. The static methods of this class calls the same methods of the bean instance. It's convenient to be able to just write one line to call a method on a bean instead of writing a lookup call and a method call.

Author:
Brian Wing Shun Chan
See Also:
CompanyService

Constructor Summary
CompanyServiceUtil()
           
 
Method Summary
static Company addCompany(java.lang.String webId, java.lang.String virtualHost, java.lang.String mx)
           
static Company getCompanyById(long companyId)
           
static Company getCompanyByLogoId(long logoId)
           
static Company getCompanyByMx(java.lang.String mx)
           
static Company getCompanyByVirtualHost(java.lang.String virtualHost)
           
static Company getCompanyByWebId(java.lang.String webId)
           
static CompanyService getService()
           
 void setService(CompanyService service)
           
static Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx)
           
static Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx, java.lang.String homeURL, java.lang.String name, java.lang.String legalName, java.lang.String legalId, java.lang.String legalType, java.lang.String sicCode, java.lang.String tickerSymbol, java.lang.String industry, java.lang.String type, java.lang.String size)
           
static void updateDisplay(long companyId, java.lang.String languageId, java.lang.String timeZoneId)
           
static void updateLogo(long companyId, java.io.File file)
           
static void updateSecurity(long companyId, java.lang.String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyServiceUtil

public CompanyServiceUtil()
Method Detail

addCompany

public static Company addCompany(java.lang.String webId,
                                 java.lang.String virtualHost,
                                 java.lang.String mx)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyById

public static Company getCompanyById(long companyId)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByLogoId

public static Company getCompanyByLogoId(long logoId)
                                  throws com.liferay.portal.PortalException,
                                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByMx

public static Company getCompanyByMx(java.lang.String mx)
                              throws com.liferay.portal.PortalException,
                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByVirtualHost

public static Company getCompanyByVirtualHost(java.lang.String virtualHost)
                                       throws com.liferay.portal.PortalException,
                                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getCompanyByWebId

public static Company getCompanyByWebId(java.lang.String webId)
                                 throws com.liferay.portal.PortalException,
                                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCompany

public static Company updateCompany(long companyId,
                                    java.lang.String virtualHost,
                                    java.lang.String mx)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateCompany

public static Company updateCompany(long companyId,
                                    java.lang.String virtualHost,
                                    java.lang.String mx,
                                    java.lang.String homeURL,
                                    java.lang.String name,
                                    java.lang.String legalName,
                                    java.lang.String legalId,
                                    java.lang.String legalType,
                                    java.lang.String sicCode,
                                    java.lang.String tickerSymbol,
                                    java.lang.String industry,
                                    java.lang.String type,
                                    java.lang.String size)
                             throws com.liferay.portal.PortalException,
                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateDisplay

public static void updateDisplay(long companyId,
                                 java.lang.String languageId,
                                 java.lang.String timeZoneId)
                          throws com.liferay.portal.PortalException,
                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateLogo

public static void updateLogo(long companyId,
                              java.io.File file)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateSecurity

public static void updateSecurity(long companyId,
                                  java.lang.String authType,
                                  boolean autoLogin,
                                  boolean sendPassword,
                                  boolean strangers,
                                  boolean strangersWithMx,
                                  boolean strangersVerify,
                                  boolean communityLogo)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getService

public static CompanyService getService()

setService

public void setService(CompanyService service)