public abstract class AbstractContractFacadeClient extends AbstractBusinessObjectDocumentFacadeClient
This class provides a set of methods that can be used to communicate with the Contract facade. This class represents a library of Contract 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 Contract facade.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
AbstractContractFacadeClient()
Creates an instance of the client to communicate with the Contract facade.
|
AbstractContractFacadeClient(BusinessContextType businessContext,
javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Contract facade.
|
Modifier and Type | Method and Description |
---|---|
ShowBusinessAccountType |
getBusinessAccount(GetBusinessAccountType aGetBusinessAccount)
This method will communicate with the Contract facade and send the specified
GetBusinessAccount.
|
ShowBusinessAccountDataAreaType |
getBusinessAccount(GetType getVerb)
This method returns the
ShowBusinessAccountDataArea when issuing the specified
get expression to fetch BusinessAccounts. |
java.util.List |
getBusinessAccount(java.lang.String expressionLanguage,
java.lang.String expression)
This method returns a list of BusinessAccounts based on the expression specified.
|
ShowContractType |
getContract(GetContractType aGetContract)
This method will communicate with the Contract facade and send the specified
GetContract.
|
ShowContractDataAreaType |
getContract(GetType getVerb)
This method returns the
ShowContractDataArea when issuing the specified
get expression to fetch Contracts. |
java.util.List |
getContract(java.lang.String expressionLanguage,
java.lang.String expression)
This method returns a list of Contracts based on the expression specified.
|
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public static final java.lang.String COPYRIGHT
public AbstractContractFacadeClient()
public AbstractContractFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
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.public ShowContractType getContract(GetContractType aGetContract)
aGetContract
- The GetContract request document.ShowContract
response document.public ShowContractDataAreaType getContract(GetType getVerb) throws ContractException
ShowContractDataArea
when issuing the specified
get expression to fetch Contracts. This method will be used by other frameworks or
methods that constructs the get expression.getVerb
- The get expression to execute.ShowContractDataArea
response when issuing the get expression.ContractException
- The ContractException
is thrown if error
information is found in the specified AcknowledgeContractDataArea
.
This will represent that there was a problem when performing the operation.public java.util.List getContract(java.lang.String expressionLanguage, java.lang.String expression) throws ContractException
expressionLanguage
- The expression language.expression
- The expression to return a list of Contracts.ContractException
- The ContractException
is thrown if error
information is found in the specified AcknowledgeContractDataArea
.
This will represent that there was a problem when performing the operation.public ShowBusinessAccountType getBusinessAccount(GetBusinessAccountType aGetBusinessAccount)
aGetBusinessAccount
- The GetBusinessAccount request document.ShowBusinessAccount
response document.public ShowBusinessAccountDataAreaType getBusinessAccount(GetType getVerb) throws com.ibm.commerce.contract.facade.client.BusinessAccountException
ShowBusinessAccountDataArea
when issuing the specified
get expression to fetch BusinessAccounts. This method will be used by other frameworks or
methods that constructs the get expression.getVerb
- The get expression to execute.ShowBusinessAccountDataArea
response when issuing the get expression.BusinessAccountException
- The BusinessAccountException
is thrown if error
information is found in the specified ShowBusinessAccountDataArea
.
This will represent that there was a problem when performing the operation.public java.util.List getBusinessAccount(java.lang.String expressionLanguage, java.lang.String expression) throws com.ibm.commerce.contract.facade.client.BusinessAccountException
expressionLanguage
- The expression language.expression
- The expression to return a list of BusinessAccounts.BusinessAccountException
- The BusinessAccountException
is thrown if error
information is found in the specified ShowBusinessAccountDataArea
.
This will represent that there was a problem when performing the operation.