Class ASensiVectorSubstitutionRestService<T extends SensiVectorSubstitutionDTO>
- java.lang.Object
-
- com.activeviam.risk.ref.rest.services.impl.ASensiVectorSubstitutionRestService<T>
-
- Type Parameters:
T
- T
- All Implemented Interfaces:
ISensiVectorSubstitutionRestService<T>
- Direct Known Subclasses:
SensiVectorSubstitutionRestService
,SignOffSensiVectorSubstitutionRestService
public abstract class ASensiVectorSubstitutionRestService<T extends SensiVectorSubstitutionDTO> extends Object implements ISensiVectorSubstitutionRestService<T>
Abstract implementation of ISensiVectorSubstitutionRestService
-
-
Field Summary
Fields Modifier and Type Field Description protected com.qfs.store.IDatastore
datastore
protected String
sensiStore
-
Constructor Summary
Constructors Constructor Description ASensiVectorSubstitutionRestService(com.qfs.store.IDatastore datastore, String sensiStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.qfs.condition.ICondition
generateSensiCondition(SensiVectorSubstitutionDTO dto, String regexp)
Generate the ICondition used to retrieve the data corresponding to the sensitivities to substitutejavax.ws.rs.core.Response
getPreviousAsOfDates(String tradeId, String asOfDate, String riskFactor)
RESTFul call to retrieve the previous as of dates for a given set of criteriaMap<String,Object>
getPreviousDayVectors(T dto)
Retrieve the sensitivities vectors for previous dayLocalDate
parseAsOfDate(String asOfDate)
Parse the as of date string representation into a LocalDate-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.activeviam.risk.ref.rest.services.ISensiVectorSubstitutionRestService
submit
-
-
-
-
Field Detail
-
datastore
protected com.qfs.store.IDatastore datastore
-
sensiStore
protected String sensiStore
-
-
Constructor Detail
-
ASensiVectorSubstitutionRestService
public ASensiVectorSubstitutionRestService(com.qfs.store.IDatastore datastore, String sensiStore)
-
-
Method Detail
-
generateSensiCondition
public com.qfs.condition.ICondition generateSensiCondition(SensiVectorSubstitutionDTO dto, String regexp)
Generate the ICondition used to retrieve the data corresponding to the sensitivities to substitute- Parameters:
dto
- the DTOregexp
- sensitivity type in regular expression- Returns:
- ICondition
-
getPreviousDayVectors
public Map<String,Object> getPreviousDayVectors(T dto)
Retrieve the sensitivities vectors for previous day- Parameters:
dto
- the DTO- Returns:
- A map with the risk factor as key and the PnL vector as value
-
getPreviousAsOfDates
public javax.ws.rs.core.Response getPreviousAsOfDates(String tradeId, String asOfDate, String riskFactor)
RESTFul call to retrieve the previous as of dates for a given set of criteria- Specified by:
getPreviousAsOfDates
in interfaceISensiVectorSubstitutionRestService<T extends SensiVectorSubstitutionDTO>
- Parameters:
tradeId
- the tradeIdasOfDate
- the asOfDateriskFactor
- the riskFactor- Returns:
- Response
-
-