|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portal.service.CompanyLocalServiceWrapper
public class CompanyLocalServiceWrapper
This class is a wrapper for CompanyLocalService
.
CompanyLocalService
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 |
---|
public CompanyLocalServiceWrapper(CompanyLocalService companyLocalService)
Method Detail |
---|
public Company addCompany(Company company) throws SystemException
addCompany
in interface CompanyLocalService
company
- the company to add
SystemException
- if a system exception occurredpublic Company createCompany(long companyId)
createCompany
in interface CompanyLocalService
companyId
- the primary key for the new company
public void deleteCompany(long companyId) throws PortalException, SystemException
deleteCompany
in interface CompanyLocalService
companyId
- the primary key of the company to delete
PortalException
- if a company with the primary key could not be found
SystemException
- if a system exception occurredpublic void deleteCompany(Company company) throws SystemException
deleteCompany
in interface CompanyLocalService
company
- the company to delete
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
in interface CompanyLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
in interface CompanyLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
in interface CompanyLocalService
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQueryCount
in interface CompanyLocalService
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic Company getCompany(long companyId) throws PortalException, SystemException
getCompany
in interface CompanyLocalService
companyId
- the primary key of the company to get
PortalException
- if a company with the primary key could not be found
SystemException
- if a system exception occurredpublic List<Company> getCompanies(int start, int end) throws SystemException
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.
getCompanies
in interface CompanyLocalService
start
- the lower bound of the range of companies to returnend
- the upper bound of the range of companies to return (not inclusive)
SystemException
- if a system exception occurredpublic int getCompaniesCount() throws SystemException
getCompaniesCount
in interface CompanyLocalService
SystemException
- if a system exception occurredpublic Company updateCompany(Company company) throws SystemException
updateCompany
in interface CompanyLocalService
company
- the company to update
SystemException
- if a system exception occurredpublic Company updateCompany(Company company, boolean merge) throws SystemException
updateCompany
in interface CompanyLocalService
company
- the company to updatemerge
- 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.
SystemException
- if a system exception occurredpublic Company addCompany(String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers) throws PortalException, SystemException
addCompany
in interface CompanyLocalService
PortalException
SystemException
public Company checkCompany(String webId) throws PortalException, SystemException
checkCompany
in interface CompanyLocalService
PortalException
SystemException
public Company checkCompany(String webId, String mx, String shardName) throws PortalException, SystemException
checkCompany
in interface CompanyLocalService
PortalException
SystemException
public void checkCompanyKey(long companyId) throws PortalException, SystemException
checkCompanyKey
in interface CompanyLocalService
PortalException
SystemException
public void deleteLogo(long companyId) throws PortalException, SystemException
deleteLogo
in interface CompanyLocalService
PortalException
SystemException
public List<Company> getCompanies() throws SystemException
getCompanies
in interface CompanyLocalService
SystemException
public List<Company> getCompanies(boolean system) throws SystemException
getCompanies
in interface CompanyLocalService
SystemException
public int getCompaniesCount(boolean system) throws SystemException
getCompaniesCount
in interface CompanyLocalService
SystemException
public Company getCompanyById(long companyId) throws PortalException, SystemException
getCompanyById
in interface CompanyLocalService
PortalException
SystemException
public Company getCompanyByLogoId(long logoId) throws PortalException, SystemException
getCompanyByLogoId
in interface CompanyLocalService
PortalException
SystemException
public Company getCompanyByMx(String mx) throws PortalException, SystemException
getCompanyByMx
in interface CompanyLocalService
PortalException
SystemException
public Company getCompanyByVirtualHost(String virtualHost) throws PortalException, SystemException
getCompanyByVirtualHost
in interface CompanyLocalService
PortalException
SystemException
public Company getCompanyByWebId(String webId) throws PortalException, SystemException
getCompanyByWebId
in interface CompanyLocalService
PortalException
SystemException
public void removePreferences(long companyId, String[] keys) throws SystemException
removePreferences
in interface CompanyLocalService
SystemException
public Hits search(long companyId, long userId, String keywords, int start, int end) throws SystemException
search
in interface CompanyLocalService
SystemException
public Hits search(long companyId, long userId, String portletId, long groupId, String type, String keywords, int start, int end) throws SystemException
search
in interface CompanyLocalService
SystemException
public Company updateCompany(long companyId, String virtualHost, String mx, int maxUsers) throws PortalException, SystemException
updateCompany
in interface CompanyLocalService
PortalException
SystemException
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
updateCompany
in interface CompanyLocalService
PortalException
SystemException
public void updateDisplay(long companyId, String languageId, String timeZoneId) throws PortalException, SystemException
updateDisplay
in interface CompanyLocalService
PortalException
SystemException
public void updateLogo(long companyId, byte[] bytes) throws PortalException, SystemException
updateLogo
in interface CompanyLocalService
PortalException
SystemException
public void updateLogo(long companyId, File file) throws PortalException, SystemException
updateLogo
in interface CompanyLocalService
PortalException
SystemException
public void updateLogo(long companyId, InputStream is) throws PortalException, SystemException
updateLogo
in interface CompanyLocalService
PortalException
SystemException
public void updatePreferences(long companyId, UnicodeProperties properties) throws SystemException
updatePreferences
in interface CompanyLocalService
SystemException
public void updateSecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo) throws SystemException
updateSecurity
in interface CompanyLocalService
SystemException
public CompanyLocalService getWrappedCompanyLocalService()
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |