com.liferay.portal.service
Class CompanyLocalServiceUtil

java.lang.Object
  extended by com.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.

Author:
Brian Wing Shun Chan
See Also:
CompanyLocalService

Constructor Summary
CompanyLocalServiceUtil()
           
 
Method Summary
static Company addCompany(Company company)
           
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 Company createCompany(long companyId)
           
static void deleteCompany(Company company)
           
static void deleteCompany(long companyId)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List<Company> getCompanies()
           
static java.util.List<Company> getCompanies(int start, int end)
           
static int getCompaniesCount()
           
static Company getCompany(long companyId)
           
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 CompanyLocalService getService()
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String keywords, int start, int end)
           
static com.liferay.portal.kernel.search.Hits search(long companyId, java.lang.String portletId, long groupId, java.lang.String type, java.lang.String keywords, int start, int end)
           
 void setService(CompanyLocalService service)
           
static Company updateCompany(Company company)
           
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, byte[] bytes)
           
static void updateLogo(long companyId, java.io.File file)
           
static void updateLogo(long companyId, java.io.InputStream is)
           
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 company)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createCompany

public static Company createCompany(long companyId)

deleteCompany

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

deleteCompany

public static void deleteCompany(Company company)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public static java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                            int start,
                                                            int end)
                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompany

public static Company getCompany(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<Company> getCompanies(int start,
                                                   int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getCompaniesCount

public static int getCompaniesCount()
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateCompany

public static Company updateCompany(Company company)
                             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<Company> 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

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

search

public static com.liferay.portal.kernel.search.Hits search(long companyId,
                                                           java.lang.String keywords,
                                                           int start,
                                                           int end)
                                                    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,
                                                           int start,
                                                           int end)
                                                    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 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,
                              byte[] bytes)
                       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

updateLogo

public static void updateLogo(long companyId,
                              java.io.InputStream is)
                       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.SystemException
Throws:
com.liferay.portal.SystemException

getService

public static CompanyLocalService getService()

setService

public void setService(CompanyLocalService service)