public class PostingActivityProcessor extends ExtendedSocialActivityProcessor
Modifier and Type | Field and Description |
---|---|
static int |
SUMMARY_COUNT_POSITION_DOCUMENTVERSIONADDED
The count position for "Document Version Added".
|
static int |
SUMMARY_COUNT_POSITION_POSTINGDELETED
The count position for "Posting Deleted".
|
SUMMARY_COUNT_POSITION_COMMENTADDED, SUMMARY_COUNT_POSITION_COMMENTEDITED, SUMMARY_COUNT_POSITION_COMMENTREMOVED, SUMMARY_COUNT_POSITION_FOLLOWADDED, SUMMARY_COUNT_POSITION_LIKEADDED
SUMMARY_COUNT_POSITION_UPDATED, SUMMARY_INDICATION_POSITION_CREATED, SUMMARY_INDICATION_POSITION_DELETED
Constructor and Description |
---|
PostingActivityProcessor()
Constructs a PostingActivityProcessor.
|
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.
|
int |
getDeleteCount(ActivitySummary asumm)
Returns the number of times this Posting has been deleted.
|
int |
getDocumentVersionCount(ActivitySummary asumm)
Returns the net number of Postings.
|
void |
initialize(ActivitySpecification spec)
Initialize this instance.
|
boolean |
isPostingCreated(ActivitySummary asumm)
Returns the Indication of "Posting Created".
|
boolean |
isPostingDeleted(ActivitySummary asumm)
Returns the Indication of "Posting Deleted".
|
calculateOverallActivityLevel, getIncludedActors, preUpdateDeltaTrackedActivityRecord, preUpdateInclusionTrackedActivityRecord, preUpdatePerformedActivityRecord, preUpdatePerformingTrackedActivityRecord
getCommentCount, getFollowCount, getLikeCount
calculateCompositeActivityLevel, calculateDeltaActivityLevel, calculateInclusionActivityLevel, calculatePerformedActivityLevel, deleteTrackedActivityRecord, getActivitySpecification, getActivitySummaryNumberPositions, getIncludedActors, getInstance, getPropertyTable, getSession, getUpdateCount, isCommittedActionProcessingRequired, isCreated, isDeleted, markLastViewedActivitySummaryAsPartiallyRead, markLastViewedActivitySummaryAsRead, postPrivateRecords, processCommittedAction, refreshDeltaActivitySummary, synchronizeOverallActivityLevel, updateActivityRecord, updateInclusionTrackedActivityRecord, updateInclusionTrackedActivityRecord, updatePerformedActivityRecord, updatePerformingTrackedActivityRecord, updateSpecifiedCompositeLevel, updateTrackedActivityRecordLevels, validate, verifyAllowableAction
public static final int SUMMARY_COUNT_POSITION_DOCUMENTVERSIONADDED
public static final int SUMMARY_COUNT_POSITION_POSTINGDELETED
public PostingActivityProcessor()
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 SocialActivityProcessor
spec
- The ActivitySpecification for a given implementation.IfsException
- if the operation fails.public boolean isPostingCreated(ActivitySummary asumm)
asumm
- the ActivitySummarypublic boolean isPostingDeleted(ActivitySummary asumm)
asumm
- the ActivitySummarypublic int getDocumentVersionCount(ActivitySummary asumm)
asumm
- the ActivitySummary containing the summary of
social activitypublic int getDeleteCount(ActivitySummary asumm)
If we ever add support for restoring a previously deleted Posting, the count returned here will reflect the number of times the Posting was deleted.
asumm
- the ActivitySummary containing the summary of
social activitypublic void applyActionToActivitySummaryDelta(ActivitySummary deltaSumm, ActivitySummary parSumm, Action action) throws IfsException
applyActionToActivitySummaryDelta
in class SocialActivityProcessor
deltaSumm
- the target ActivitySummary DeltaparSumm
- the target ActivitySummaryaction
- Action to add to the summaryIfsException
- if the operation fails.protected void getActivitySummaryCountPositions(List<Integer> countList)
getActivitySummaryCountPositions
in class SocialActivityProcessor
countList
- the list that holds the set of Count Positionsprotected void getActivitySummaryIndicationPositions(List<Integer> indList)
getActivitySummaryIndicationPositions
in class SocialActivityProcessor
indList
- the list that holds the set of Indication PositionsCopyright © 2023. All rights reserved.