com.liferay.portal.service
Interface CompanyLocalService

All Known Implementing Classes:
CompanyLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface CompanyLocalService

View Source

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

This interface defines the service. The default implementation is com.liferay.portal.service.impl.CompanyLocalServiceImpl}. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
CompanyLocalServiceUtil
Generated:

Method Summary
 Company addCompany(Company company)
           
 Company addCompany(java.lang.String webId, java.lang.String virtualHost, java.lang.String mx, java.lang.String shardName, boolean system, int maxUsers)
           
 Company checkCompany(java.lang.String webId)
           
 Company checkCompany(java.lang.String webId, java.lang.String mx, java.lang.String shardName)
           
 void checkCompanyKey(long companyId)
           
 Company createCompany(long companyId)
           
 void deleteCompany(Company company)
           
 void deleteCompany(long companyId)
           
 void deleteLogo(long companyId)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 java.util.List<Company> getCompanies()
           
 java.util.List<Company> getCompanies(boolean system)
           
 java.util.List<Company> getCompanies(int start, int end)
           
 int getCompaniesCount()
           
 int getCompaniesCount(boolean system)
           
 Company getCompany(long companyId)
           
 Company getCompanyById(long companyId)
           
 Company getCompanyByLogoId(long logoId)
           
 Company getCompanyByMx(java.lang.String mx)
           
 Company getCompanyByVirtualHost(java.lang.String virtualHost)
           
 Company getCompanyByWebId(java.lang.String webId)
           
 void removePreferences(long companyId, java.lang.String[] keys)
           
 Hits search(long companyId, long userId, java.lang.String keywords, int start, int end)
           
 Hits search(long companyId, long userId, java.lang.String portletId, long groupId, java.lang.String type, java.lang.String keywords, int start, int end)
           
 Company updateCompany(Company company)
           
 Company updateCompany(Company company, boolean merge)
           
 Company updateCompany(long companyId, java.lang.String virtualHost, java.lang.String mx, int maxUsers)
           
 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)
           
 void updateDisplay(long companyId, java.lang.String languageId, java.lang.String timeZoneId)
           
 void updateLogo(long companyId, byte[] bytes)
           
 void updateLogo(long companyId, java.io.File file)
           
 void updateLogo(long companyId, java.io.InputStream is)
           
 void updatePreferences(long companyId, UnicodeProperties properties)
           
 void updateSecurity(long companyId, java.lang.String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo)
           
 

Method Detail

addCompany

Company addCompany(Company company)
                   throws SystemException
Throws:
SystemException

createCompany

Company createCompany(long companyId)

deleteCompany

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

deleteCompany

void deleteCompany(Company company)
                   throws SystemException
Throws:
SystemException

dynamicQuery

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

dynamicQuery

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

dynamicQuery

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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getCompany

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompany(long companyId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getCompanies

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Company> getCompanies(int start,
                                                                              int end)
                                     throws SystemException
Throws:
SystemException

getCompaniesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompaniesCount()
                      throws SystemException
Throws:
SystemException

updateCompany

Company updateCompany(Company company)
                      throws SystemException
Throws:
SystemException

updateCompany

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

addCompany

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

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

checkCompany

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

checkCompanyKey

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

deleteLogo

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

getCompanies

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Company> getCompanies()
                                     throws SystemException
Throws:
SystemException

getCompanies

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<Company> getCompanies(boolean system)
                                     throws SystemException
Throws:
SystemException

getCompaniesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getCompaniesCount(boolean system)
                      throws SystemException
Throws:
SystemException

getCompanyById

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyById(long companyId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCompanyByLogoId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByLogoId(long logoId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getCompanyByMx

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByMx(java.lang.String mx)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCompanyByVirtualHost

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByVirtualHost(java.lang.String virtualHost)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getCompanyByWebId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Company getCompanyByWebId(java.lang.String webId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

removePreferences

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Hits search(long companyId,
                                                     long userId,
                                                     java.lang.String keywords,
                                                     int start,
                                                     int end)
            throws SystemException
Throws:
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

Company updateCompany(long companyId,
                      java.lang.String virtualHost,
                      java.lang.String mx,
                      int maxUsers)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateCompany

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

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

updateLogo

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

updateLogo

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

updateLogo

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

updatePreferences

void updatePreferences(long companyId,
                       UnicodeProperties properties)
                       throws SystemException
Throws:
SystemException

updateSecurity

void updateSecurity(long companyId,
                    java.lang.String authType,
                    boolean autoLogin,
                    boolean sendPassword,
                    boolean strangers,
                    boolean strangersWithMx,
                    boolean strangersVerify,
                    boolean communityLogo)
                    throws SystemException
Throws:
SystemException