public class ConversationActivityProcessor extends ActivityProcessor
Modifier and Type | Field and Description |
---|---|
static int |
SUMMARY_COUNT_POSITION_MESSAGEADDED
The count position for "Message Added".
|
SUMMARY_COUNT_POSITION_UPDATED, SUMMARY_INDICATION_POSITION_CREATED, SUMMARY_INDICATION_POSITION_DELETED
Constructor and Description |
---|
ConversationActivityProcessor()
Constructs a ConversationActivityProcessor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyActionToActivitySummaryDelta(ActivitySummary deltaSumm,
ActivitySummary parSumm,
Action action)
Apply an Action to an ActivitySummary delta.
|
protected void |
getActivitySummaryCountPositions(List<Integer> countList)
Gets the Count Positions in effect for this class,
by adding them to the specified List.
|
protected void |
getActivitySummaryIndicationPositions(List<Integer> indList)
Gets the Indication Positions in effect for this class,
by adding them to the specified List.
|
protected void |
getIncludedActors(PerformedActivityRecord par,
Action action,
LinkedHashMap map)
Get the set of Actors that have become included in the specified
activity as a result of this Action, and add to the specified map.
|
int |
getMessageCount(ActivitySummary asumm)
Returns the number of Messages in the Conversation.
|
void |
initialize(ActivitySpecification spec)
Initialize this instance.
|
protected boolean |
isCommittedActionProcessingRequired(ActivityRecord ar,
ActionAdapter action)
Returns indication as to whether the specified Action (which is in the
process of being executed) requires additional processing after the
Action is committed.
|
calculateCompositeActivityLevel, calculateDeltaActivityLevel, calculateInclusionActivityLevel, calculateOverallActivityLevel, calculatePerformedActivityLevel, deleteTrackedActivityRecord, getActivitySpecification, getActivitySummaryNumberPositions, getIncludedActors, getInstance, getPropertyTable, getSession, getUpdateCount, isCreated, isDeleted, markLastViewedActivitySummaryAsPartiallyRead, markLastViewedActivitySummaryAsRead, postPrivateRecords, preUpdateDeltaTrackedActivityRecord, preUpdateInclusionTrackedActivityRecord, preUpdatePerformedActivityRecord, preUpdatePerformingTrackedActivityRecord, processCommittedAction, refreshDeltaActivitySummary, synchronizeOverallActivityLevel, updateActivityRecord, updateInclusionTrackedActivityRecord, updateInclusionTrackedActivityRecord, updatePerformedActivityRecord, updatePerformingTrackedActivityRecord, updateSpecifiedCompositeLevel, updateTrackedActivityRecordLevels, validate, verifyAllowableAction
public static final int SUMMARY_COUNT_POSITION_MESSAGEADDED
public ConversationActivityProcessor()
Called from within ActivitySpecification when initializing the ActivityProcessor to use for that specific ActivitySpecification.
public void initialize(ActivitySpecification spec) throws IfsException
Called immediately after construction (via the default constructor) via reflection within ActivitySpecification.
initialize
in class ActivityProcessor
spec
- The ActivitySpecification for a given implementation.IfsException
- if the operation fails.public int getMessageCount(ActivitySummary asumm)
asumm
- the ActivitySummary containing the summary of
conversation activitypublic void applyActionToActivitySummaryDelta(ActivitySummary deltaSumm, ActivitySummary parSumm, Action action) throws IfsException
applyActionToActivitySummaryDelta
in class ActivityProcessor
deltaSumm
- the target ActivitySummary DeltaparSumm
- the target ActivitySummaryaction
- Action to add to the summaryIfsException
- if the operation fails.protected void getIncludedActors(PerformedActivityRecord par, Action action, LinkedHashMap map) throws IfsException
getIncludedActors
in class ActivityProcessor
par
- the PerformedActivityRecord being updatedaction
- the Action being executedmap
- the included Actor map, to be added toIfsException
- if the operation fails.protected boolean isCommittedActionProcessingRequired(ActivityRecord ar, ActionAdapter action) throws IfsException
If this method returns true, a RetainedEvent will be created which will later be processed by the ExecutedActionRetainedEventAgent. This agent will process the committed Action, using a set of extensibility points within the ActivityProcessor designated for committed action processing.
isCommittedActionProcessingRequired
in class ActivityProcessor
ar
- the target ActivityRecordaction
- the Action being executedIfsException
- if the operation failsprotected void getActivitySummaryCountPositions(List<Integer> countList)
getActivitySummaryCountPositions
in class ActivityProcessor
countList
- the list that holds the set of Count Positionsprotected void getActivitySummaryIndicationPositions(List<Integer> indList)
getActivitySummaryIndicationPositions
in class ActivityProcessor
indList
- the list that holds the set of Indication PositionsCopyright © 2023. All rights reserved.