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 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
Generated:

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, java.lang.String shardName, boolean system, int maxUsers)
           
static Company checkCompany(java.lang.String webId)
           
static Company checkCompany(java.lang.String webId, java.lang.String mx, java.lang.String shardName)
           
static void checkCompanyKey(long companyId)
           
static Company createCompany(long companyId)
           
static void deleteCompany(Company company)
           
static void deleteCompany(long companyId)
           
static void deleteLogo(long companyId)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static long dynamicQueryCount(DynamicQuery dynamicQuery)
           
static java.util.List<Company> getCompanies()
           
static java.util.List<Company> getCompanies(boolean system)
           
static java.util.List<Company> getCompanies(int start, int end)
           
static int getCompaniesCount()
           
static int getCompaniesCount(boolean system)
           
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 void removePreferences(long companyId, java.lang.String[] keys)
           
static Hits search(long companyId, long userId, java.lang.String keywords, int start, int end)
           
static Hits search(long companyId, long userId, 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(Company company, boolean merge)
           
static Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx, int maxUsers)
           
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 updatePreferences(long companyId, UnicodeProperties properties)
           
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 SystemException
Throws:
SystemException

createCompany

public static Company createCompany(long companyId)

deleteCompany

public static void deleteCompany(long companyId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteCompany

public static void deleteCompany(Company company)
                          throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end)
                                   throws SystemException
Throws:
SystemException

dynamicQuery

public static java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Throws:
SystemException

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
                              throws SystemException
Throws:
SystemException

getCompany

public static Company getCompany(long companyId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getCompanies

public static java.util.List<Company> getCompanies(int start,
                                                   int end)
                                            throws SystemException
Throws:
SystemException

getCompaniesCount

public static int getCompaniesCount()
                             throws SystemException
Throws:
SystemException

updateCompany

public static Company updateCompany(Company company)
                             throws SystemException
Throws:
SystemException

updateCompany

public static Company updateCompany(Company company,
                                    boolean merge)
                             throws SystemException
Throws:
SystemException

addCompany

public static Company addCompany(java.lang.String webId,
                                 java.lang.String virtualHost,
                                 java.lang.String mx,
                                 java.lang.String shardName,
                                 boolean system,
                                 int maxUsers)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

checkCompany

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

checkCompany

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

checkCompanyKey

public static void checkCompanyKey(long companyId)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

deleteLogo

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

getCompanies

public static java.util.List<Company> getCompanies()
                                            throws SystemException
Throws:
SystemException

getCompanies

public static java.util.List<Company> getCompanies(boolean system)
                                            throws SystemException
Throws:
SystemException

getCompaniesCount

public static int getCompaniesCount(boolean system)
                             throws SystemException
Throws:
SystemException

getCompanyById

public static Company getCompanyById(long companyId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCompanyByLogoId

public static Company getCompanyByLogoId(long logoId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

getCompanyByMx

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

getCompanyByVirtualHost

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

getCompanyByWebId

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

removePreferences

public static void removePreferences(long companyId,
                                     java.lang.String[] keys)
                              throws SystemException
Throws:
SystemException

search

public static Hits search(long companyId,
                          long userId,
                          java.lang.String keywords,
                          int start,
                          int end)
                   throws SystemException
Throws:
SystemException

search

public static Hits search(long companyId,
                          long userId,
                          java.lang.String portletId,
                          long groupId,
                          java.lang.String type,
                          java.lang.String keywords,
                          int start,
                          int end)
                   throws SystemException
Throws:
SystemException

updateCompany

public static Company updateCompany(long companyId,
                                    java.lang.String virtualHost,
                                    java.lang.String mx,
                                    int maxUsers)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
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 PortalException,
                                    SystemException
Throws:
PortalException
SystemException

updateDisplay

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

updateLogo

public static void updateLogo(long companyId,
                              byte[] bytes)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updateLogo

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

updateLogo

public static void updateLogo(long companyId,
                              java.io.InputStream is)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

updatePreferences

public static void updatePreferences(long companyId,
                                     UnicodeProperties properties)
                              throws SystemException
Throws:
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 SystemException
Throws:
SystemException

getService

public static CompanyLocalService getService()

setService

public void setService(CompanyLocalService service)