public class CommerceTermEntryLocalServiceUtil
extends java.lang.Object
com.liferay.commerce.term.service.impl.CommerceTermEntryLocalServiceImpl
and
is an access point for service operations in application layer code running
on the local server. 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.CommerceTermEntryLocalService
Constructor and Description |
---|
CommerceTermEntryLocalServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static CommerceTermEntry |
addCommerceTermEntry(CommerceTermEntry commerceTermEntry)
Adds the commerce term entry to the database.
|
static CommerceTermEntry |
addCommerceTermEntry(java.lang.String externalReferenceCode,
long userId,
boolean active,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.Map<java.util.Locale,java.lang.String> labelMap,
java.lang.String name,
double priority,
java.lang.String type,
java.lang.String typeSettings,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
checkCommerceTermEntries() |
static CommerceTermEntry |
createCommerceTermEntry(long commerceTermEntryId)
Creates a new commerce term entry with the primary key.
|
static com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceTermEntry |
deleteCommerceTermEntry(CommerceTermEntry commerceTermEntry)
Deletes the commerce term entry from the database.
|
static CommerceTermEntry |
deleteCommerceTermEntry(long commerceTermEntryId)
Deletes the commerce term entry with the primary key from the database.
|
static com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static <T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
static CommerceTermEntry |
fetchCommerceTermEntry(long commerceTermEntryId) |
static CommerceTermEntry |
fetchCommerceTermEntryByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommerceTermEntry |
fetchCommerceTermEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce term entry with the matching UUID and company.
|
static CTermEntryLocalization |
fetchCTermEntryLocalization(long commerceTermEntryId,
java.lang.String languageId) |
static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
static java.util.List<CommerceTermEntry> |
getCommerceTermEntries(int start,
int end)
Returns a range of all the commerce term entries.
|
static java.util.List<CommerceTermEntry> |
getCommerceTermEntries(long companyId,
java.lang.String type) |
static int |
getCommerceTermEntriesCount()
Returns the number of commerce term entries.
|
static CommerceTermEntry |
getCommerceTermEntry(long commerceTermEntryId)
Returns the commerce term entry with the primary key.
|
static CommerceTermEntry |
getCommerceTermEntryByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
static CommerceTermEntry |
getCommerceTermEntryByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the commerce term entry with the matching UUID and company.
|
static CTermEntryLocalization |
getCTermEntryLocalization(long commerceTermEntryId,
java.lang.String languageId) |
static java.util.List<java.lang.String> |
getCTermEntryLocalizationLanguageIds(long commerceTermEntryId) |
static java.util.List<CTermEntryLocalization> |
getCTermEntryLocalizations(long commerceTermEntryId) |
static java.util.List<CommerceTermEntry> |
getDeliveryCommerceTermEntries(long companyId,
long commerceOrderTypeId,
long commerceShippingOptionId) |
static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static java.util.List<CommerceTermEntry> |
getPaymentCommerceTermEntries(long companyId,
long commerceOrderTypeId,
long commercePaymentMethodGroupRelId) |
static com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static CommerceTermEntryLocalService |
getService() |
static com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTermEntry> |
searchCommerceTermEntries(long companyId,
long accountEntryId,
java.lang.String type,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
static CommerceTermEntry |
updateCommerceTermEntry(CommerceTermEntry commerceTermEntry)
Updates the commerce term entry in the database or adds it if it does not yet exist.
|
static CommerceTermEntry |
updateCommerceTermEntry(long userId,
long commerceTermEntryId,
boolean active,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.util.Map<java.util.Locale,java.lang.String> labelMap,
java.lang.String name,
double priority,
java.lang.String typeSettings,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceTermEntry |
updateCommerceTermEntryExternalReferenceCode(java.lang.String externalReferenceCode,
long commerceTermEntryId) |
static CTermEntryLocalization |
updateCTermEntryLocalization(CommerceTermEntry commerceTermEntry,
java.lang.String languageId,
java.lang.String description,
java.lang.String label) |
static java.util.List<CTermEntryLocalization> |
updateCTermEntryLocalizations(CommerceTermEntry commerceTermEntry,
java.util.Map<java.lang.String,java.lang.String> descriptionMap,
java.util.Map<java.lang.String,java.lang.String> labelMap) |
static CommerceTermEntry |
updateStatus(long userId,
long commerceTermEntryId,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static CommerceTermEntry addCommerceTermEntry(CommerceTermEntry commerceTermEntry)
Important: Inspect CommerceTermEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceTermEntry
- the commerce term entrypublic static CommerceTermEntry addCommerceTermEntry(java.lang.String externalReferenceCode, long userId, boolean active, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.Map<java.util.Locale,java.lang.String> labelMap, java.lang.String name, double priority, java.lang.String type, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void checkCommerceTermEntries() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry createCommerceTermEntry(long commerceTermEntryId)
commerceTermEntryId
- the primary key for the new commerce term entrypublic static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry deleteCommerceTermEntry(CommerceTermEntry commerceTermEntry) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceTermEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceTermEntry
- the commerce term entrycom.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry deleteCommerceTermEntry(long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceTermEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceTermEntryId
- the primary key of the commerce term entrycom.liferay.portal.kernel.exception.PortalException
- if a commerce term entry with the primary key could not be foundpublic static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.term.model.impl.CommerceTermEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.term.model.impl.CommerceTermEntryModelImpl
.
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic static CommerceTermEntry fetchCommerceTermEntry(long commerceTermEntryId)
public static CommerceTermEntry fetchCommerceTermEntryByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
public static CommerceTermEntry fetchCommerceTermEntryByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid
- the commerce term entry's UUIDcompanyId
- the primary key of the companynull
if a matching commerce term entry could not be foundpublic static CTermEntryLocalization fetchCTermEntryLocalization(long commerceTermEntryId, java.lang.String languageId)
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static java.util.List<CommerceTermEntry> getCommerceTermEntries(int start, int end)
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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.term.model.impl.CommerceTermEntryModelImpl
.
start
- the lower bound of the range of commerce term entriesend
- the upper bound of the range of commerce term entries (not inclusive)public static java.util.List<CommerceTermEntry> getCommerceTermEntries(long companyId, java.lang.String type)
public static int getCommerceTermEntriesCount()
public static CommerceTermEntry getCommerceTermEntry(long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
commerceTermEntryId
- the primary key of the commerce term entrycom.liferay.portal.kernel.exception.PortalException
- if a commerce term entry with the primary key could not be foundpublic static CommerceTermEntry getCommerceTermEntryByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry getCommerceTermEntryByUuidAndCompanyId(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
uuid
- the commerce term entry's UUIDcompanyId
- the primary key of the companycom.liferay.portal.kernel.exception.PortalException
- if a matching commerce term entry could not be foundpublic static CTermEntryLocalization getCTermEntryLocalization(long commerceTermEntryId, java.lang.String languageId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<java.lang.String> getCTermEntryLocalizationLanguageIds(long commerceTermEntryId)
public static java.util.List<CTermEntryLocalization> getCTermEntryLocalizations(long commerceTermEntryId)
public static java.util.List<CommerceTermEntry> getDeliveryCommerceTermEntries(long companyId, long commerceOrderTypeId, long commerceShippingOptionId)
public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.lang.String getOSGiServiceIdentifier()
public static java.util.List<CommerceTermEntry> getPaymentCommerceTermEntries(long companyId, long commerceOrderTypeId, long commercePaymentMethodGroupRelId)
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
public static com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTermEntry> searchCommerceTermEntries(long companyId, long accountEntryId, java.lang.String type, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry updateCommerceTermEntry(CommerceTermEntry commerceTermEntry)
Important: Inspect CommerceTermEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
commerceTermEntry
- the commerce term entrypublic static CommerceTermEntry updateCommerceTermEntry(long userId, long commerceTermEntryId, boolean active, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.util.Map<java.util.Locale,java.lang.String> labelMap, java.lang.String name, double priority, java.lang.String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry updateCommerceTermEntryExternalReferenceCode(java.lang.String externalReferenceCode, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CTermEntryLocalization updateCTermEntryLocalization(CommerceTermEntry commerceTermEntry, java.lang.String languageId, java.lang.String description, java.lang.String label) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<CTermEntryLocalization> updateCTermEntryLocalizations(CommerceTermEntry commerceTermEntry, java.util.Map<java.lang.String,java.lang.String> descriptionMap, java.util.Map<java.lang.String,java.lang.String> labelMap) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntry updateStatus(long userId, long commerceTermEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static CommerceTermEntryLocalService getService()