Moves the commerce product definition to the recycle bin.

@param userId the primary key of the user moving the commerce product
definition
@param cpDefinition the commerce product definition to be moved
@return the moved commerce product definition
973172
public static com.liferay.commerce.product.model.CPDefinition moveCPDefinitionToTrash(
		long userId,
		com.liferay.commerce.product.model.CPDefinition cpDefinition)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().moveCPDefinitionToTrash(userId, cpDefinition);
	}
1050314
public static MozuUrl deleteProductSortDefinitionUrl(Integer productSortDefinitionId)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/catalog/admin/productsortdefinitions/{productSortDefinitionId}");
		formatter.formatUrl("productSortDefinitionId", productSortDefinitionId);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
864838
public void setCPDefinitionOptionRelLocalService(
		com.liferay.commerce.product.service.CPDefinitionOptionRelLocalService cpDefinitionOptionRelLocalService) {
		this.cpDefinitionOptionRelLocalService = cpDefinitionOptionRelLocalService;
	}
706360
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscountUserSegmentRel deleteCommerceDiscountUserSegmentRel(
		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel) {
		return commerceDiscountUserSegmentRelPersistence.remove(commerceDiscountUserSegmentRel);
	}
916653
@Override
	public List<CommerceUserSegmentCriterion> findByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		return findByCommerceUserSegmentEntryId(commerceUserSegmentEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1305335
public static com.liferay.commerce.product.model.CPDefinition fetchCPDefinitionByUuidAndGroupId(
		String uuid, long groupId) {
		return getService().fetchCPDefinitionByUuidAndGroupId(uuid, groupId);
	}
45570
public void setCPDefinitionService(
		com.liferay.commerce.product.service.CPDefinitionService cpDefinitionService) {
		this.cpDefinitionService = cpDefinitionService;
	}
1106508
public static com.liferay.commerce.product.model.CPDefinitionOptionRel deleteCPDefinitionOptionRel(
		com.liferay.commerce.product.model.CPDefinitionOptionRel cpDefinitionOptionRel)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCPDefinitionOptionRel(cpDefinitionOptionRel);
	}
1074560
@Override
	public List<CPDefinitionLink> getCPDefinitionLinksByUuidAndCompanyId(
		String uuid, long companyId) {
		return cpDefinitionLinkPersistence.findByUuid_C(uuid, companyId);
	}
779119
@Override
	public CPDefinitionInventory create(long CPDefinitionInventoryId) {
		CPDefinitionInventory cpDefinitionInventory = new CPDefinitionInventoryImpl();

		cpDefinitionInventory.setNew(true);
		cpDefinitionInventory.setPrimaryKey(CPDefinitionInventoryId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinitionInventory.setUuid(uuid);

		cpDefinitionInventory.setCompanyId(companyProvider.getCompanyId());

		return cpDefinitionInventory;
	}
538223
@Override
	public com.liferay.commerce.product.type.virtual.model.CPDefinitionVirtualSetting deleteCPDefinitionVirtualSetting(
		com.liferay.commerce.product.type.virtual.model.CPDefinitionVirtualSetting cpDefinitionVirtualSetting) {
		return _cpDefinitionVirtualSettingLocalService.deleteCPDefinitionVirtualSetting(cpDefinitionVirtualSetting);
	}
216280
public void setCPDefinitionOptionRelService(
		com.liferay.commerce.product.service.CPDefinitionOptionRelService cpDefinitionOptionRelService) {
		this.cpDefinitionOptionRelService = cpDefinitionOptionRelService;
	}
879015
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceUserSegmentEntry addCommerceUserSegmentEntry(
		CommerceUserSegmentEntry commerceUserSegmentEntry) {
		commerceUserSegmentEntry.setNew(true);

		return commerceUserSegmentEntryPersistence.update(commerceUserSegmentEntry);
	}
501864
@Override
	public void removeByCPDefinitionId(long CPDefinitionId) {
		for (CPDefinitionOptionRel cpDefinitionOptionRel : findByCPDefinitionId(
				CPDefinitionId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionOptionRel);
		}
	}
781784
public static com.liferay.commerce.user.segment.model.CommerceUserSegmentCriterion addCommerceUserSegmentCriterion(
		com.liferay.commerce.user.segment.model.CommerceUserSegmentCriterion commerceUserSegmentCriterion) {
		return getService()
				   .addCommerceUserSegmentCriterion(commerceUserSegmentCriterion);
	}
808899
@Override
	public com.liferay.commerce.product.model.CPSpecificationOption createCPSpecificationOption(
		long CPSpecificationOptionId) {
		return _cpSpecificationOptionLocalService.createCPSpecificationOption(CPSpecificationOptionId);
	}
494217
@Override
	public CPDefinition create(long CPDefinitionId) {
		CPDefinition cpDefinition = new CPDefinitionImpl();

		cpDefinition.setNew(true);
		cpDefinition.setPrimaryKey(CPDefinitionId);

		String uuid = PortalUUIDUtil.generate();

		cpDefinition.setUuid(uuid);

		cpDefinition.setCompanyId(companyProvider.getCompanyId());

		return cpDefinition;
	}