public class

AxisMagentoCustomerClient

extends AbstractMagentoClient
implements MagentoCustomerClient<AttributesType, AttributesCollectionType, 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(Map<String, Object> attributes)
Creates a customer with th given attributes
int createCustomerAddress(int customerId, Map<String, Object> attributes)
Creates a new address for the given customer using the given address attributes
void deleteCustomer(int customerId)
Deletes a customer given its id
void deleteCustomerAddress(int addressId)
Deletes a Customer Address
Object getCustomer(int customerId, List<String> attributeNames)
Answers customer attributes for the given id.
Object getCustomerAddress(int addressId)
Answers the customer address attributes
Object[] listCustomerAddresses(int customerId)
Lists the customer address for a given customer id
Object[] listCustomerGroups()
Lists all the customer groups
Object[] listCustomers(String filters)
Answers a list of customer attributes for the given filter expression.
void updateCustomer(int customerId, Map<String, Object> attributes)
Updates the given customer attributes, for the given customer id.
void updateCustomerAddress(int addressId, Map<String, Object> 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 (Map<String, Object> attributes)

Creates a customer with th given attributes

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

public int createCustomerAddress (int customerId, Map<String, Object> 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 void deleteCustomer (int customerId)

Deletes a customer given its id

Parameters
customerId
Throws
RemoteException

public void deleteCustomerAddress (int addressId)

Deletes a Customer Address

Parameters
addressId
Throws
RemoteException

public Object 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 Object getCustomerAddress (int addressId)

Answers the customer address attributes

Parameters
addressId
Returns
  • the customer address attributes
Throws
RemoteException

public Object[] 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 Object[] listCustomerGroups ()

Lists all the customer groups

Returns
  • a listing of groups attributes
Throws
RemoteException

public Object[] 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, Map<String, Object> 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, Map<String, Object> 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