Liferay 6.0-ee

com.liferay.portal.service
Class CompanyLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portal.service.CompanyLocalServiceWrapper
All Implemented Interfaces:
CompanyLocalService

public class CompanyLocalServiceWrapper
extends Object
implements CompanyLocalService

This class is a wrapper for CompanyLocalService.

See Also:
CompanyLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
CompanyLocalServiceWrapper(CompanyLocalService companyLocalService)
           
 
Method Summary
 Company addCompany(Company company)
          Adds the company to the database.
 Company addCompany(String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers)
           
 Company checkCompany(String webId)
           
 Company checkCompany(String webId, String mx, String shardName)
           
 void checkCompanyKey(long companyId)
           
 Company createCompany(long companyId)
          Creates a new company with the primary key.
 void deleteCompany(Company company)
          Deletes the company from the database.
 void deleteCompany(long companyId)
          Deletes the company with the primary key from the database.
 void deleteLogo(long companyId)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 List<Company> getCompanies()
           
 List<Company> getCompanies(boolean system)
           
 List<Company> getCompanies(int start, int end)
          Gets a range of all the companies.
 int getCompaniesCount()
          Gets the number of companies.
 int getCompaniesCount(boolean system)
           
 Company getCompany(long companyId)
          Gets the company with the primary key.
 Company getCompanyById(long companyId)
           
 Company getCompanyByLogoId(long logoId)
           
 Company getCompanyByMx(String mx)
           
 Company getCompanyByVirtualHost(String virtualHost)
           
 Company getCompanyByWebId(String webId)
           
 CompanyLocalService getWrappedCompanyLocalService()
           
 void removePreferences(long companyId, String[] keys)
           
 Hits search(long companyId, long userId, String keywords, int start, int end)
           
 Hits search(long companyId, long userId, String portletId, long groupId, String type, String keywords, int start, int end)
           
 Company updateCompany(Company company)
          Updates the company in the database.
 Company updateCompany(Company company, boolean merge)
          Updates the company in the database.
 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)
           
 void updateDisplay(long companyId, String languageId, String timeZoneId)
           
 void updateLogo(long companyId, byte[] bytes)
           
 void updateLogo(long companyId, File file)
           
 void updateLogo(long companyId, InputStream is)
           
 void updatePreferences(long companyId, UnicodeProperties properties)
           
 void updateSecurity(long companyId, 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

CompanyLocalServiceWrapper

public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService)
Method Detail

addCompany

public Company addCompany(Company company)
                   throws SystemException
Adds the company to the database. Also notifies the appropriate model listeners.

Specified by:
addCompany in interface CompanyLocalService
Parameters:
company - the company to add
Returns:
the company that was added
Throws:
SystemException - if a system exception occurred

createCompany

public Company createCompany(long companyId)
Creates a new company with the primary key. Does not add the company to the database.

Specified by:
createCompany in interface CompanyLocalService
Parameters:
companyId - the primary key for the new company
Returns:
the new company

deleteCompany

public void deleteCompany(long companyId)
                   throws PortalException,
                          SystemException
Deletes the company with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCompany in interface CompanyLocalService
Parameters:
companyId - the primary key of the company to delete
Throws:
PortalException - if a company with the primary key could not be found
SystemException - if a system exception occurred

deleteCompany

public void deleteCompany(Company company)
                   throws SystemException
Deletes the company from the database. Also notifies the appropriate model listeners.

Specified by:
deleteCompany in interface CompanyLocalService
Parameters:
company - the company to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface CompanyLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface CompanyLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
dynamicQuery in interface CompanyLocalService
Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface CompanyLocalService
Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getCompany

public Company getCompany(long companyId)
                   throws PortalException,
                          SystemException
Gets the company with the primary key.

Specified by:
getCompany in interface CompanyLocalService
Parameters:
companyId - the primary key of the company to get
Returns:
the company
Throws:
PortalException - if a company with the primary key could not be found
SystemException - if a system exception occurred

getCompanies

public List<Company> getCompanies(int start,
                                  int end)
                           throws SystemException
Gets a range of all the companies.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getCompanies in interface CompanyLocalService
Parameters:
start - the lower bound of the range of companies to return
end - the upper bound of the range of companies to return (not inclusive)
Returns:
the range of companies
Throws:
SystemException - if a system exception occurred

getCompaniesCount

public int getCompaniesCount()
                      throws SystemException
Gets the number of companies.

Specified by:
getCompaniesCount in interface CompanyLocalService
Returns:
the number of companies
Throws:
SystemException - if a system exception occurred

updateCompany

public Company updateCompany(Company company)
                      throws SystemException
Updates the company in the database. Also notifies the appropriate model listeners.

Specified by:
updateCompany in interface CompanyLocalService
Parameters:
company - the company to update
Returns:
the company that was updated
Throws:
SystemException - if a system exception occurred

updateCompany

public Company updateCompany(Company company,
                             boolean merge)
                      throws SystemException
Updates the company in the database. Also notifies the appropriate model listeners.

Specified by:
updateCompany in interface CompanyLocalService
Parameters:
company - the company to update
merge - whether to merge the company with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the company that was updated
Throws:
SystemException - if a system exception occurred

addCompany

