com.liferay.portal.service
Class CompanyLocalServiceUtil

java.lang.Object
  extended bycom.liferay.portal.service.CompanyLocalServiceUtil

public class CompanyLocalServiceUtil
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.CompanyLocalService 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.

com.liferay.portal.service.CompanyLocalServiceFactory is responsible for the lookup of the bean.

Author:
Brian Wing Shun Chan
See Also:
CompanyLocalService, CompanyLocalServiceFactory

Constructor Summary
CompanyLocalServiceUtil()
           
 
Method Summary
static Company addCompany(Company model)
           
static Company addCompany(java.lang.String webId, java.lang.String virtualHost, java.lang.String mx)
           
static Company checkCompany(java.lang.String webId)
           
static Company checkCompany(java.lang.String webId, java.lang.String mx)
           
static void checkCompanyKey(long companyId)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static java.util.List getCompanies()
           
static Company getCompanyById(long companyId)
           
static Company getCompanyByMx(java.lang.String mx)
           
static Company getCompanyByVirtualHost(java.lang.String virtualHost)
           
static Company getCompanyByWebId(java.lang.String webId)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String keywords)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String portletId, long groupId, java.lang.String type, java.lang.String keywords)
           
static Company updateCompany(Company model)
           
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 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

CompanyLocalServiceUtil

public CompanyLocalServiceUtil()
Method Detail

addCompany

public static Company addCompany(Company model)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCompany

public static Company updateCompany(Company model)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

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

checkCompany

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

checkCompany

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

checkCompanyKey

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

getCompanies

public static java.util.List getCompanies()
                                   throws com.liferay.portal.SystemException
Throws:
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

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

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String keywords)
                                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String portletId,
                                                           long groupId,
                                                           java.lang.String type,
                                                           java.lang.String keywords)
                                                    throws com.liferay.portal.SystemException
Throws:
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 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