@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class MagentoService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MESSAGE |
static String |
TYPE |
| Constructor and Description |
|---|
MagentoService() |
| Modifier and Type | Method and Description |
|---|---|
org.imixs.workflow.ItemCollection |
addMagentoEntity(org.imixs.workflow.ItemCollection workitem,
org.imixs.workflow.ItemCollection magentoEntity)
This method adds the properties form a magento entity to an existing
workitem.
|
void |
clearCache() |
List<org.imixs.workflow.ItemCollection> |
findAllConfigurations()
retruns a list of all existing Magento Shop Configurations
|
org.imixs.workflow.ItemCollection |
findOrderByWorkitem(org.imixs.workflow.ItemCollection workitem)
This method finds the magento order entity for a workitem.
|
org.imixs.workflow.ItemCollection |
findWorkitemByOrder(org.imixs.workflow.ItemCollection order)
This method finds a workitem for a magento order id.
|
org.imixs.workflow.ItemCollection |
getCustomerById(String id,
String configID)
returns a single itemCollection for a magento product entry.
|
MagentoHTMLClient |
getHTMLClient(String configID)
Returns an instance of a HTMLClient for a specified magento shop
configuration
|
String |
getOrderID(org.imixs.workflow.ItemCollection order)
this method creates the Magento oder ID to be stored in the property
'txtName'.
|
org.imixs.workflow.ItemCollection |
getProductBySKU(String sku,
String configID)
returns a single itemCollection for a magento product entry.
|
MagentoClient |
getRestClient(String configID)
Returns an instance of a Rest Client for a specified magento shop
configuration
|
MagentoClient |
getSOAPClient(String configID)
Returns an instance of a SOAPClient for a specified magento shop
configuration
|
void |
init()
initial setup the magento client implementation
|
boolean |
isWorkitemEqualsToMagentoEntity(org.imixs.workflow.ItemCollection workitem,
org.imixs.workflow.ItemCollection magentoEntity)
This method compares the data of a Imixs Workitem with the data of a
magento entity.
|
org.imixs.workflow.ItemCollection |
loadConfiguration(String id)
This method loads a magento configuration.
|
void |
reset()
resets the connections
|
public static final String ERROR_MESSAGE
public static final String TYPE
@PostConstruct public void init()
public void reset()
public List<org.imixs.workflow.ItemCollection> findAllConfigurations()
public MagentoClient getSOAPClient(String configID)
configID - - id of the shop configuration entitypublic MagentoClient getRestClient(String configID)
configID - - id of the shop configuration entitypublic MagentoHTMLClient getHTMLClient(String configID)
configID - - id of the shop configuration entitypublic org.imixs.workflow.ItemCollection loadConfiguration(String id)
public org.imixs.workflow.ItemCollection findWorkitemByOrder(org.imixs.workflow.ItemCollection order)
magento:order:[SHOPID]:1
public org.imixs.workflow.ItemCollection findOrderByWorkitem(org.imixs.workflow.ItemCollection workitem)
throws MagentoException
magento:order:1
MagentoExceptionpublic String getOrderID(org.imixs.workflow.ItemCollection order)
public org.imixs.workflow.ItemCollection getCustomerById(String id, String configID) throws MagentoException
id - configID - - id of the shop configuration entityMagentoExceptionorg.imixs.workflow.exceptions.PluginExceptionpublic org.imixs.workflow.ItemCollection getProductBySKU(String sku, String configID) throws MagentoException
sku - configID - - id of the shop configuration entityMagentoExceptionorg.imixs.workflow.exceptions.PluginExceptionpublic org.imixs.workflow.ItemCollection addMagentoEntity(org.imixs.workflow.ItemCollection workitem,
org.imixs.workflow.ItemCollection magentoEntity)
entity_id => m_entity_id
The method also clears all existing magento properties before!workitem - - a workItem instancemagentoEntity - - holds the properties to be added into the workItempublic boolean isWorkitemEqualsToMagentoEntity(org.imixs.workflow.ItemCollection workitem,
org.imixs.workflow.ItemCollection magentoEntity)
workitem - magentoEntity - public void clearCache()
Copyright © 2020 Imixs Software Solutions GmbH. All rights reserved.