com.ibm.commerce.subscription.facade.client
Class AbstractSubscriptionFacadeClient
- java.lang.Object
-
- com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient
-
- com.ibm.commerce.subscription.facade.client.AbstractSubscriptionFacadeClient
-
- Direct Known Subclasses:
- AbstractExternalSubscriptionFacadeClient, SubscriptionFacadeClient
public abstract class AbstractSubscriptionFacadeClient extends AbstractBusinessObjectDocumentFacadeClient
This class provides a set of methods that can be used to communicate with the Subscription facade. This class represents a library of Subscription operations that can be performed. The purpose of this class is to hide the details about constructing the business object document that represents the service request into simple Java methods. The complexity of building the request document and making the request is all managed by this client class of the Subscription facade.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.-
Fields inherited from class com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
-
-
Constructor Summary
Constructors Constructor and Description AbstractSubscriptionFacadeClient()
Creates an instance of the client to communicate with the Subscription facade.AbstractSubscriptionFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Subscription facade.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RespondSubscriptionType
changeSubscription(ChangeSubscriptionType aChangeSubscription)
This method will communicate with the Subscription facade and send the specified ChangeSubscription request.ShowSubscriptionType
getSubscription(GetSubscriptionType aGetSubscription)
This method will communicate with the Subscription facade and send the specified GetSubscription.ShowSubscriptionDataAreaType
getSubscription(GetType getVerb)
This method returns theShowSubscriptionDataArea
when issuing the specified get expression to fetch Subscriptions.java.util.List
getSubscription(java.lang.String expressionLanguage, java.lang.String expression)
This method returns a list of Subscriptions based on the expression specified.AcknowledgeSubscriptionType
processSubscription(ProcessSubscriptionType aProcessSubscription)
This method will communicate with the Subscription facade and send the specified ProcessSubscription request.-
Methods inherited from class com.ibm.commerce.foundation.client.facade.bod.AbstractBusinessObjectDocumentFacadeClient
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractSubscriptionFacadeClient
public AbstractSubscriptionFacadeClient()
Creates an instance of the client to communicate with the Subscription facade.
-
AbstractSubscriptionFacadeClient
public AbstractSubscriptionFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Subscription facade.- Parameters:
businessContext
- The default business context to associate with the messages when making requests.callbackHandler
- Used for authentication purposes so the controller can give the authentication information to the transport when required.
-
-
Method Detail
-
getSubscription
public ShowSubscriptionType getSubscription(GetSubscriptionType aGetSubscription)
This method will communicate with the Subscription facade and send the specified GetSubscription. request.- Parameters:
aGetSubscription
- The GetSubscription request document.- Returns:
- The resulting
ShowSubscription
response document.
-
processSubscription
public AcknowledgeSubscriptionType processSubscription(ProcessSubscriptionType aProcessSubscription)
This method will communicate with the Subscription facade and send the specified ProcessSubscription request.- Parameters:
aProcessSubscription
- The ProcessSubscription request document.- Returns:
- The resulting AcknowledgeSubscription response document.
-
changeSubscription
public RespondSubscriptionType changeSubscription(ChangeSubscriptionType aChangeSubscription)
This method will communicate with the Subscription facade and send the specified ChangeSubscription request.- Parameters:
aChangeSubscription
- The ChangeSubscription request document.- Returns:
- The resulting RespondSubscription response document.
-
getSubscription
public ShowSubscriptionDataAreaType getSubscription(GetType getVerb) throws SubscriptionException
This method returns theShowSubscriptionDataArea
when issuing the specified get expression to fetch Subscriptions. This method will be used by other framworks or methods that constructs the get expression.- Parameters:
getVerb
- The get expression to execute.- Returns:
- The
ShowSubscriptionDataArea
response when issuing the get expression. - Throws:
SubscriptionException
- TheSubscriptionException
is thrown if error information is found in the specifiedShowSubscriptionDataArea
. This will represent that there was a problem when performing the operation.
-
getSubscription
public java.util.List getSubscription(java.lang.String expressionLanguage, java.lang.String expression) throws SubscriptionException
This method returns a list of Subscriptions based on the expression specified.- Parameters:
expressionLanguage
- The expression lanaguage.expression
- The expression to return a list of Subscriptions.- Returns:
- The list of Subscriptions that matches the expression specified.
- Throws:
SubscriptionException
- TheSubscriptionException
is thrown if error information is found in the specifiedShowSubscriptionDataArea
. This will represent that there was a problem when performing the operation.
-
-