public Company addCompany(String webId,
                          String virtualHost,
                          String mx,
                          String shardName,
                          boolean system,
                          int maxUsers)
                   throws PortalException,
                          SystemException
Specified by:
addCompany in interface CompanyLocalService
Throws:
PortalException
SystemException

checkCompany

public Company checkCompany(String webId)
                     throws PortalException,
                            SystemException
Specified by:
checkCompany in interface CompanyLocalService
Throws:
PortalException
SystemException

checkCompany

public Company checkCompany(String webId,
                            String mx,
                            String shardName)
                     throws PortalException,
                            SystemException
Specified by:
checkCompany in interface CompanyLocalService
Throws:
PortalException
SystemException

checkCompanyKey

public void checkCompanyKey(long companyId)
                     throws PortalException,
                            SystemException
Specified by:
checkCompanyKey in interface CompanyLocalService
Throws:
PortalException
SystemException

deleteLogo

public void deleteLogo(long companyId)
                throws PortalException,
                       SystemException
Specified by:
deleteLogo in interface CompanyLocalService
Throws:
PortalException
SystemException

getCompanies

public List<Company> getCompanies()
                           throws SystemException
Specified by:
getCompanies in interface CompanyLocalService
Throws:
SystemException

getCompanies

public List<Company> getCompanies(boolean system)
                           throws SystemException
Specified by:
getCompanies in interface CompanyLocalService
Throws:
SystemException

getCompaniesCount

public int getCompaniesCount(boolean system)
                      throws SystemException
Specified by:
getCompaniesCount in interface CompanyLocalService
Throws:
SystemException

getCompanyById

public Company getCompanyById(long companyId)
                       throws PortalException,
                              SystemException
Specified by:
getCompanyById in interface CompanyLocalService
Throws:
PortalException
SystemException

getCompanyByLogoId

public Company getCompanyByLogoId(long logoId)
                           throws PortalException,
                                  SystemException
Specified by:
getCompanyByLogoId in interface CompanyLocalService
Throws:
PortalException
SystemException

getCompanyByMx

public Company getCompanyByMx(String mx)
                       throws PortalException,
                              SystemException
Specified by:
getCompanyByMx in interface CompanyLocalService
Throws:
PortalException
SystemException

getCompanyByVirtualHost

public Company getCompanyByVirtualHost(String virtualHost)
                                throws PortalException,
                                       SystemException
Specified by:
getCompanyByVirtualHost in interface CompanyLocalService
Throws:
PortalException
SystemException

getCompanyByWebId

public Company getCompanyByWebId(String webId)
                          throws PortalException,
                                 SystemException
Specified by:
getCompanyByWebId in interface CompanyLocalService
Throws:
PortalException
SystemException

removePreferences

public void removePreferences(long companyId,
                              String[] keys)
                       throws SystemException
Specified by:
removePreferences in interface CompanyLocalService
Throws:
SystemException

search

public Hits search(long companyId,
                   long userId,
                   String keywords,
                   int start,
                   int end)
            throws SystemException
Specified by:
search in interface CompanyLocalService
Throws:
SystemException

search

public Hits search(long companyId,
                   long userId,
                   String portletId,
                   long groupId,
                   String type,
                   String keywords,
                   int start,
                   int end)
            throws SystemException
Specified by:
search in interface CompanyLocalService
Throws:
SystemException

updateCompany

public Company updateCompany(long companyId,
                             String virtualHost,
                             String mx,
                             int maxUsers)
                      throws PortalException,
                             SystemException
Specified by:
updateCompany in interface CompanyLocalService
Throws:
PortalException
SystemException

updateCompany

public 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
Specified by:
updateCompany in interface CompanyLocalService
Throws:
PortalException
SystemException

updateDisplay

public void updateDisplay(long companyId,
                          String languageId,
                          String timeZoneId)
                   throws PortalException,
                          SystemException
Specified by:
updateDisplay in interface CompanyLocalService
Throws:
PortalException
SystemException

updateLogo

public void updateLogo(long companyId,
                       byte[] bytes)
                throws PortalException,
                       SystemException
Specified by:
updateLogo in interface CompanyLocalService
Throws:
PortalException
SystemException

updateLogo

public void updateLogo(long companyId,
                       File file)
                throws PortalException,
                       SystemException
Specified by:
updateLogo in interface CompanyLocalService
Throws:
PortalException
SystemException

updateLogo

public void updateLogo(long companyId,
                       InputStream is)
                throws PortalException,
                       SystemException
Specified by:
updateLogo in interface CompanyLocalService
Throws:
PortalException
SystemException

updatePreferences

public void updatePreferences(long companyId,
                              UnicodeProperties properties)
                       throws SystemException
Specified by:
updatePreferences in interface CompanyLocalService
Throws:
SystemException

updateSecurity

public void updateSecurity(long companyId,
                           String authType,
                           boolean autoLogin,
                           boolean sendPassword,
                           boolean strangers,
                           boolean strangersWithMx,
                           boolean strangersVerify,
                           boolean communityLogo)
                    throws SystemException
Specified by:
updateSecurity in interface CompanyLocalService
Throws:
SystemException

getWrappedCompanyLocalService

public CompanyLocalService getWrappedCompanyLocalService()

Liferay 6.0-ee