Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
KEY_CONTENT_PERSONALIZATION_ID
The name of the contentPersonalizationId URL parameter in
ActivityData objects. |
static java.lang.String |
NAME
The name of the context.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentPersonalizationId()
Gets the content personalization ID to determine the user for whom to retrieve content.
|
java.lang.String |
getCurrentPersonalizationId()
Gets the content personalization ID if it is set; otherwise gets the run-as personalization ID.
|
int |
getNextRequestSequenceNumber()
Returns the next sequence number to indicate the ordering
when the audit is captured.
|
java.lang.String |
getPersonalizationId()
Gets the personalization ID for the current run-as user.
|
java.lang.Long |
getRequestIdentifier()
Returns a unique identifier to identify the request being processed.
|
TransportData |
getTransportData()
Returns the information associated with the transport that is issuing the
request.
|
void |
setContentPersonalizationId(java.lang.String strPersonalizationId)
Reserved for IBM internal use.
|
java.lang.String |
setPersonalizationId(java.lang.String strPersonalizationId)
Reserved for IBM internal use.
|
copyContext, getActivityToken, getContextName, validate
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String KEY_CONTENT_PERSONALIZATION_ID
ActivityData
objects.java.lang.Long getRequestIdentifier()
int getNextRequestSequenceNumber()
TransportData getTransportData()
java.lang.String setPersonalizationId(java.lang.String strPersonalizationId) throws BusinessContextException
Sets the personalization ID in the audit context associated with the current run-as user. The personalization ID that is returned can be different from the input personalization ID if (a) there is already a personalization ID assigned to the current guest/registered user or (b) the input personalization ID has already been used by another registered user and cannot be assigned to the current run-as registered user. For a generic user, the personalization ID that is returned will always be the same as the input personalization ID. If the input personalization ID is null, the method will reset the audit context personalization ID to null without resetting the personalization ID in the database.
strPersonalizationId
- The personalization ID.BusinessContextException
- on any other error encountered.void setContentPersonalizationId(java.lang.String strPersonalizationId) throws BusinessContextException
Sets the content personalization ID in the audit context. The content personalization ID is used to indicate the registered user for whom to retrieve content. The content personalization ID is not persisted to the database.
strPersonalizationId
- The personalization ID corresponding to the user for whom to retrieve content.BusinessContextException
- on any other error encountered.java.lang.String getPersonalizationId() throws BusinessContextException
BusinessContextException
- on any other error encountered.java.lang.String getContentPersonalizationId() throws BusinessContextException
BusinessContextException
- on any other error encountered.java.lang.String getCurrentPersonalizationId() throws BusinessContextException
BusinessContextException
- on any other error encountered.