|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface CompanyLocalService
The interface for the company local service.
Never modify or reference this interface directly. Always use CompanyLocalServiceUtil
to access the company local service. Add custom service methods to CompanyLocalServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.
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.
CompanyLocalServiceUtil
,
CompanyLocalServiceBaseImpl
,
CompanyLocalServiceImpl
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)
|
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)
|
Method Detail |
---|
Company addCompany(Company company) throws SystemException
company
- the company to add
SystemException
- if a system exception occurredCompany createCompany(long companyId)
companyId
- the primary key for the new company
void deleteCompany(long companyId) throws PortalException, SystemException
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 occurredvoid deleteCompany(Company company) throws SystemException
company
- the company to delete
SystemException
- if a system exception occurredList dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredList 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
- 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 occurredList 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
- 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 occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompany(long companyId) throws PortalException, SystemException
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) 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.
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 occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getCompaniesCount() throws SystemException
SystemException
- if a system exception occurredCompany updateCompany(Company company) throws SystemException
company
- the company to update
SystemException
- if a system exception occurredCompany updateCompany(Company company, boolean merge) throws SystemException
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 occurredCompany addCompany(String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers) throws PortalException, SystemException
PortalException
SystemException
Company checkCompany(String webId) throws PortalException, SystemException
PortalException
SystemException
Company checkCompany(String webId, String mx, String shardName) throws PortalException, SystemException
PortalException
SystemException
void checkCompanyKey(long companyId) throws PortalException, SystemException
PortalException
SystemException
void deleteLogo(long companyId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Company> getCompanies() throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Company> getCompanies(boolean system) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) int getCompaniesCount(boolean system) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompanyById(long companyId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompanyByLogoId(long logoId) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompanyByMx(String mx) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompanyByVirtualHost(String virtualHost) throws PortalException, SystemException
PortalException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Company getCompanyByWebId(String webId) throws PortalException, SystemException
PortalException
SystemException
void removePreferences(long companyId, String[] keys) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long userId, String keywords, int start, int end) throws SystemException
SystemException
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long userId, String portletId, long groupId, String type, String keywords, int start, int end) throws SystemException
SystemException
Company updateCompany(long companyId, String virtualHost, String mx, int maxUsers) throws PortalException, SystemException
PortalException
SystemException
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
PortalException
SystemException
void updateDisplay(long companyId, String languageId, String timeZoneId) throws PortalException, SystemException
PortalException
SystemException
void updateLogo(long companyId, byte[] bytes) throws PortalException, SystemException
PortalException
SystemException
void updateLogo(long companyId, File file) throws PortalException, SystemException
PortalException
SystemException
void updateLogo(long companyId, InputStream is) throws PortalException, SystemException
PortalException
SystemException
void updatePreferences(long companyId, UnicodeProperties properties) throws SystemException
SystemException
void updateSecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo) throws SystemException
SystemException
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |