@ Override public CPDefinition moveCPDefinitionToTrash ( long userId , long cpDefinitionId ) throws PortalException { CPDefinition cpDefinition = cpDefinitionPersistence . findByPrimaryKey ( cpDefinitionId ) ; return cpDefinitionLocalService . moveCPDefinitionToTrash ( userId , cpDefinition ) ; }
Moves the commerce product definition with the ID to the recycle bin .