RS - platform dependent record set typepublic class RefrLst<RS> extends Object implements org.beigesoft.prc.IPrc
Service that refresh webstore itm in Itlist according current GoodsAvailiable, ItmSpf, PriItm, GoodsRating, etc. This is non-public processor.
| Constructor and Description |
|---|
RefrLst() |
| Modifier and Type | Method and Description |
|---|---|
protected <I extends org.beigesoft.mdl.IIdLnNm> |
creItlst(Map<String,Object> pRvs,
I pItm)
Create Itlist for itm.
|
protected <T extends AItmSpf<?,?>> |
fnd1Idx(List<T> pOudItSpfs,
org.beigesoft.mdl.IIdLnNm pItm)
Find the first index of specific with given itm.
|
protected String |
fndChoSpNm(List<I18ChoSp> pI18ChoSps,
ChoSp pSpec,
org.beigesoft.mdlp.Lng pLng)
Find find I18 Chooseable Specific Name with
given specifics and lang.
|
protected Htmlt |
fndHtmlt(List<Htmlt> pHtmlts,
Long pId)
Find Html Template with given ID.
|
protected I18SpeLi |
fndI18SpeLi(List<I18SpeLi> pI18SpeLis,
org.beigesoft.mdl.IIdLnNm pItm,
EItmTy pItTy,
org.beigesoft.mdlp.Lng pLng)
Find I18SpeLi with given itm, type and lang.
|
protected Itlist |
fndItlst(List<Itlist> pItlsts,
Long pItId,
EItmTy pItTy)
Find Itlist with given itm ID and type.
|
protected String |
fndItmSpGrNm(List<I18ItmSpGr> pI18ItmSpGrs,
ItmSpGr pSpecGr,
org.beigesoft.mdlp.Lng pLng)
Find find I18 Specific Group Name
with given specifics group and lang.
|
protected String |
fndSpecNm(List<I18ItmSp> pI18ItmSps,
ItmSp pSpec,
org.beigesoft.mdlp.Lng pLng)
Find find I18 Specific Name with given specifics and lang.
|
protected String |
fndUomNm(List<I18Uom> pI18UomLst,
Uom pUom,
org.beigesoft.mdlp.Lng pLng)
Find find I18 UOM Name with given UOM and lang.
|
org.beigesoft.log.ILog |
getLog()
Geter for log.
|
org.beigesoft.srv.INumStr |
getNumStr()
Getter for numStr.
|
org.beigesoft.rdb.IOrm |
getOrm()
Geter for orm.
|
org.beigesoft.rdb.IRdb<RS> |
getRdb()
Getter for rdb.
|
Integer |
getTrIsl()
Getter for trIsl.
|
void |
process(Map<String,Object> pRvs,
org.beigesoft.mdl.IReqDt pRqd)
Process entity request.
|
<T extends AItmPlc<?,?>> |
retItmPlcLst(Map<String,Object> pRvs,
Long pLuv,
Class<T> pItmPlcCl)
Retrieve Item Places (outdated or all).
|
<T extends AItmPri<?,?>> |
retItmPriLs(Map<String,Object> pRvs,
Long pLuv,
Class<T> pItmPriCl,
Long pPrCatId)
Retrieve itm price list (outdated or all).
|
<T extends AItmSpf<I,?>,I extends org.beigesoft.mdl.IIdLnNm> |
retItmSpfLs(Map<String,Object> pRvs,
Long pLuv,
Class<T> pItSpCls)
Retrieve Item Spec list outdated or all.
|
void |
retStData(Map<String,Object> pRvs)
Retrieve start data.
|
void |
setLog(org.beigesoft.log.ILog pLog)
Setter for log.
|
void |
setNumStr(org.beigesoft.srv.INumStr pNumStr)
Setter for numStr.
|
void |
setOrm(org.beigesoft.rdb.IOrm pOrm)
Setter for orm.
|
void |
setRdb(org.beigesoft.rdb.IRdb<RS> pRdb)
Setter for rdb.
|
void |
setTrIsl(Integer pTrIsl)
Setter for trIsl.
|
<T extends AItmPlc<I,?>,I extends org.beigesoft.mdl.IIdLnNm> |
updFoItmPlc(Map<String,Object> pRvs,
T pItmPlc,
EItmTy pItTy)
Update Itlist with Item Place.
|
<T extends AItmPlc<I,?>,I extends org.beigesoft.mdl.IIdLnNm> |
updFoItmPlcLs(Map<String,Object> pRvs,
List<T> pItmPlcLst,
AddStg pAddStg,
ItlLuv pItlLuv,
EItmTy pItTy)
Update Itlist withitem place list.
|
<T extends AItmPri<I,?>,I extends org.beigesoft.mdl.IIdLnNm> |
updFoItmPri(Map<String,Object> pRvs,
T pItmPri,
EItmTy pItTy)
Update Itlist for Item Pri.
|
<T extends AItmPri<I,?>,I extends org.beigesoft.mdl.IIdLnNm> |
updFoItPriLs(Map<String,Object> pRvs,
List<T> pItPriLs,
AddStg pAddStg,
ItlLuv pItlLuv,
EItmTy pItTy)
Update Itlist with itm price list.
|
<T extends AItmSpf<?,?>> |
updLstItSpf(Map<String,Object> pRvs,
AddStg pAddStg,
T pOutdGdSp,
Itlist pItlist,
ItmSpGr pItmSpGrsWas,
List<I18SpeLi> pI18SpeLis,
List<I18ItmSp> pI18SpecLst,
List<I18ChoSp> pI18ChSpecLst,
List<I18Uom> pI18UomLst)
Update Itlist.SpecificInList with outdated ItmSpf.
|
<I extends org.beigesoft.mdlp.AI18nNm<?,?>,T extends AItmSpf<?,?>> |
updLstItSpfs(Map<String,Object> pRvs,
List<T> pOudItSpfs,
AddStg pAddStg,
ItlLuv pItlLuv,
TrdStg pTrdStg,
Class<I> pI18ItCls,
EItmTy pItTy)
Update Itlist with outdated itm specifics list.
|
public final void process(Map<String,Object> pRvs, org.beigesoft.mdl.IReqDt pRqd) throws Exception
Process entity request.
process in interface org.beigesoft.prc.IPrcpRvs - additional parampRqd - Request DataException - - an exceptionpublic final void retStData(Map<String,Object> pRvs) throws Exception
Retrieve start data.
pRvs - additional paramException - - an exceptionpublic final <T extends AItmPlc<?,?>> List<T> retItmPlcLst(Map<String,Object> pRvs, Long pLuv, Class<T> pItmPlcCl) throws Exception
Retrieve Item Places (outdated or all).
T - itm place typepRvs - additional parampLuv - last updated version or null for allpItmPlcCl - Item Place ClassException - - an exceptionpublic final <T extends AItmPlc<I,?>,I extends org.beigesoft.mdl.IIdLnNm> void updFoItmPlc(Map<String,Object> pRvs, T pItmPlc, EItmTy pItTy) throws Exception
Update Itlist with Item Place.
T - itm place typeI - itm typepRvs - additional parampItmPlc - Item PlacepItTy - EItmTyException - - an exceptionpublic final <T extends AItmPlc<I,?>,I extends org.beigesoft.mdl.IIdLnNm> void updFoItmPlcLs(Map<String,Object> pRvs, List<T> pItmPlcLst, AddStg pAddStg, ItlLuv pItlLuv, EItmTy pItTy) throws Exception
Update Itlist withitem place list. It does it with [N]-records per transaction method.
T - itm place typeI - itm typepRvs - additional parampItmPlcLst - itm place listpAddStg - settings AddpItlLuv - itlLuvpItTy - EItmTyException - - an exceptionpublic final <T extends AItmPri<?,?>> List<T> retItmPriLs(Map<String,Object> pRvs, Long pLuv, Class<T> pItmPriCl, Long pPrCatId) throws Exception
Retrieve itm price list (outdated or all).
T - itm price typepRvs - additional parampLuv - last updated version or null for allpItmPriCl - Item Pri ClasspPrCatId - default online price category IDException - - an exceptionpublic final <T extends AItmPri<I,?>,I extends org.beigesoft.mdl.IIdLnNm> void updFoItmPri(Map<String,Object> pRvs, T pItmPri, EItmTy pItTy) throws Exception
Update Itlist for Item Pri.
T - itm price typeI - itm typepRvs - additional parampItmPri - Item PripItTy - EItmTyException - - an exceptionpublic final <T extends AItmPri<I,?>,I extends org.beigesoft.mdl.IIdLnNm> void updFoItPriLs(Map<String,Object> pRvs, List<T> pItPriLs, AddStg pAddStg, ItlLuv pItlLuv, EItmTy pItTy) throws Exception
Update Itlist with itm price list. It does it with [N]-records per transaction method.
T - itm price typeI - itm typepRvs - additional parampItPriLs - itm price listpAddStg - settings AddpItlLuv - itlLuvpItTy - EItmTyException - - an exceptionpublic final <T extends AItmSpf<I,?>,I extends org.beigesoft.mdl.IIdLnNm> List<T> retItmSpfLs(Map<String,Object> pRvs, Long pLuv, Class<T> pItSpCls) throws Exception
Retrieve Item Spec list outdated or all.
T - Item Spec typeI - Item typepRvs - additional parampLuv - last updated version - null allpItSpCls - ItemSpec ClassException - - an exceptionpublic final <T extends AItmSpf<?,?>> void updLstItSpf(Map<String,Object> pRvs, AddStg pAddStg, T pOutdGdSp, Itlist pItlist, ItmSpGr pItmSpGrsWas, List<I18SpeLi> pI18SpeLis, List<I18ItmSp> pI18SpecLst, List<I18ChoSp> pI18ChSpecLst, List<I18Uom> pI18UomLst) throws Exception
Update Itlist.SpecificInList with outdated ItmSpf.
T - itm specifics typepRvs - additional parampAddStg - AddStgpOutdGdSp - outdated ItmSpfpItlist - ItlistpItmSpGrsWas - ItmSpGr previouspI18SpeLis - I18SpeLi listpI18SpecLst - I18ItmSp listpI18ChSpecLst - I18ChoSp listpI18UomLst - I18Uom listException - - an exceptionpublic final <I extends org.beigesoft.mdlp.AI18nNm<?,?>,T extends AItmSpf<?,?>> void updLstItSpfs(Map<String,Object> pRvs, List<T> pOudItSpfs, AddStg pAddStg, ItlLuv pItlLuv, TrdStg pTrdStg, Class<I> pI18ItCls, EItmTy pItTy) throws Exception
Update Itlist with outdated itm specifics list. It does it with [N]-records per transaction method.
I - itm typeT - itm specifics typepRvs - additional parampOudItSpfs - outdated ItmSpf listpAddStg - settings AddpItlLuv - itlLuvpTrdStg - trading settingspI18ItCls - I18Item ClasspItTy - EItmTyException - - an exceptionprotected final String fndItmSpGrNm(List<I18ItmSpGr> pI18ItmSpGrs, ItmSpGr pSpecGr, org.beigesoft.mdlp.Lng pLng)
Find find I18 Specific Group Name with given specifics group and lang.
pI18ItmSpGrs - listpSpecGr - Specific GrouppLng - langprotected final String fndUomNm(List<I18Uom> pI18UomLst, Uom pUom, org.beigesoft.mdlp.Lng pLng)
Find find I18 UOM Name with given UOM and lang.
pI18UomLst - listpUom - UOMpLng - langprotected final String fndChoSpNm(List<I18ChoSp> pI18ChoSps, ChoSp pSpec, org.beigesoft.mdlp.Lng pLng)
Find find I18 Chooseable Specific Name with given specifics and lang.
pI18ChoSps - listpSpec - Specific GrouppLng - langprotected final String fndSpecNm(List<I18ItmSp> pI18ItmSps, ItmSp pSpec, org.beigesoft.mdlp.Lng pLng)
Find find I18 Specific Name with given specifics and lang.
pI18ItmSps - listpSpec - Specific GrouppLng - langprotected final I18SpeLi fndI18SpeLi(List<I18SpeLi> pI18SpeLis, org.beigesoft.mdl.IIdLnNm pItm, EItmTy pItTy, org.beigesoft.mdlp.Lng pLng)
Find I18SpeLi with given itm, type and lang.
pI18SpeLis - listpItm - itmpItTy - itm typepLng - langprotected final Itlist fndItlst(List<Itlist> pItlsts, Long pItId, EItmTy pItTy)
Find Itlist with given itm ID and type.
pItlsts - items listpItId - Item IDpItTy - Item typeprotected final <T extends AItmSpf<?,?>> int fnd1Idx(List<T> pOudItSpfs, org.beigesoft.mdl.IIdLnNm pItm)
Find the first index of specific with given itm.
T - itm specifics typepOudItSpfs - GS listpItm - Goodsprotected final Htmlt fndHtmlt(List<Htmlt> pHtmlts, Long pId) throws Exception
Find Html Template with given ID.
pHtmlts - Html TemplatespId - IDException - - if not foundprotected final <I extends org.beigesoft.mdl.IIdLnNm> Itlist creItlst(Map<String,Object> pRvs, I pItm) throws Exception
Create Itlist for itm.
I - itm typepRvs - additional parampItm - ItemException - - an exceptionpublic final org.beigesoft.rdb.IRdb<RS> getRdb()
Getter for rdb.
public final void setRdb(org.beigesoft.rdb.IRdb<RS> pRdb)
Setter for rdb.
pRdb - referencepublic final Integer getTrIsl()
Getter for trIsl.
public final void setTrIsl(Integer pTrIsl)
Setter for trIsl.
pTrIsl - referencepublic final org.beigesoft.rdb.IOrm getOrm()
Geter for orm.
public final void setOrm(org.beigesoft.rdb.IOrm pOrm)
Setter for orm.
pOrm - referencepublic final org.beigesoft.srv.INumStr getNumStr()
Getter for numStr.
public final void setNumStr(org.beigesoft.srv.INumStr pNumStr)
Setter for numStr.
pNumStr - referencepublic final org.beigesoft.log.ILog getLog()
Geter for log.
public final void setLog(org.beigesoft.log.ILog pLog)
Setter for log.
pLog - referenceCopyright © 2019–2020. All rights reserved.