Class PermissionedSubscriptionRequestFactory
java.lang.Object
com.caplin.motif.fx.ret.pricing.extension.subscription.PermissionedSubscriptionRequestFactory
- All Implemented Interfaces:
SubscriptionRequestFactory
public class PermissionedSubscriptionRequestFactory
extends Object
implements SubscriptionRequestFactory
A
SubscriptionRequestFactory
which queries the UserManager
to find the
username for the subscription.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.caplin.motif.fx.ret.pricing.provider.SubscriptionRequestFactory
SubscriptionRequestFactory.Context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.caplin.ret.trapi.rates.SubscriptionRequest
createFxRatesSubscriptionRequest
(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo) You should use this method to return a newSubscriptionRequest
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 newSubscriptionRequest
object for Commodities rates.void
This notifies theSubscriptionRequestFactory
that it is about to be loaded.
-
Constructor Details
-
PermissionedSubscriptionRequestFactory
public PermissionedSubscriptionRequestFactory()
-
-
Method Details
-
initialise
Description copied from interface: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.- Specified by:
initialise
in interfaceSubscriptionRequestFactory
-
createFxRatesSubscriptionRequest
public com.caplin.ret.trapi.rates.SubscriptionRequest createFxRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.FXSubjectInfoImpl subjectInfo) throws SubscriptionRequestException Description copied from interface:SubscriptionRequestFactory
You should use this method to return a new
SubscriptionRequest
object for FX rates.- Specified by:
createFxRatesSubscriptionRequest
in interfaceSubscriptionRequestFactory
- Returns:
- a new
SubscriptionRequest
- Throws:
SubscriptionRequestException
-
createMetalRatesSubscriptionRequest
public com.caplin.ret.trapi.rates.SubscriptionRequest createMetalRatesSubscriptionRequest(com.caplin.motif.fx.ret.pricing.subject.MetalSubjectInfoImpl subjectInfo) throws SubscriptionRequestException Description copied from interface:SubscriptionRequestFactory
You should use this method to return a newSubscriptionRequest
object for Commodities rates.- Specified by:
createMetalRatesSubscriptionRequest
in interfaceSubscriptionRequestFactory
- Returns:
- a new
SubscriptionRequest
- Throws:
SubscriptionRequestException
-