|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.dataimport.impl.ImportGuidHelperImpl
public class ImportGuidHelperImpl
This helper service provides the ability to load various entity by the given guid.
Constructor Summary | |
---|---|
ImportGuidHelperImpl()
|
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. |
CategoryService |
getCategoryService()
Returns the imbedded category service. |
java.lang.Object |
getObject(long uid)
Not used. |
ProductService |
getProductService()
Returns the imbedded product service. |
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 exist. |
boolean |
isProductSkuGuidExist(java.lang.String guid)
Return true if the given productsku guid exist. |
void |
setCategoryService(CategoryService categoryService)
Set the category service. |
void |
setFetchSize(int fetchSize)
Set the fetch size. |
void |
setMaxResults(int maxResults)
Set the max return results. |
void |
setProductService(ProductService productService)
Set the product service. |
void |
setSession(PersistenceSession session)
Set the session. |
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.service.EpPersistenceService |
---|
getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Constructor Detail |
---|
public ImportGuidHelperImpl()
Method Detail |
---|
public Brand findBrandByGuid(java.lang.String guid) throws EpServiceException
findBrandByGuid
in interface ImportGuidHelper
guid
- the guid of the brand
EpServiceException
- in case of any errorpublic Category findCategoryByGuid(java.lang.String guid, boolean flagLoadProducts, boolean flagLoadAttributes, boolean flagLoadChildren) throws EpServiceException
findCategoryByGuid
in interface ImportGuidHelper
guid
- the guid of the categoryflagLoadProducts
- set it to true
to load productsflagLoadAttributes
- set it to true
to load attributes valuesflagLoadChildren
- set it to true
to load children of the category
EpServiceException
- in case of any errorpublic Customer findCustomerByGuid(java.lang.String guid) throws EpServiceException
findCustomerByGuid
in interface ImportGuidHelper
guid
- the guid of the Customer
Customer
with the given guid
EpServiceException
- in case of any errorpublic Product findProductByGuid(java.lang.String guid, boolean flagLoadCategories, boolean flagLoadAttributes) throws EpServiceException
findProductByGuid
in interface ImportGuidHelper
guid
- the guid of the productflagLoadCategories
- set it to true
to load categoriesflagLoadAttributes
- set it to true
to load attributes values
EpServiceException
- in case of any errorpublic ProductSku findProductSkuByGuid(java.lang.String guid) throws EpServiceException
findProductSkuByGuid
in interface ImportGuidHelper
guid
- the guid of the product sku
EpServiceException
- in case of any errorpublic CategoryService getCategoryService()
public java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- not used.
EpServiceException
- - in case of calledpublic ProductService getProductService()
public boolean isBrandGuidExist(java.lang.String guid)
true
if the given brand guid exist.
isBrandGuidExist
in interface ImportGuidHelper
guid
- the guid of the brand
true
if the given brand guid exist
EpServiceException
- in case of any errorpublic boolean isCategoryGuidExist(java.lang.String guid) throws EpServiceException
true
if the given category guid exist.
isCategoryGuidExist
in interface ImportGuidHelper
guid
- the guid of the category
true
if the given category guid exist
EpServiceException
- in case of any errorpublic boolean isCustomerGuidExist(java.lang.String guid) throws EpServiceException
true
if the given Customer guid exists.
isCustomerGuidExist
in interface ImportGuidHelper
guid
- the guid of the Customer
true
if the given Customer guid exists
EpServiceException
- in case of any errorpublic boolean isProductGuidExist(java.lang.String guid) throws EpServiceException
true
if the given product guid exist.
isProductGuidExist
in interface ImportGuidHelper
guid
- the guid of the product
true
if the given product guid exist
EpServiceException
- in case of any errorpublic boolean isProductSkuGuidExist(java.lang.String guid) throws EpServiceException
true
if the given productsku guid exist.
isProductSkuGuidExist
in interface ImportGuidHelper
guid
- the guid of the productsku
true
if the given productsku guid exist
EpServiceException
- in case of any errorpublic void setCategoryService(CategoryService categoryService)
categoryService
- the category service to setpublic void setFetchSize(int fetchSize)
fetchSize
- the fetch sizepublic void setMaxResults(int maxResults)
maxResults
- the max return resultspublic void setProductService(ProductService productService)
productService
- the product service to setpublic void setSession(PersistenceSession session)
setSession
in interface ImportGuidHelper
session
- the session to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |