public class CPInstanceLocalServiceWrapper extends java.lang.Object implements CPInstanceLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>
CPInstanceLocalService.CPInstanceLocalService| Constructor and Description |
|---|
CPInstanceLocalServiceWrapper() |
CPInstanceLocalServiceWrapper(CPInstanceLocalService cpInstanceLocalService) |
| Modifier and Type | Method and Description |
|---|---|
CPInstance |
addCPInstance(CPInstance cpInstance)
Adds the cp instance to the database.
|
CPInstance |
addCPInstance(java.lang.String externalReferenceCode,
long cpDefinitionId,
long groupId,
java.lang.String sku,
java.lang.String gtin,
java.lang.String manufacturerPartNumber,
boolean purchasable,
java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds,
double width,
double height,
double depth,
double weight,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal cost,
boolean published,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
boolean overrideSubscriptionInfo,
boolean subscriptionEnabled,
int subscriptionLength,
java.lang.String subscriptionType,
com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties,
long maxSubscriptionCycles,
boolean deliverySubscriptionEnabled,
int deliverySubscriptionLength,
java.lang.String deliverySubscriptionType,
com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties,
long deliveryMaxSubscriptionCycles,
java.lang.String unspsc,
boolean discontinued,
java.lang.String replacementCPInstanceUuid,
long replacementCProductId,
int discontinuedDateMonth,
int discontinuedDateDay,
int discontinuedDateYear,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CPInstance |
addOrUpdateCPInstance(java.lang.String externalReferenceCode,
long cpDefinitionId,
long groupId,
java.lang.String sku,
java.lang.String gtin,
java.lang.String manufacturerPartNumber,
boolean purchasable,
java.lang.String json,
double width,
double height,
double depth,
double weight,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal cost,
boolean published,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.lang.String unspsc,
boolean discontinued,
java.lang.String replacementCPInstanceUuid,
long replacementCProductId,
int discontinuedDateMonth,
int discontinuedDateDay,
int discontinuedDateYear,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
buildCPInstances(long cpDefinitionId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
checkCPInstances(long cpDefinitionId) |
void |
checkCPInstancesByDisplayDate(long cpDefinitionId) |
CPInstance |
createCPInstance(long CPInstanceId)
Creates a new cp instance with the primary key.
|
com.liferay.portal.kernel.model.PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
CPInstance |
deleteCPInstance(CPInstance cpInstance)
Deletes the cp instance from the database.
|
CPInstance |
deleteCPInstance(CPInstance cpInstance,
boolean makeCopy) |
CPInstance |
deleteCPInstance(long CPInstanceId)
Deletes the cp instance with the primary key from the database.
|
void |
deleteCPInstances(long cpDefinitionId) |
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.
|
CPInstance |
fetchByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CPInstance |
fetchCPInstance(long CPInstanceId) |
CPInstance |
fetchCPInstanceByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the cp instance with the matching external reference code and company.
|
CPInstance |
fetchCPInstanceByReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Deprecated.
As of Cavanaugh (7.4.x), replaced by
fetchCPInstanceByExternalReferenceCode(long, String) |
CPInstance |
fetchCPInstanceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the cp instance matching the UUID and group.
|
CPInstance |
fetchCProductInstance(long cProductId,
java.lang.String cpInstanceUuid) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<CPInstance> |
getCPDefinitionApprovedCPInstances(long cpDefinitionId) |
java.util.List<CPInstance> |
getCPDefinitionInstances(long cpDefinitionId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) |
int |
getCPDefinitionInstancesCount(long cpDefinitionId,
int status) |
CPInstance |
getCPInstance(long CPInstanceId)
Returns the cp instance with the primary key.
|
CPInstance |
getCPInstance(long cpDefinitionId,
java.lang.String sku) |
CPInstance |
getCPInstanceByExternalReferenceCode(long companyId,
java.lang.String externalReferenceCode)
Returns the cp instance with the matching external reference code and company.
|
CPInstance |
getCPInstanceByExternalReferenceCode(java.lang.String externalReferenceCode,
long companyId) |
CPInstance |
getCPInstanceByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the cp instance matching the UUID and group.
|
java.util.List<CPInstance> |
getCPInstances(int start,
int end)
Returns a range of all the cp instances.
|
java.util.List<CPInstance> |
getCPInstances(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) |
java.util.List<CPInstance> |
getCPInstances(long companyId,
java.lang.String sku) |
java.util.List<CPInstance> |
getCPInstancesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the cp instances matching the UUID and company.
|
java.util.List<CPInstance> |
getCPInstancesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
Returns a range of cp instances matching the UUID and company.
|
int |
getCPInstancesCount()
Returns the number of cp instances.
|
int |
getCPInstancesCount(long groupId,
int status) |
int |
getCPInstancesCount(java.lang.String cpInstanceUuid) |
CPInstance |
getCProductInstance(long cProductId,
java.lang.String cpInstanceUuid) |
com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance> |
getCTPersistence() |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
java.lang.Class<CPInstance> |
getModelClass() |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
java.lang.String[] |
getSKUs(long cpDefinitionId) |
CPInstanceLocalService |
getWrappedService() |
void |
inactivateCPDefinitionOptionRelCPInstances(long userId,
long cpDefinitionId,
long cpDefinitionOptionRelId) |
void |
inactivateCPDefinitionOptionValueRelCPInstances(long userId,
long cpDefinitionId,
long cpDefinitionOptionValueRelId) |
void |
inactivateIncompatibleCPInstances(long userId,
long cpDefinitionId) |
com.liferay.portal.kernel.search.Hits |
search(com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> |
searchCPDefinitionInstances(long companyId,
long cpDefinitionId,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> |
searchCPDefinitionInstances(long companyId,
long cpDefinitionId,
java.lang.String keywords,
int status,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> |
searchCPInstances(long companyId,
long[] groupIds,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> |
searchCPInstances(long companyId,
java.lang.String keywords,
int status,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> |
searchCPInstances(com.liferay.portal.kernel.search.SearchContext searchContext) |
void |
setWrappedService(CPInstanceLocalService cpInstanceLocalService) |
CPInstance |
updateCPInstance(CPInstance cpInstance)
Updates the cp instance in the database or adds it if it does not yet exist.
|
CPInstance |
updateCPInstance(long cpInstanceId,
java.lang.String sku,
java.lang.String gtin,
java.lang.String manufacturerPartNumber,
boolean purchasable,
double width,
double height,
double depth,
double weight,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal cost,
boolean published,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
int expirationDateMonth,
int expirationDateDay,
int expirationDateYear,
int expirationDateHour,
int expirationDateMinute,
boolean neverExpire,
java.lang.String unspsc,
boolean discontinued,
java.lang.String replacementCPInstanceUuid,
long replacementCProductId,
int discontinuedDateMonth,
int discontinuedDateDay,
int discontinuedDateYear,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CPInstance |
updatePricingInfo(long cpInstanceId,
java.math.BigDecimal price,
java.math.BigDecimal promoPrice,
java.math.BigDecimal cost,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CPInstance |
updateShippingInfo(long cpInstanceId,
double width,
double height,
double depth,
double weight,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
CPInstance |
updateStatus(long userId,
long cpInstanceId,
int status) |
CPInstance |
updateSubscriptionInfo(long cpInstanceId,
boolean overrideSubscriptionInfo,
boolean subscriptionEnabled,
int subscriptionLength,
java.lang.String subscriptionType,
com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties,
long maxSubscriptionCycles,
boolean deliverySubscriptionEnabled,
int deliverySubscriptionLength,
java.lang.String deliverySubscriptionType,
com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties,
long deliveryMaxSubscriptionCycles) |
<R,E extends java.lang.Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance>,R,E> updateUnsafeFunction) |
public CPInstanceLocalServiceWrapper()
public CPInstanceLocalServiceWrapper(CPInstanceLocalService cpInstanceLocalService)
public CPInstance addCPInstance(CPInstance cpInstance)
Important: Inspect CPInstanceLocalServiceImpl 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.
addCPInstance in interface CPInstanceLocalServicecpInstance - the cp instancepublic CPInstance addCPInstance(java.lang.String externalReferenceCode, long cpDefinitionId, long groupId, java.lang.String sku, java.lang.String gtin, java.lang.String manufacturerPartNumber, boolean purchasable, java.util.Map<java.lang.Long,java.util.List<java.lang.Long>> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, java.lang.String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, java.lang.String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, java.lang.String unspsc, boolean discontinued, java.lang.String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addCPInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance addOrUpdateCPInstance(java.lang.String externalReferenceCode, long cpDefinitionId, long groupId, java.lang.String sku, java.lang.String gtin, java.lang.String manufacturerPartNumber, boolean purchasable, java.lang.String json, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.lang.String unspsc, boolean discontinued, java.lang.String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
addOrUpdateCPInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void buildCPInstances(long cpDefinitionId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
buildCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void checkCPInstances(long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
checkCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void checkCPInstancesByDisplayDate(long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
checkCPInstancesByDisplayDate in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance createCPInstance(long CPInstanceId)
createCPInstance in interface CPInstanceLocalServiceCPInstanceId - the primary key for the new cp instancepublic com.liferay.portal.kernel.model.PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
createPersistedModel in interface CPInstanceLocalServicecreatePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic CPInstance deleteCPInstance(CPInstance cpInstance) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CPInstanceLocalServiceImpl 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.
deleteCPInstance in interface CPInstanceLocalServicecpInstance - the cp instancePortalExceptionpublic CPInstance deleteCPInstance(CPInstance cpInstance, boolean makeCopy) throws com.liferay.portal.kernel.exception.PortalException
deleteCPInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance deleteCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException
Important: Inspect CPInstanceLocalServiceImpl 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.
deleteCPInstance in interface CPInstanceLocalServiceCPInstanceId - the primary key of the cp instancePortalException - if a cp instance with the primary key could not be foundpublic void deleteCPInstances(long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
deleteCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface CPInstanceLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery in interface CPInstanceLocalServicedslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount in interface CPInstanceLocalServicedslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface CPInstanceLocalServicepublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface CPInstanceLocalServicedynamicQuery - 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.CPInstanceModelImpl.
dynamicQuery in interface CPInstanceLocalServicedynamicQuery - 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.CPInstanceModelImpl.
dynamicQuery in interface CPInstanceLocalServicedynamicQuery - 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 CPInstanceLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface CPInstanceLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic CPInstance fetchByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId)
fetchByExternalReferenceCode in interface CPInstanceLocalServicepublic CPInstance fetchCPInstance(long CPInstanceId)
fetchCPInstance in interface CPInstanceLocalServicepublic CPInstance fetchCPInstanceByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCPInstanceByExternalReferenceCode in interface CPInstanceLocalServicecompanyId - the primary key of the companyexternalReferenceCode - the cp instance's external reference codenull if a matching cp instance could not be found@Deprecated public CPInstance fetchCPInstanceByReferenceCode(long companyId, java.lang.String externalReferenceCode)
fetchCPInstanceByExternalReferenceCode(long, String)fetchCPInstanceByReferenceCode in interface CPInstanceLocalServicepublic CPInstance fetchCPInstanceByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchCPInstanceByUuidAndGroupId in interface CPInstanceLocalServiceuuid - the cp instance's UUIDgroupId - the primary key of the groupnull if a matching cp instance could not be foundpublic CPInstance fetchCProductInstance(long cProductId, java.lang.String cpInstanceUuid)
fetchCProductInstance in interface CPInstanceLocalServicepublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface CPInstanceLocalServicepublic java.util.List<CPInstance> getCPDefinitionApprovedCPInstances(long cpDefinitionId)
getCPDefinitionApprovedCPInstances in interface CPInstanceLocalServicepublic java.util.List<CPInstance> getCPDefinitionInstances(long cpDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
getCPDefinitionInstances in interface CPInstanceLocalServicepublic int getCPDefinitionInstancesCount(long cpDefinitionId,
int status)
getCPDefinitionInstancesCount in interface CPInstanceLocalServicepublic CPInstance getCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException
getCPInstance in interface CPInstanceLocalServiceCPInstanceId - the primary key of the cp instancePortalException - if a cp instance with the primary key could not be foundpublic CPInstance getCPInstance(long cpDefinitionId, java.lang.String sku) throws com.liferay.portal.kernel.exception.PortalException
getCPInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance getCPInstanceByExternalReferenceCode(long companyId, java.lang.String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
getCPInstanceByExternalReferenceCode in interface CPInstanceLocalServicecompanyId - the primary key of the companyexternalReferenceCode - the cp instance's external reference codePortalException - if a matching cp instance could not be foundpublic CPInstance getCPInstanceByExternalReferenceCode(java.lang.String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
getCPInstanceByExternalReferenceCode in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance getCPInstanceByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getCPInstanceByUuidAndGroupId in interface CPInstanceLocalServiceuuid - the cp instance's UUIDgroupId - the primary key of the groupPortalException - if a matching cp instance could not be foundpublic java.util.List<CPInstance> getCPInstances(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.CPInstanceModelImpl.
getCPInstances in interface CPInstanceLocalServicestart - the lower bound of the range of cp instancesend - the upper bound of the range of cp instances (not inclusive)public java.util.List<CPInstance> getCPInstances(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
getCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<CPInstance> getCPInstances(long companyId, java.lang.String sku)
getCPInstances in interface CPInstanceLocalServicepublic java.util.List<CPInstance> getCPInstancesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getCPInstancesByUuidAndCompanyId in interface CPInstanceLocalServiceuuid - the UUID of the cp instancescompanyId - the primary key of the companypublic java.util.List<CPInstance> getCPInstancesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator)
getCPInstancesByUuidAndCompanyId in interface CPInstanceLocalServiceuuid - the UUID of the cp instancescompanyId - the primary key of the companystart - the lower bound of the range of cp instancesend - the upper bound of the range of cp instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public int getCPInstancesCount()
getCPInstancesCount in interface CPInstanceLocalServicepublic int getCPInstancesCount(long groupId,
int status)
throws com.liferay.portal.kernel.exception.PortalException
getCPInstancesCount in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int getCPInstancesCount(java.lang.String cpInstanceUuid)
getCPInstancesCount in interface CPInstanceLocalServicepublic CPInstance getCProductInstance(long cProductId, java.lang.String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException
getCProductInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface CPInstanceLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface CPInstanceLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface CPInstanceLocalServicepublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface CPInstanceLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic java.lang.String[] getSKUs(long cpDefinitionId)
getSKUs in interface CPInstanceLocalServicepublic void inactivateCPDefinitionOptionRelCPInstances(long userId,
long cpDefinitionId,
long cpDefinitionOptionRelId)
throws com.liferay.portal.kernel.exception.PortalException
inactivateCPDefinitionOptionRelCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void inactivateCPDefinitionOptionValueRelCPInstances(long userId,
long cpDefinitionId,
long cpDefinitionOptionValueRelId)
throws com.liferay.portal.kernel.exception.PortalException
inactivateCPDefinitionOptionValueRelCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void inactivateIncompatibleCPInstances(long userId,
long cpDefinitionId)
throws com.liferay.portal.kernel.exception.PortalException
inactivateIncompatibleCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
search in interface CPInstanceLocalServicepublic com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCPDefinitionInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, java.lang.String keywords, int status, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCPDefinitionInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, long[] groupIds, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, java.lang.String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
searchCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
searchCPInstances in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance updateCPInstance(CPInstance cpInstance)
Important: Inspect CPInstanceLocalServiceImpl 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.
updateCPInstance in interface CPInstanceLocalServicecpInstance - the cp instancepublic CPInstance updateCPInstance(long cpInstanceId, java.lang.String sku, java.lang.String gtin, java.lang.String manufacturerPartNumber, boolean purchasable, double width, double height, double depth, double weight, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, boolean published, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, java.lang.String unspsc, boolean discontinued, java.lang.String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateCPInstance in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance updatePricingInfo(long cpInstanceId, java.math.BigDecimal price, java.math.BigDecimal promoPrice, java.math.BigDecimal cost, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updatePricingInfo in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance updateShippingInfo(long cpInstanceId, double width, double height, double depth, double weight, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateShippingInfo in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance updateStatus(long userId, long cpInstanceId, int status) throws com.liferay.portal.kernel.exception.PortalException
updateStatus in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic CPInstance updateSubscriptionInfo(long cpInstanceId, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, java.lang.String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, java.lang.String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles) throws com.liferay.portal.kernel.exception.PortalException
updateSubscriptionInfo in interface CPInstanceLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance> getCTPersistence()
getCTPersistence in interface CPInstanceLocalServicegetCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>public java.lang.Class<CPInstance> getModelClass()
getModelClass in interface CPInstanceLocalServicegetModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>public <R,E extends java.lang.Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance>,R,E> updateUnsafeFunction) throws E extends java.lang.Throwable
updateWithUnsafeFunction in interface CPInstanceLocalServiceupdateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>E extends java.lang.Throwablepublic CPInstanceLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>public void setWrappedService(CPInstanceLocalService cpInstanceLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>