RS - platform dependent record set typepublic class WsPg<RS> extends Object implements org.beigesoft.prc.IPrc, ILsCatlChg
Service that retrieve webstore page.
| Constructor and Description |
|---|
WsPg() |
| Modifier and Type | Method and Description |
|---|---|
void |
copSubcats(TrCatl pCatl,
List<CatGs> pCatlsGs)
Copy sub-catl-GS from given catl-T to given set-CGS.
|
CatGs |
findCatGsById(List<CatGs> pCatls,
Long pId)
Find catl GS by ID.
|
CatGs |
findSubcatByIdInTc(TrCatl pCatl,
Long pId)
Find sub-catl-GS by ID in root catl-T.
|
TrCatl |
findTrCatlById(List<TrCatl> pCatls,
Long pId)
Find trading catl by ID.
|
ChoSp |
fndChoSpById(List<ChoSp> pChoSps,
Long pId)
Find chooseable specifics in given list by ID.
|
CmpTrCatl |
getCmpCatls()
Getter for cmpCatls.
|
org.beigesoft.log.ILog |
getLog()
Geter for log.
|
org.beigesoft.rdb.IOrm |
getOrm()
Geter for orm.
|
org.beigesoft.rdb.IRdb<RS> |
getRdb()
Getter for rdb.
|
ISrCart |
getSrCart()
Getter for srCart.
|
org.beigesoft.srv.ISrvPg |
getSrvPg()
Getter for srvPg.
|
Integer |
getTrIsl()
Getter for trIsl.
|
void |
hndCatlChg()
Handle catl changed event.
|
List<TrCatl> |
lazCatls(Map<String,Object> pRvs)
Build catls in lazy mode.
|
String |
lazyGetQuItInLstCa()
Lazy Get quItInLstCa.
|
String |
lazyGetQuItInLstCaIn()
Lazy Get quItInLstCaIn.
|
String |
lazyGetQuItInLstCaTo()
Lazy Get quItInLstCaTo.
|
String |
lazyGetQuItSpFlt()
Lazy Get quItSpFlt.
|
String |
loadStr(String pFiNm)
Load string file (usually SQL query).
|
void |
process(Map<String,Object> pRvs,
org.beigesoft.mdl.IReqDt pRqDt)
Process entity request.
|
void |
prpgCatlStg(TrCatl pMainCatl)
Set filters/orders/has goods/services...
|
void |
refrCatlsFlts(Map<String,Object> pRvs,
List<TrCatl> pCurLst)
Refresh catl filters, the first catl in which filter is enabled
is propagated into sub-catls.
|
List<ChoSp> |
retAllChSpec(Map<String,Object> pRvs,
ChoSpTy pChoSpTy)
Retrieve all choseeable specifics.
|
void |
retSubcatls(List<TrCatl> pCurLst,
List<CatGs> pCatls,
List<SubCat> pSubCats)
Retrieve recursively sub-catls for current level catls.
|
String |
revealWhereCatl(TrCatl pTcat,
org.beigesoft.flt.FltItms<CatGs> pFltCatl)
Reveal part of where catl clause e.g.
|
org.beigesoft.flt.FltItms<CatGs> |
revFltCatl(TrCatl pTcat,
Map<String,Object> pRvs,
org.beigesoft.mdl.IReqDt pRqDt)
Reveal filter catl for catl and fill it from request data.
|
org.beigesoft.flt.FltInt |
revFltPri(TrCatl pTcat,
Map<String,Object> pRvs,
org.beigesoft.mdl.IReqDt pRqDt)
Reveal filter price for catl and fill it from request data.
|
List<FltSpf> |
revFltsSpec(TrCatl pTcat,
Map<String,Object> pRvs,
org.beigesoft.mdl.IReqDt pRqDt)
Reveal filters specifics for given catl
and fill it from request data.
|
String |
revWhePri(org.beigesoft.flt.FltInt pFltPri,
BigDecimal pCuRt)
Reveal part of where clause e.g.
|
FltsSpfWhe |
revWheSpec(List<FltSpf> pFltsSpf)
Reveal part of where specifics clause e.g.:
"(SPEC=3 and LNG1 in (3, 14))
or (SPEC=4 and NUM1<2.33)",
and count of conditions, or null.
|
void |
setCmpCatls(CmpTrCatl pCmpCatls)
Setter for cmpCatls.
|
void |
setLog(org.beigesoft.log.ILog pLog)
Setter for log.
|
void |
setOrm(org.beigesoft.rdb.IOrm pOrm)
Setter for orm.
|
void |
setRdb(org.beigesoft.rdb.IRdb<RS> pRdb)
Setter for rdb.
|
void |
setSrCart(ISrCart pSrCart)
Setter for srCart.
|
void |
setSrvPg(org.beigesoft.srv.ISrvPg pSrvPg)
Setter for srvPg.
|
void |
setTrIsl(Integer pTrIsl)
Setter for trIsl.
|
void |
sortCatls(List<TrCatl> pCurLst)
Sort recursively catls in tree.
|
String |
toSqlOpr(org.beigesoft.flt.EFltOpr pFltOpr)
Convert from EFltOpr to SQL one.
|
public final void hndCatlChg()
throws Exception
Handle catl changed event.
hndCatlChg in interface ILsCatlChgException - an Exceptionpublic final void process(Map<String,Object> pRvs, org.beigesoft.mdl.IReqDt pRqDt) throws Exception
Process entity request.
process in interface org.beigesoft.prc.IPrcpRvs - additional parampRqDt - Request DataException - - an exceptionpublic final List<TrCatl> lazCatls(Map<String,Object> pRvs) throws Exception
Build catls in lazy mode.
pRvs - paramsException - - an exceptionpublic final void refrCatlsFlts(Map<String,Object> pRvs, List<TrCatl> pCurLst) throws Exception
Refresh catl filters, the first catl in which filter is enabled is propagated into sub-catls.
pRvs - paramspCurLst - Catl List currentException - an Exceptionpublic final void sortCatls(List<TrCatl> pCurLst)
Sort recursively catls in tree.
pCurLst - Catl List currentpublic final org.beigesoft.flt.FltInt revFltPri(TrCatl pTcat, Map<String,Object> pRvs, org.beigesoft.mdl.IReqDt pRqDt) throws Exception
Reveal filter price for catl and fill it from request data.
pTcat - CatlpRvs - paramspRqDt - Request DataException - an Exceptionpublic final List<FltSpf> revFltsSpec(TrCatl pTcat, Map<String,Object> pRvs, org.beigesoft.mdl.IReqDt pRqDt) throws Exception
Reveal filters specifics for given catl and fill it from request data.
pTcat - CatlpRvs - paramspRqDt - Request DataException - an Exceptionpublic final List<ChoSp> retAllChSpec(Map<String,Object> pRvs, ChoSpTy pChoSpTy) throws Exception
Retrieve all choseeable specifics.
pRvs - paramspChoSpTy - Ch-Spec TypeException - an Exceptionpublic final ChoSp fndChoSpById(List<ChoSp> pChoSps, Long pId)
Find chooseable specifics in given list by ID.
pChoSps - List Ch-SpecpId - Idpublic final org.beigesoft.flt.FltItms<CatGs> revFltCatl(TrCatl pTcat, Map<String,Object> pRvs, org.beigesoft.mdl.IReqDt pRqDt) throws Exception
Reveal filter catl for catl and fill it from request data.
pTcat - CatlpRvs - paramspRqDt - Request DataException - an Exceptionpublic final String revWhePri(org.beigesoft.flt.FltInt pFltPri, BigDecimal pCuRt) throws Exception
Reveal part of where clause e.g. " and PRI<21" or empty string.
pFltPri - Flt PricepCuRt - currency rateException - an Exceptionpublic final FltsSpfWhe revWheSpec(List<FltSpf> pFltsSpf) throws Exception
Reveal part of where specifics clause e.g.: "(SPEC=3 and LNG1 in (3, 14)) or (SPEC=4 and NUM1<2.33)", and count of conditions, or null.
pFltsSpf - Flts SpecException - an Exceptionpublic final String revealWhereCatl(TrCatl pTcat, org.beigesoft.flt.FltItms<CatGs> pFltCatl) throws Exception
Reveal part of where catl clause e.g. "=12", " in (12,14)".
pTcat - CatlpFltCatl - Flt CatlException - an Exceptionpublic final String toSqlOpr(org.beigesoft.flt.EFltOpr pFltOpr) throws Exception
Convert from EFltOpr to SQL one.
pFltOpr - EFltOprException - if not foundpublic final void prpgCatlStg(TrCatl pMainCatl) throws Exception
Set filters/orders/has goods/services... for all sub-catls same as main-catl.
pMainCatl - main catlException - an Exceptionpublic final void retSubcatls(List<TrCatl> pCurLst, List<CatGs> pCatls, List<SubCat> pSubCats) throws Exception
Retrieve recursively sub-catls for current level catls.
pCurLst - Catl List currentpCatls - CatGs ListpSubCats - Catls-SubcatlsException - an Exceptionpublic final CatGs findCatGsById(List<CatGs> pCatls, Long pId) throws Exception
Find catl GS by ID.
pCatls - Catl ListpId - Catl IDException - if not foundpublic final TrCatl findTrCatlById(List<TrCatl> pCatls, Long pId)
Find trading catl by ID.
pCatls - trading catlspId - Catl IDpublic final void copSubcats(TrCatl pCatl, List<CatGs> pCatlsGs)
Copy sub-catl-GS from given catl-T to given set-CGS.
pCatl - trading catlpCatlsGs - given set-CGSpublic final CatGs findSubcatByIdInTc(TrCatl pCatl, Long pId)
Find sub-catl-GS by ID in root catl-T.
pCatl - trading catlpId - Catl IDpublic final String lazyGetQuItSpFlt() throws Exception
Lazy Get quItSpFlt.
Exception - - an exceptionpublic final String lazyGetQuItInLstCaIn() throws Exception
Lazy Get quItInLstCaIn.
Exception - - an exceptionpublic final String lazyGetQuItInLstCaTo() throws Exception
Lazy Get quItInLstCaTo.
Exception - - an exceptionpublic final String lazyGetQuItInLstCa() throws Exception
Lazy Get quItInLstCa.
Exception - - an exceptionpublic final String loadStr(String pFiNm) throws IOException
Load string file (usually SQL query).
pFiNm - file nameIOException - - IO 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.ISrvPg getSrvPg()
Getter for srvPg.
public final void setSrvPg(org.beigesoft.srv.ISrvPg pSrvPg)
Setter for srvPg.
pSrvPg - referencepublic final ISrCart getSrCart()
Getter for srCart.
public final void setSrCart(ISrCart pSrCart)
Setter for srCart.
pSrCart - referencepublic final CmpTrCatl getCmpCatls()
Getter for cmpCatls.
public final void setCmpCatls(CmpTrCatl pCmpCatls)
Setter for cmpCatls.
pCmpCatls - 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.