How to get the product url in admin fetch?
Posted: Sun Jun 22, 2014 8:48 am
I have implemented my own PersistenceHandler for the BLC_PRODUCT. Now, I would like to know, how could I get product url or atleast product id of the product that is requested. For example, if the user requested.
'
http://localhost:8086/admin/product/12303
Then, I would want the 12303 number. How could I get that. In the fetch() method of the CustomPersistenceHandler, I only have these parameters,
PersistencePackage persistencePackage
CriteriaTransferObject cto
DynamicEntityDao dynamicEntityDao
RecordHelper helper
The reason I am asking this is, when a single product is requested I need to send only a single record and in order to ensure that the requested record is returned by the fetch() method of my persistence handler, i need a way to know which product I am being requested.
I am getting the Entity Not Found error if I send all the records, because of this..
Thanks in advance. Hope you will reply as soon as possible.
'
http://localhost:8086/admin/product/12303
Then, I would want the 12303 number. How could I get that. In the fetch() method of the CustomPersistenceHandler, I only have these parameters,
PersistencePackage persistencePackage
CriteriaTransferObject cto
DynamicEntityDao dynamicEntityDao
RecordHelper helper
The reason I am asking this is, when a single product is requested I need to send only a single record and in order to ensure that the requested record is returned by the fetch() method of my persistence handler, i need a way to know which product I am being requested.
I am getting the Entity Not Found error if I send all the records, because of this..
Code: Select all
AdminEntityServiceImpl.java
Assert.isTrue(entities != null && entities.length == 1, "Entity not found");
Thanks in advance. Hope you will reply as soon as possible.