Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTEXT_NAME
The name that will identify this context in the CTXDATA table.
|
static java.lang.String |
CONTRACT_SEP
The delimiter used in lists of contract IDs.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
KEY_CONTRACT_ID
The name of the contractId URL parameter in
ActivityData objects. |
Modifier and Type | Method and Description |
---|---|
void |
clearTradingAgreements()
Clears the trading agreements from the entitlement context.
|
java.lang.Long |
getActiveOrganizationId()
Gets the active organization for the current store.
|
java.lang.String |
getCurrentTradingAgreementIds()
Gets the contracts that are currently in use in this context.
|
java.lang.String |
getEligibleTradingAgreementIds()
Gets the contracts that can be used in this context.
|
java.lang.String |
getSessionTradingAgreementIds()
Gets the contracts in this context that are associated with the current session.
|
void |
invalidateTradingAgreement(java.lang.String id)
Removes a contract from this context.
|
java.lang.String |
reloadEligibleTradingAgreementIds()
Reload from the database the contracts that can be used in this context.
|
void |
setActiveOrganizationId(java.lang.Long nOrganizationId)
Sets the active organization for the current store.
|
void |
setCurrentTradingAgreementIds(java.lang.String strIds)
Sets the contract IDs that are currently in use.
|
void |
setSessionTradingAgreementIds(java.lang.String strIds)
Sets the contracts in this context that are associated with the current session.
|
copyContext, getActivityToken, getContextName, validate
static final java.lang.String COPYRIGHT
static final java.lang.String CONTEXT_NAME
static final java.lang.String CONTRACT_SEP
static final java.lang.String KEY_CONTRACT_ID
ActivityData
objects.java.lang.String getCurrentTradingAgreementIds()
CONTRACT_SEP
java.lang.String getEligibleTradingAgreementIds()
CONTRACT_SEP
java.lang.String reloadEligibleTradingAgreementIds()
CONTRACT_SEP
java.lang.String getSessionTradingAgreementIds()
CONTRACT_SEP
void setCurrentTradingAgreementIds(java.lang.String strIds)
strIds
- the list of the contract IDs currently in useCONTRACT_SEP
void setSessionTradingAgreementIds(java.lang.String strIds)
strIds
- the list of contract IDsCONTRACT_SEP
void invalidateTradingAgreement(java.lang.String id) throws BusinessContextException
id
- the ID of the contract to be removedBusinessContextException
- if there is problem invalidating the contract IDvoid clearTradingAgreements()
java.lang.Long getActiveOrganizationId()
void setActiveOrganizationId(java.lang.Long nOrganizationId)
nOrganizationId
- The member ID of the organization.