Interface Command<T,M extends IncrementalSyncModel>
- Type Parameters:
T
- Event object
- All Known Implementing Classes:
AbstractLabelCommand
,AbstractLikeCommand
,ApplicationUpdatedEventCommand
,AttachmentUpdateCommand
,ContentCreateCommand
,ContentManagementMultiEventsCommand
,ContentPermissionChangeCommand
,ContentRemoveCommand
,ContentUpdateCommand
,CrowdUserCreatedCommand
,DirectoryEventCommandUserManagement
,GlobalPermissionCommand
,GroupCreatedEventCommand
,GroupEventCommand
,GroupMembershipsCreatedEventCommand
,GroupMembershipsDeletedEventCommand
,GroupMembershipsEventCommand
,GroupRemovingEventCommand
,LabelAddCommand
,LabelRemoveCommand
,LikeCreatedCommand
,LikeRemovedCommand
,MultiEventsCommand
,PostUserRenamedEventCommand
,SpaceEventsCommand
,SpaceFilteringCommand
,SpaceImportCommand
,SpacePermissionChangeCommand
,SpaceRemoveCommand
,UserActivationEventCommandUserManagement
,UserEventCommand
,UserManagementMultiEventsCommand
,UserRemovingEventCommand
,UserSpaceImportCommand
public interface Command<T,M extends IncrementalSyncModel>
concrete Command class will be associated with an event. A Command will have 2 responsibility
- Process event then put into JournalQueue. It means one event could generate multiple entry in the queue
- Able to process
JournalEntry
back to an concrete instance of IncrementalSyncModel
which we can send to
client as JSON- Since:
- 9.2.6
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processEvent
(T event, Object... parameters) Processing an event then serialize as one or manyJournalEntry
processJournalEntries
(Collection<JournalEntry> journalEntries) DeserializeJournalEntry
to JSON representable object
-
Method Details
-
processEvent
Processing an event then serialize as one or manyJournalEntry
- Parameters:
event
-
-
processJournalEntries
DeserializeJournalEntry
to JSON representable object- Parameters:
journalEntries
-- Returns:
-