All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.code.magja.service.product.ProductMediaRemoteService Maven / Gradle / Ivy

Go to download

Magja is a java connector for access the Magento API (http://www.magentocommerce.com/support/magento_core_api), with that you will be able to manipulate the magento products (images include), categories, customers, orders, and much more. Just you have to do its create a properties file with the connection parameters for the magento installation. For more information visit the project page.

There is a newer version: 0.0.3
Show newest version
/**
 *
 */
package com.google.code.magja.service.product;

import java.util.List;

import com.google.code.magja.model.product.Product;
import com.google.code.magja.model.product.ProductMedia;
import com.google.code.magja.service.GeneralService;
import com.google.code.magja.service.ServiceException;

/**
 * @author andre
 *
 */
public interface ProductMediaRemoteService extends GeneralService {

	/**
	 * List the product medias for the product specified, the product just must
	 * to have the id or sku attributes setted
	 *
	 * @param product
	 * @return List
	 * @throws ServiceException
	 */
	public abstract List listByProduct(Product product)
			throws ServiceException;

	/**
	 * Get the info of the product media by the product and file name specified,
	 * the product just must to have the id or sku specified
	 *
	 * @param product
	 * @param file
	 * @return
	 * @throws ServiceException
	 */
	public abstract ProductMedia getByProductAndFile(Product product,
			String file) throws ServiceException;

	/**
	 * Save a new ProductMedia to the database, the object must have the product
	 * id specified
	 *
	 * @param productMedia
	 * @throws ServiceException
	 */
	public abstract void save(ProductMedia productMedia)
			throws ServiceException;

	/**
	 * Delete a Product Media from magento, the object must have the product id
	 * or sku specified
	 *
	 * @param productMedia
	 * @throws ServiceException
	 */
	public abstract void delete(ProductMedia productMedia)
			throws ServiceException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy