Class CPInstanceLocalServiceWrapper
- All Implemented Interfaces:
CPInstanceLocalService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>
,com.liferay.portal.kernel.service.PersistedModelLocalService
,com.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>
CPInstanceLocalService
.- See Also:
- Generated:
-
Constructor Summary
ConstructorsConstructorDescriptionCPInstanceLocalServiceWrapper
(CPInstanceLocalService cpInstanceLocalService) -
Method Summary
Modifier and TypeMethodDescriptionaddCPInstance
(CPInstance cpInstance) Adds the cp instance to the database.addCPInstance
(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, Map<Long, List<Long>> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) addOrUpdateCPInstance
(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, String json, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) buildCPInstances
(long cpDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
checkCPInstances
(long cpDefinitionId) void
checkCPInstancesByDisplayDate
(long cpDefinitionId) createCPInstance
(long CPInstanceId) Creates a new cp instance with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) deleteCPInstance
(long CPInstanceId) Deletes the cp instance with the primary key from the database.deleteCPInstance
(CPInstance cpInstance) Deletes the cp instance from the database.deleteCPInstance
(CPInstance cpInstance, boolean makeCopy) 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
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> 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> 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.fetchCPInstance
(long CPInstanceId) fetchCPInstance
(long cProductId, String cpInstanceUuid) fetchCPInstanceByExternalReferenceCode
(String externalReferenceCode, long companyId) fetchCPInstanceByUuidAndGroupId
(String uuid, long groupId) Returns the cp instance matching the UUID and group.fetchCProductInstance
(long cProductId, String cpInstanceUuid) fetchDefaultCPInstance
(long cpDefinitionId) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
com.liferay.portal.kernel.service.persistence.BasePersistence<?>
getCPDefinitionApprovedCPInstances
(long cpDefinitionId) getCPDefinitionInstances
(long cpDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) int
getCPDefinitionInstancesCount
(long cpDefinitionId, int status) getCPInstance
(long CPInstanceId) Returns the cp instance with the primary key.getCPInstance
(long cpDefinitionId, String sku) getCPInstanceByExternalReferenceCode
(String externalReferenceCode, long companyId) getCPInstanceByUuidAndGroupId
(String uuid, long groupId) Returns the cp instance matching the UUID and group.getCPInstances
(int start, int end) Returns a range of all the cp instances.getCPInstances
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) getCPInstances
(long companyId, String sku) getCPInstances
(String replacementCPInstanceUuid, long replacementCProductId, int status) getCPInstancesByUuidAndCompanyId
(String uuid, long companyId) Returns all the cp instances matching the UUID and company.getCPInstancesByUuidAndCompanyId
(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
Returns the number of cp instances.int
getCPInstancesCount
(long groupId, int status) int
getCPInstancesCount
(String cpInstanceUuid) getCProductInstance
(long cProductId, String cpInstanceUuid) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) String[]
getSKUs
(long cpDefinitionId) 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, 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, String keywords, int status, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance>
searchCPInstances
(long companyId, long[] groupIds, 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, 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, String cpInstanceUuid, long cProductId, 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) int
searchCPInstancesCount
(long companyId, String cpInstanceUuid, long cProductId, String keywords, int status) void
setWrappedService
(CPInstanceLocalService cpInstanceLocalService) updateCPInstance
(CPInstance cpInstance) Updates the cp instance in the database or adds it if it does not yet exist.updateCPInstance
(String externalReferenceCode, long cpInstanceId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateExternalReferenceCode
(long cpInstanceId, String externalReferenceCode) updatePricingInfo
(long cpInstanceId, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateShippingInfo
(long cpInstanceId, double width, double height, double depth, double weight, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateStatus
(long userId, long cpInstanceId, int status) updateSubscriptionInfo
(long cpInstanceId, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
CPInstanceLocalServiceWrapper
public CPInstanceLocalServiceWrapper() -
CPInstanceLocalServiceWrapper
-
-
Method Details
-
addCPInstance
Adds the cp instance to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addCPInstance
in interfaceCPInstanceLocalService
- Parameters:
cpInstance
- the cp instance- Returns:
- the cp instance that was added
-
addCPInstance
public CPInstance addCPInstance(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, Map<Long, List<Long>> cpDefinitionOptionRelIdCPDefinitionOptionValueRelIds, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Specified by:
addCPInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
addOrUpdateCPInstance
public CPInstance addOrUpdateCPInstance(String externalReferenceCode, long cpDefinitionId, long groupId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, String json, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addOrUpdateCPInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
buildCPInstances
public List<CPInstance> buildCPInstances(long cpDefinitionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
buildCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCPInstances
public void checkCPInstances(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkCPInstancesByDisplayDate
public void checkCPInstancesByDisplayDate(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkCPInstancesByDisplayDate
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createCPInstance
Creates a new cp instance with the primary key. Does not add the cp instance to the database.- Specified by:
createCPInstance
in interfaceCPInstanceLocalService
- Parameters:
CPInstanceId
- the primary key for the new cp instance- Returns:
- the new cp instance
-
createPersistedModel
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
createPersistedModel
in interfaceCPInstanceLocalService
- Specified by:
createPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCPInstance
public CPInstance deleteCPInstance(CPInstance cpInstance) throws com.liferay.portal.kernel.exception.PortalException Deletes the cp instance from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCPInstance
in interfaceCPInstanceLocalService
- Parameters:
cpInstance
- the cp instance- Returns:
- the cp instance that was removed
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
deleteCPInstance
public CPInstance deleteCPInstance(CPInstance cpInstance, boolean makeCopy) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCPInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCPInstance
public CPInstance deleteCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException Deletes the cp instance with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteCPInstance
in interfaceCPInstanceLocalService
- Parameters:
CPInstanceId
- the primary key of the cp instance- Returns:
- the cp instance that was removed
- Throws:
PortalException
- if a cp instance with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
deleteCPInstances
public void deleteCPInstances(long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePersistedModel
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deletePersistedModel
in interfaceCPInstanceLocalService
- Specified by:
deletePersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfaceCPInstanceLocalService
- Specified by:
dslQuery
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfaceCPInstanceLocalService
- Specified by:
dslQueryCount
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
dynamicQuery
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()- Specified by:
dynamicQuery
in interfaceCPInstanceLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQuery
in interfaceCPInstanceLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPInstanceModelImpl
.- Specified by:
dynamicQuery
in interfaceCPInstanceLocalService
- Parameters:
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)- Returns:
- the range of matching rows
-
dynamicQuery
public <T> 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPInstanceModelImpl
.- Specified by:
dynamicQuery
in interfaceCPInstanceLocalService
- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching rows
-
dynamicQueryCount
public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCount
in interfaceCPInstanceLocalService
- Parameters:
dynamicQuery
- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
public 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.- Specified by:
dynamicQueryCount
in interfaceCPInstanceLocalService
- Parameters:
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchCPInstance
- Specified by:
fetchCPInstance
in interfaceCPInstanceLocalService
-
fetchCPInstance
- Specified by:
fetchCPInstance
in interfaceCPInstanceLocalService
-
fetchCPInstanceByExternalReferenceCode
public CPInstance fetchCPInstanceByExternalReferenceCode(String externalReferenceCode, long companyId) - Specified by:
fetchCPInstanceByExternalReferenceCode
in interfaceCPInstanceLocalService
-
fetchCPInstanceByUuidAndGroupId
Returns the cp instance matching the UUID and group.- Specified by:
fetchCPInstanceByUuidAndGroupId
in interfaceCPInstanceLocalService
- Parameters:
uuid
- the cp instance's UUIDgroupId
- the primary key of the group- Returns:
- the matching cp instance, or
null
if a matching cp instance could not be found
-
fetchCProductInstance
- Specified by:
fetchCProductInstance
in interfaceCPInstanceLocalService
-
fetchDefaultCPInstance
- Specified by:
fetchDefaultCPInstance
in interfaceCPInstanceLocalService
-
getActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()- Specified by:
getActionableDynamicQuery
in interfaceCPInstanceLocalService
-
getCPDefinitionApprovedCPInstances
- Specified by:
getCPDefinitionApprovedCPInstances
in interfaceCPInstanceLocalService
-
getCPDefinitionInstances
public List<CPInstance> getCPDefinitionInstances(long cpDefinitionId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstance> orderByComparator) - Specified by:
getCPDefinitionInstances
in interfaceCPInstanceLocalService
-
getCPDefinitionInstancesCount
public int getCPDefinitionInstancesCount(long cpDefinitionId, int status) - Specified by:
getCPDefinitionInstancesCount
in interfaceCPInstanceLocalService
-
getCPInstance
public CPInstance getCPInstance(long CPInstanceId) throws com.liferay.portal.kernel.exception.PortalException Returns the cp instance with the primary key.- Specified by:
getCPInstance
in interfaceCPInstanceLocalService
- Parameters:
CPInstanceId
- the primary key of the cp instance- Returns:
- the cp instance
- Throws:
PortalException
- if a cp instance with the primary key could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCPInstance
public CPInstance getCPInstance(long cpDefinitionId, String sku) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPInstanceByExternalReferenceCode
public CPInstance getCPInstanceByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPInstanceByExternalReferenceCode
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPInstanceByUuidAndGroupId
public CPInstance getCPInstanceByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException Returns the cp instance matching the UUID and group.- Specified by:
getCPInstanceByUuidAndGroupId
in interfaceCPInstanceLocalService
- Parameters:
uuid
- the cp instance's UUIDgroupId
- the primary key of the group- Returns:
- the matching cp instance
- Throws:
PortalException
- if a matching cp instance could not be foundcom.liferay.portal.kernel.exception.PortalException
-
getCPInstances
Returns a range of all the cp instances.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPInstanceModelImpl
.- Specified by:
getCPInstances
in interfaceCPInstanceLocalService
- Parameters:
start
- the lower bound of the range of cp instancesend
- the upper bound of the range of cp instances (not inclusive)- Returns:
- the range of cp instances
-
getCPInstances
public 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 - Specified by:
getCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPInstances
- Specified by:
getCPInstances
in interfaceCPInstanceLocalService
-
getCPInstances
public List<CPInstance> getCPInstances(String replacementCPInstanceUuid, long replacementCProductId, int status) - Specified by:
getCPInstances
in interfaceCPInstanceLocalService
-
getCPInstancesByUuidAndCompanyId
Returns all the cp instances matching the UUID and company.- Specified by:
getCPInstancesByUuidAndCompanyId
in interfaceCPInstanceLocalService
- Parameters:
uuid
- the UUID of the cp instancescompanyId
- the primary key of the company- Returns:
- the matching cp instances, or an empty list if no matches were found
-
getCPInstancesByUuidAndCompanyId
public List<CPInstance> getCPInstancesByUuidAndCompanyId(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.- Specified by:
getCPInstancesByUuidAndCompanyId
in interfaceCPInstanceLocalService
- Parameters:
uuid
- 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 (optionallynull
)- Returns:
- the range of matching cp instances, or an empty list if no matches were found
-
getCPInstancesCount
public int getCPInstancesCount()Returns the number of cp instances.- Specified by:
getCPInstancesCount
in interfaceCPInstanceLocalService
- Returns:
- the number of cp instances
-
getCPInstancesCount
public int getCPInstancesCount(long groupId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCPInstancesCount
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCPInstancesCount
- Specified by:
getCPInstancesCount
in interfaceCPInstanceLocalService
-
getCProductInstance
public CPInstance getCProductInstance(long cProductId, String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getCProductInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getExportActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQuery
in interfaceCPInstanceLocalService
-
getIndexableActionableDynamicQuery
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()- Specified by:
getIndexableActionableDynamicQuery
in interfaceCPInstanceLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceCPInstanceLocalService
- Returns:
- the OSGi service identifier
-
getPersistedModel
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPersistedModel
in interfaceCPInstanceLocalService
- Specified by:
getPersistedModel
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
- Throws:
PortalException
com.liferay.portal.kernel.exception.PortalException
-
getSKUs
- Specified by:
getSKUs
in interfaceCPInstanceLocalService
-
inactivateCPDefinitionOptionRelCPInstances
public void inactivateCPDefinitionOptionRelCPInstances(long userId, long cpDefinitionId, long cpDefinitionOptionRelId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
inactivateCPDefinitionOptionRelCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
inactivateCPDefinitionOptionValueRelCPInstances
public void inactivateCPDefinitionOptionValueRelCPInstances(long userId, long cpDefinitionId, long cpDefinitionOptionValueRelId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
inactivateCPDefinitionOptionValueRelCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
inactivateIncompatibleCPInstances
public void inactivateIncompatibleCPInstances(long userId, long cpDefinitionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
inactivateIncompatibleCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext) - Specified by:
search
in interfaceCPInstanceLocalService
-
searchCPDefinitionInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPDefinitionInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPDefinitionInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPDefinitionInstances(long companyId, long cpDefinitionId, String keywords, int status, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPDefinitionInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, long[] groupIds, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(long companyId, String cpInstanceUuid, long cProductId, String keywords, int status, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPInstances
public com.liferay.portal.kernel.search.BaseModelSearchResult<CPInstance> searchCPInstances(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPInstances
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCPInstancesCount
public int searchCPInstancesCount(long companyId, String cpInstanceUuid, long cProductId, String keywords, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
searchCPInstancesCount
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCPInstance
Updates the cp instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateCPInstance
in interfaceCPInstanceLocalService
- Parameters:
cpInstance
- the cp instance- Returns:
- the cp instance that was updated
-
updateCPInstance
public CPInstance updateCPInstance(String externalReferenceCode, long cpInstanceId, String sku, String gtin, String manufacturerPartNumber, boolean purchasable, double width, double height, double depth, double weight, BigDecimal price, BigDecimal promoPrice, 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, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles, String unspsc, boolean discontinued, String replacementCPInstanceUuid, long replacementCProductId, int discontinuedDateMonth, int discontinuedDateDay, int discontinuedDateYear, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateCPInstance
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateExternalReferenceCode
public CPInstance updateExternalReferenceCode(long cpInstanceId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateExternalReferenceCode
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePricingInfo
public CPInstance updatePricingInfo(long cpInstanceId, BigDecimal price, BigDecimal promoPrice, BigDecimal cost, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updatePricingInfo
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateShippingInfo
public 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 - Specified by:
updateShippingInfo
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateStatus
public CPInstance updateStatus(long userId, long cpInstanceId, int status) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateStatus
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateSubscriptionInfo
public CPInstance updateSubscriptionInfo(long cpInstanceId, boolean overrideSubscriptionInfo, boolean subscriptionEnabled, int subscriptionLength, String subscriptionType, com.liferay.portal.kernel.util.UnicodeProperties subscriptionTypeSettingsUnicodeProperties, long maxSubscriptionCycles, boolean deliverySubscriptionEnabled, int deliverySubscriptionLength, String deliverySubscriptionType, com.liferay.portal.kernel.util.UnicodeProperties deliverySubscriptionTypeSettingsUnicodeProperties, long deliveryMaxSubscriptionCycles) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateSubscriptionInfo
in interfaceCPInstanceLocalService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getBasePersistence
public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()- Specified by:
getBasePersistence
in interfacecom.liferay.portal.kernel.service.PersistedModelLocalService
-
getCTPersistence
public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance> getCTPersistence()- Specified by:
getCTPersistence
in interfaceCPInstanceLocalService
- Specified by:
getCTPersistence
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>
-
getModelClass
- Specified by:
getModelClass
in interfaceCPInstanceLocalService
- Specified by:
getModelClass
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPInstance>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCPInstanceLocalService
- Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<CPInstance>
- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<CPInstanceLocalService>
-