public class ContractFacadeClient extends AbstractContractFacadeClient
This class provides common methods that this and other utility class to the Contract facade can use. This class also provides a set of convenient Java API to represent particular Contract operations. This set of Java API also includes APIs for Web based requests to transform the name value pair request into the appropriate request documents.
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
ContractFacadeClient()
Creates an instance of the client to communicate with the Contract facade.
|
ContractFacadeClient(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 |
---|---|
ContractType |
getContract(long contractId)
This method returns the contract that matches the contract id specified.
|
java.util.List |
getEntitledContracts()
This method returns a list of contracts which are entitled for current user.
|
getBusinessAccount, getBusinessAccount, getBusinessAccount, getContract, getContract, getContract
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public ContractFacadeClient()
public ContractFacadeClient(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 ContractType getContract(long contractId) throws ContractException
contractId
- The contract ID of the contract to fetch.ContractException
public java.util.List getEntitledContracts() throws ContractException
ContractException