public class CommerceChannelLocalServiceWrapper extends java.lang.Object implements CommerceChannelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceChannelLocalService>
CommerceChannelLocalService
.CommerceChannelLocalService
Constructor and Description |
---|
CommerceChannelLocalServiceWrapper() |
CommerceChannelLocalServiceWrapper(CommerceChannelLocalService commerceChannelLocalService) |
Modifier and Type | Method and Description |
---|---|
CommerceChannel |
addCommerceChannel(CommerceChannel commerceChannel)
Adds the commerce channel to the database.
|
CommerceChannel |
addCommerceChannel(java.lang.String externalReferenceCode,
long siteGroupId,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties,
java.lang.String commerceCurrencyCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceChannel |
addOrUpdateCommerceChannel(long userId,
java.lang.String externalReferenceCode,
long siteGroupId,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties,
java.lang.String commerceCurrencyCode,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CommerceChannel |
createCommerceChannel(long commerceChannelId)
Creates a new commerce channel with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceChannel |
deleteCommerceChannel(CommerceChannel commerceChannel)
Deletes the commerce channel from the database.
|
CommerceChannel |
deleteCommerceChannel(long commerceChannelId)
Deletes the commerce channel with the primary key from the database.
|
void |
deleteCommerceChannels(long companyId) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<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.
|
<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.
|
<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.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
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.
|
CommerceChannel |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CommerceChannel |
fetchCommerceChannel(long commerceChannelId) |
CommerceChannel |
fetchCommerceChannelByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce channel with the matching external reference code and company.
|
CommerceChannel |
fetchCommerceChannelByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCommerceChannelByExternalReferenceCode(long, String) |
CommerceChannel |
fetchCommerceChannelBySiteGroupId(long siteGroupId) |
com.liferay.portal.kernel.model.Group |
fetchCommerceChannelGroup(long commerceChannelId) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
CommerceChannel |
getCommerceChannel(long commerceChannelId)
Returns the commerce channel with the primary key.
|
CommerceChannel |
getCommerceChannelByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce channel with the matching external reference code and company.
|
CommerceChannel |
getCommerceChannelByGroupId(long groupId) |
CommerceChannel |
getCommerceChannelByOrderGroupId(long orderGroupId) |
com.liferay.portal.kernel.model.Group |
getCommerceChannelGroup(long commerceChannelId) |
long |
getCommerceChannelGroupIdBySiteGroupId(long siteGroupId) |
java.util.List<CommerceChannel> |
getCommerceChannels(int start,
int end)
Returns a range of all the commerce channels.
|
java.util.List<CommerceChannel> |
getCommerceChannels(long companyId) |
int |
getCommerceChannelsCount()
Returns the number of commerce channels.
|
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
CommerceChannelLocalService |
getWrappedService() |
java.util.List<CommerceChannel> |
search(long companyId) |
java.util.List<CommerceChannel> |
search(long companyId,
java.lang.String keywords,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
int |
searchCommerceChannelsCount(long companyId,
java.lang.String keywords) |
void |
setWrappedService(CommerceChannelLocalService commerceChannelLocalService) |
CommerceChannel |
updateCommerceChannel(CommerceChannel commerceChannel)
Updates the commerce channel in the database or adds it if it does not yet exist.
|
CommerceChannel |
updateCommerceChannel(long commerceChannelId,
long siteGroupId,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties,
java.lang.String commerceCurrencyCode) |
CommerceChannel |
updateCommerceChannel(long commerceChannelId,
long siteGroupId,
java.lang.String name,
java.lang.String type,
com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties,
java.lang.String commerceCurrencyCode,
java.lang.String priceDisplayType,
boolean discountsTargetNetPrice) |
CommerceChannel |
updateCommerceChannelExternalReferenceCode(java.lang.String externalReferenceCode,
long commerceChannelId) |
public CommerceChannelLocalServiceWrapper()
public CommerceChannelLocalServiceWrapper(CommerceChannelLocalService commerceChannelLocalService)
public CommerceChannel addCommerceChannel(CommerceChannel commerceChannel)
Important: Inspect CommerceChannelLocalServiceImpl 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.
addCommerceChannel
in interface CommerceChannelLocalService
commerceChannel
- the commerce channelpublic CommerceChannel addCommerceChannel(java.lang.String externalReferenceCode, long siteGroupId, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, java.lang.String commerceCurrencyCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCommerceChannel
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel addOrUpdateCommerceChannel(long userId, java.lang.String externalReferenceCode, long siteGroupId, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, java.lang.String commerceCurrencyCode, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCommerceChannel
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel createCommerceChannel(long commerceChannelId)
createCommerceChannel
in interface CommerceChannelLocalService
commerceChannelId
- the primary key for the new commerce channelpublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel
in interface CommerceChannelLocalService
createPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public CommerceChannel deleteCommerceChannel(CommerceChannel commerceChannel) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceChannelLocalServiceImpl 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.
deleteCommerceChannel
in interface CommerceChannelLocalService
commerceChannel
- the commerce channelPortalException
public CommerceChannel deleteCommerceChannel(long commerceChannelId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CommerceChannelLocalServiceImpl 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.
deleteCommerceChannel
in interface CommerceChannelLocalService
commerceChannelId
- the primary key of the commerce channelPortalException
- if a commerce channel with the primary key could not be foundpublic void deleteCommerceChannels(long companyId) throws com.liferay.portal.kernel.exception.PortalException
deleteCommerceChannels
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel
in interface CommerceChannelLocalService
deletePersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface CommerceChannelLocalService
dslQuery
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface CommerceChannelLocalService
dslQueryCount
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery
in interface CommerceChannelLocalService
public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
in interface CommerceChannelLocalService
dynamicQuery
- the dynamic querypublic <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.product.model.impl.CommerceChannelModelImpl
.
dynamicQuery
in interface CommerceChannelLocalService
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 <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.product.model.impl.CommerceChannelModelImpl
.
dynamicQuery
in interface CommerceChannelLocalService
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 long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount
in interface CommerceChannelLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount
in interface CommerceChannelLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic CommerceChannel fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode
in interface CommerceChannelLocalService
public CommerceChannel fetchCommerceChannel(long commerceChannelId)
fetchCommerceChannel
in interface CommerceChannelLocalService
public CommerceChannel fetchCommerceChannelByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceChannelByExternalReferenceCode
in interface CommerceChannelLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce channel's external reference codenull
if a matching commerce channel could not be found@Deprecated public CommerceChannel fetchCommerceChannelByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCommerceChannelByExternalReferenceCode(long, String)
fetchCommerceChannelByReferenceCode
in interface CommerceChannelLocalService
public CommerceChannel fetchCommerceChannelBySiteGroupId(long siteGroupId)
fetchCommerceChannelBySiteGroupId
in interface CommerceChannelLocalService
public com.liferay.portal.kernel.model.Group fetchCommerceChannelGroup(long commerceChannelId) throws com.liferay.portal.kernel.exception.PortalException
fetchCommerceChannelGroup
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface CommerceChannelLocalService
public CommerceChannel getCommerceChannel(long commerceChannelId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannel
in interface CommerceChannelLocalService
commerceChannelId
- the primary key of the commerce channelPortalException
- if a commerce channel with the primary key could not be foundpublic CommerceChannel getCommerceChannelByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelByExternalReferenceCode
in interface CommerceChannelLocalService
companyId
- the primary key of the companyexternalReferenceCode
- the commerce channel's external reference codePortalException
- if a matching commerce channel could not be foundpublic CommerceChannel getCommerceChannelByGroupId(long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelByGroupId
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel getCommerceChannelByOrderGroupId(long orderGroupId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelByOrderGroupId
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.Group getCommerceChannelGroup(long commerceChannelId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroup
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public long getCommerceChannelGroupIdBySiteGroupId(long siteGroupId) throws com.liferay.portal.kernel.exception.PortalException
getCommerceChannelGroupIdBySiteGroupId
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<CommerceChannel> getCommerceChannels(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.product.model.impl.CommerceChannelModelImpl
.
getCommerceChannels
in interface CommerceChannelLocalService
start
- the lower bound of the range of commerce channelsend
- the upper bound of the range of commerce channels (not inclusive)public java.util.List<CommerceChannel> getCommerceChannels(long companyId)
getCommerceChannels
in interface CommerceChannelLocalService
public int getCommerceChannelsCount()
getCommerceChannelsCount
in interface CommerceChannelLocalService
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface CommerceChannelLocalService
public java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface CommerceChannelLocalService
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel
in interface CommerceChannelLocalService
getPersistedModel
in interface com.liferay.portal.kernel.service.PersistedModelLocalService
PortalException
public java.util.List<CommerceChannel> search(long companyId) throws com.liferay.portal.kernel.exception.PortalException
search
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public java.util.List<CommerceChannel> search(long companyId, java.lang.String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
search
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public int searchCommerceChannelsCount(long companyId, java.lang.String keywords) throws com.liferay.portal.kernel.exception.PortalException
searchCommerceChannelsCount
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel updateCommerceChannel(CommerceChannel commerceChannel)
Important: Inspect CommerceChannelLocalServiceImpl 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.
updateCommerceChannel
in interface CommerceChannelLocalService
commerceChannel
- the commerce channelpublic CommerceChannel updateCommerceChannel(long commerceChannelId, long siteGroupId, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, java.lang.String commerceCurrencyCode) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceChannel
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel updateCommerceChannel(long commerceChannelId, long siteGroupId, java.lang.String name, java.lang.String type, com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties, java.lang.String commerceCurrencyCode, java.lang.String priceDisplayType, boolean discountsTargetNetPrice) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceChannel
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannel updateCommerceChannelExternalReferenceCode(java.lang.String externalReferenceCode, long commerceChannelId) throws com.liferay.portal.kernel.exception.PortalException
updateCommerceChannelExternalReferenceCode
in interface CommerceChannelLocalService
com.liferay.portal.kernel.exception.PortalException
public CommerceChannelLocalService getWrappedService()
getWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceChannelLocalService>
public void setWrappedService(CommerceChannelLocalService commerceChannelLocalService)
setWrappedService
in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceChannelLocalService>