|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.CompanyLocalServiceUtil
public class CompanyLocalServiceUtil
The utility for the company local service. This utility wraps CompanyLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to CompanyLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
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.
CompanyLocalService
,
CompanyLocalServiceBaseImpl
,
CompanyLocalServiceImpl
Constructor Summary | |
---|---|
CompanyLocalServiceUtil()
|
Method Summary | |
---|---|
static Company |
addCompany(Company company)
Adds the company to the database. |
static Company |
addCompany(String webId,
String virtualHost,
String mx,
String shardName,
boolean system,
int maxUsers)
|
static Company |
checkCompany(String webId)
|
static Company |
checkCompany(String webId,
String mx,
String shardName)
|
static void |
checkCompanyKey(long companyId)
|
static Company |
createCompany(long companyId)
Creates a new company with the primary key. |
static void |
deleteCompany(Company company)
Deletes the company from the database. |
static void |
deleteCompany(long companyId)
Deletes the company with the primary key from the database. |
static void |
deleteLogo(long companyId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static 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. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static List<Company> |
getCompanies()
|
static List<Company> |
getCompanies(boolean system)
|
static List<Company> |
getCompanies(int start,
int end)
Gets a range of all the companies. |
static int |
getCompaniesCount()
Gets the number of companies. |
static int |
getCompaniesCount(boolean system)
|
static Company |
getCompany(long companyId)
Gets the company with the primary key. |
static Company |
getCompanyById(long companyId)
|
static Company |
getCompanyByLogoId(long logoId)
|
static Company |
getCompanyByMx(String mx)
|
static Company |
getCompanyByVirtualHost(String virtualHost)
|
static Company |
getCompanyByWebId(String webId)
|
static CompanyLocalService |
getService()
|
static void |
removePreferences(long companyId,
String[] keys)
|
static Hits |
search(long companyId,
long userId,
String keywords,
int start,
int end)
|
static Hits |
search(long companyId,
long userId,
String portletId,
long groupId,
String type,
String keywords,
int start,
int end)
|
void |
setService(CompanyLocalService service)
|
static Company |
updateCompany(Company company)
Updates the company in the database. |
static Company |
updateCompany(Company company,
boolean merge)
Updates the company in the database. |
static Company |
updateCompany(long companyId,
String virtualHost,
String mx,
int maxUsers)
|
static 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)
|
static void |
updateDisplay(long companyId,
String languageId,
String timeZoneId)
|
static void |
updateLogo(long companyId,
byte[] bytes)
|
static void |
updateLogo(long companyId,
File file)
|
static void |
updateLogo(long companyId,
InputStream is)
|
static void |
updatePreferences(long companyId,
UnicodeProperties properties)
|
static 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 CompanyLocalServiceUtil()
Method Detail |
---|
public static Company addCompany(Company company) throws SystemException
company
- the company to add
SystemException
- if a system exception occurredpublic static Company createCompany(long companyId)
companyId
- the primary key for the new company
public static 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 occurredpublic static void deleteCompany(Company company) throws SystemException
company
- the company to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static 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
- 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 static 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
- 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 static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static 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 occurredpublic static 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 occurredpublic static int getCompaniesCount() throws SystemException
SystemException
- if a system exception occurredpublic static Company updateCompany(Company company) throws SystemException
company
- the company to update
SystemException
- if a system exception occurredpublic static Company 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 occurredpublic static Company addCompany(String webId, String virtualHost, String mx, String shardName, boolean system, int maxUsers) throws PortalException, SystemException
PortalException
SystemException
public static Company checkCompany(String webId) throws PortalException, SystemException
PortalException
SystemException
public static Company checkCompany(String webId, String mx, String shardName) throws PortalException, SystemException
PortalException
SystemException
public static void checkCompanyKey(long companyId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteLogo(long companyId) throws PortalException, SystemException
PortalException
SystemException
public static List<Company> getCompanies() throws SystemException
SystemException
public static List<Company> getCompanies(boolean system) throws SystemException
SystemException
public static int getCompaniesCount(boolean system) throws SystemException
SystemException
public static Company getCompanyById(long companyId) throws PortalException, SystemException
PortalException
SystemException
public static Company getCompanyByLogoId(long logoId) throws PortalException, SystemException
PortalException
SystemException
public static Company getCompanyByMx(String mx) throws PortalException, SystemException
PortalException
SystemException
public static Company getCompanyByVirtualHost(String virtualHost) throws PortalException, SystemException
PortalException
SystemException
public static Company getCompanyByWebId(String webId) throws PortalException, SystemException
PortalException
SystemException
public static void removePreferences(long companyId, String[] keys) throws SystemException
SystemException
public static Hits search(long companyId, long userId, String keywords, int start, int end) throws SystemException
SystemException
public static Hits search(long companyId, long userId, String portletId, long groupId, String type, String keywords, int start, int end) throws SystemException
SystemException
public static Company updateCompany(long companyId, String virtualHost, String mx, int maxUsers) throws PortalException, SystemException
PortalException
SystemException
public static 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
public static void updateDisplay(long companyId, String languageId, String timeZoneId) throws PortalException, SystemException
PortalException
SystemException
public static void updateLogo(long companyId, byte[] bytes) throws PortalException, SystemException
PortalException
SystemException
public static void updateLogo(long companyId, File file) throws PortalException, SystemException
PortalException
SystemException
public static void updateLogo(long companyId, InputStream is) throws PortalException, SystemException
PortalException
SystemException
public static void updatePreferences(long companyId, UnicodeProperties properties) throws SystemException
SystemException
public static void updateSecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword, boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean communityLogo) throws SystemException
SystemException
public static CompanyLocalService getService()
public void setService(CompanyLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |