public class PermissionedSubscriptionRequestFactory extends java.lang.Object implements SubscriptionRequestFactory
SubscriptionRequestFactory
which queries the UserManager
to find the
username for the subscription.SubscriptionRequestFactory.Context
Constructor and Description |
---|
PermissionedSubscriptionRequestFactory() |
Modifier and Type | Method and Description |
---|---|
com.caplin.ret.trapi.rates.SubscriptionRequest |
createFxRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo)
You should use this method to return a new
SubscriptionRequest object for FX rates. |
com.caplin.ret.trapi.rates.SubscriptionRequest |
createMetalRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo)
You should use this method to return a new
SubscriptionRequest object for Commodities rates. |
void |
initialise(SubscriptionRequestFactory.Context context)
This notifies the
SubscriptionRequestFactory that it is about to be loaded. |
public PermissionedSubscriptionRequestFactory()
public void initialise(SubscriptionRequestFactory.Context context)
SubscriptionRequestFactory
This notifies the SubscriptionRequestFactory
that it is about to be loaded. This
method will be called by the system once.
You should use this method to perform any initialisation required before the
SubscriptionRequestFactory
is loaded by the system.
initialise
in interface SubscriptionRequestFactory
public com.caplin.ret.trapi.rates.SubscriptionRequest createFxRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo) throws SubscriptionRequestException
SubscriptionRequestFactory
You should use this method to return a new SubscriptionRequest
object for FX rates.
createFxRatesSubscriptionRequest
in interface SubscriptionRequestFactory
SubscriptionRequest
SubscriptionRequestException
public com.caplin.ret.trapi.rates.SubscriptionRequest createMetalRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo) throws SubscriptionRequestException
SubscriptionRequestFactory
SubscriptionRequest
object for Commodities rates.createMetalRatesSubscriptionRequest
in interface SubscriptionRequestFactory
SubscriptionRequest
SubscriptionRequestException
Copyright © 2019 Caplin Systems.