com.elasticpath.service.dataimport
Interface ImportGuidHelper

All Superinterfaces:
EpPersistenceService, EpService
All Known Implementing Classes:
ImportGuidHelperImpl

public interface ImportGuidHelper
extends EpPersistenceService

This helper service provides the ability to load various entity by th given guid.


Method Summary
 Brand findBrandByGuid(java.lang.String guid)
          Retrieve the brand with the given guid.
 Category findCategoryByGuid(java.lang.String guid, boolean flagLoadProducts, boolean flagLoadAttributes, boolean flagLoadChildren)
          Retrieve the category with the given guid.
 Customer findCustomerByGuid(java.lang.String guid)
          Retrieve the customer with the given guid.
 Product findProductByGuid(java.lang.String guid, boolean flagLoadCategories, boolean flagLoadAttributes)
          Retrieve the product with the given guid.
 ProductSku findProductSkuByGuid(java.lang.String guid)
          Retrieve the product sku with the given guid.
 boolean isBrandGuidExist(java.lang.String guid)
          Return true if the given brand guid exist.
 boolean isCategoryGuidExist(java.lang.String guid)
          Return true if the given category guid exist.
 boolean isCustomerGuidExist(java.lang.String guid)
          Return true if the given Customer guid exists.
 boolean isProductGuidExist(java.lang.String guid)
          Return true if the given product guid exists.
 boolean isProductSkuGuidExist(java.lang.String guid)
          Return true if the given productsku guid exist.
 void setSession(PersistenceSession session)
          Set the session.
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getObject, getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

findBrandByGuid

Brand findBrandByGuid(java.lang.String guid)
                      throws EpServiceException
Retrieve the brand with the given guid.

Parameters:
guid - the guid of the brand
Returns:
the brand with the given guid
Throws:
EpServiceException - in case of any error

findCategoryByGuid

Category findCategoryByGuid(java.lang.String guid,
                            boolean flagLoadProducts,
                            boolean flagLoadAttributes,
                            boolean flagLoadChildren)
                            throws EpServiceException
Retrieve the category with the given guid.

Parameters:
guid - the guid of the category
flagLoadProducts - set it to true to load products
flagLoadAttributes - set it to true to load attributes values
flagLoadChildren - set it to true to load children of the category
Returns:
the category with the given guid
Throws:
EpServiceException - in case of any error

findCustomerByGuid

Customer findCustomerByGuid(java.lang.String guid)
                            throws EpServiceException
Retrieve the customer with the given guid.

Parameters:
guid - the guid of the Customer
Returns:
the Customer with the given guid
Throws:
EpServiceException - in case of any error

findProductByGuid

Product findProductByGuid(java.lang.String guid,
                          boolean flagLoadCategories,
                          boolean flagLoadAttributes)
                          throws EpServiceException
Retrieve the product with the given guid.

Parameters:
guid - the guid of the product
flagLoadCategories - set it to true to load categories
flagLoadAttributes - set it to true to load attributes values
Returns:
the product with the given guid
Throws:
EpServiceException - in case of any error

findProductSkuByGuid

ProductSku findProductSkuByGuid(java.lang.String guid)
                                throws EpServiceException
Retrieve the product sku with the given guid.

Parameters:
guid - the guid of the product sku
Returns:
the product sku with the given guid
Throws:
EpServiceException - in case of any error

isBrandGuidExist

boolean isBrandGuidExist(java.lang.String guid)
Return true if the given brand guid exist.

Parameters:
guid - the guid of the brand
Returns:
true if the given brand guid exist
Throws:
EpServiceException - in case of any error

isCategoryGuidExist

boolean isCategoryGuidExist(java.lang.String guid)
                            throws EpServiceException
Return true if the given category guid exist.

Parameters:
guid - the guid of the category
Returns:
true if the given category guid exist
Throws:
EpServiceException - in case of any error

isCustomerGuidExist

boolean isCustomerGuidExist(java.lang.String guid)
                            throws EpServiceException
Return true if the given Customer guid exists.

Parameters:
guid - the guid of the Customer
Returns:
true if the given Customer guid exists
Throws:
EpServiceException - in case of any error

isProductGuidExist

boolean isProductGuidExist(java.lang.String guid)
                           throws EpServiceException
Return true if the given product guid exists.

Parameters:
guid - the guid of the product
Returns:
true if the given product guid exists
Throws:
EpServiceException - in case of any error

isProductSkuGuidExist

boolean isProductSkuGuidExist(java.lang.String guid)
                              throws EpServiceException
Return true if the given productsku guid exist.

Parameters:
guid - the guid of the productsku
Returns:
true if the given productsku guid exist
Throws:
EpServiceException - in case of any error

setSession

void setSession(PersistenceSession session)
Set the session.

Parameters:
session - the session to set