public class

AxisMagentoCustomerClient

extends AbstractMagentoClient
implements MagentoCustomerClient<ExceptionType extends Exception>
java.lang.Object
   ↳ org.mule.module.magento.api.AbstractMagentoClient
     ↳ org.mule.module.magento.api.inventory.AxisMagentoCustomerClient

Summary

[Expand]
Inherited Fields
From class org.mule.module.magento.api.AbstractMagentoClient
Public Constructors
AxisMagentoCustomerClient(AxisPortProvider provider)
Public Methods
int createCustomer(CustomerCustomerEntityToCreate customerEntityToCreate)
Creates a customer with th given attributes
int createCustomerAddress(int customerId, CustomerAddressEntityCreate attributes)
Creates a new address for the given customer using the given address attributes
boolean deleteCustomer(int customerId)
Deletes a customer given its id
boolean deleteCustomerAddress(int addressId)
Deletes a Customer Address
CustomerCustomerEntity getCustomer(int customerId, List<String> attributeNames)
Answers customer attributes for the given id.
CustomerAddressEntityItem getCustomerAddress(int addressId)
Answers the customer address attributes
List<CustomerAddressEntityItem> listCustomerAddresses(int customerId)
Lists the customer address for a given customer id
List<CustomerGroupEntity> listCustomerGroups()
Lists all the customer groups
List<CustomerCustomerEntity> listCustomers(String filters)
Answers a list of customer attributes for the given filter expression.
void updateCustomer(int customerId, CustomerCustomerEntityToCreate attributes)
Updates the given customer attributes, for the given customer id.
void updateCustomerAddress(int addressId, CustomerAddressEntityCreate attributes)
Updates the given map of customer address attributes, for the given customer address
[Expand]
Inherited Methods
From class org.mule.module.magento.api.AbstractMagentoClient
From class java.lang.Object
From interface org.mule.module.magento.api.inventory.MagentoCustomerClient

Public Constructors

public AxisMagentoCustomerClient (AxisPortProvider provider)

Parameters
provider

Public Methods

public int createCustomer (CustomerCustomerEntityToCreate customerEntityToCreate)

Creates a customer with th given attributes

Parameters
customerEntityToCreate The attributes of the new customer
Returns
  • the new customer id
Throws
RemoteException

public int createCustomerAddress (int customerId, CustomerAddressEntityCreate attributes)

Creates a new address for the given customer using the given address attributes

Parameters
customerId
attributes
Returns
  • a new customer address id
Throws
RemoteException

public boolean deleteCustomer (int customerId)

Deletes a customer given its id

Parameters
customerId
Returns
  • if the customer is deleted
Throws
RemoteException

public boolean deleteCustomerAddress (int addressId)

Deletes a Customer Address

Parameters
addressId
Returns
  • if the customer address is deleted
Throws
RemoteException

public CustomerCustomerEntity getCustomer (int customerId, List<String> attributeNames)

Answers customer attributes for the given id. Only the selected attributes are retrieved

Parameters
customerId
attributeNames The attributes to retrieve. Not empty
Returns
  • the attributes map
Throws
RemoteException

public CustomerAddressEntityItem getCustomerAddress (int addressId)

Answers the customer address attributes

Parameters
addressId
Returns
  • the customer address attributes
Throws
RemoteException

public List<CustomerAddressEntityItem> listCustomerAddresses (int customerId)

Lists the customer address for a given customer id

Parameters
customerId The id of the customer
Returns
  • a listing of addresses
Throws
RemoteException

public List<CustomerGroupEntity> listCustomerGroups ()

Lists all the customer groups

Returns
  • a listing of groups attributes
Throws
RemoteException

public List<CustomerCustomerEntity> listCustomers (String filters)

Answers a list of customer attributes for the given filter expression.

Parameters
filters A filtering expression.
Returns
  • the attributes map
Throws
RemoteException

public void updateCustomer (int customerId, CustomerCustomerEntityToCreate attributes)

Updates the given customer attributes, for the given customer id. Password can not be updated using this method

Parameters
customerId
attributes The attributes map
Throws
RemoteException

public void updateCustomerAddress (int addressId, CustomerAddressEntityCreate attributes)

Updates the given map of customer address attributes, for the given customer address

Parameters
addressId The customer address to update
attributes The address attributes to update
Throws
RemoteException