Interface Command<T,M extends IncrementalSyncModel>
- Type Parameters:
T- Event object
- All Known Implementing Classes:
ApplicationUpdatedEventCommand,AttachmentUpdateCommand,ContentCreateCommand,ContentManagementMultiEventsCommand,ContentPermissionChangeCommand,ContentRemoveCommand,ContentUpdateCommand,CrowdUserCreatedCommand,DirectoryEventCommandUserManagement,GlobalPermissionCommand,GroupCreatedEventCommand,GroupEventCommand,GroupMembershipsCreatedEventCommand,GroupMembershipsDeletedEventCommand,GroupMembershipsEventCommand,GroupRemovingEventCommand,MultiEventsCommand,PostUserRenamedEventCommand,SpaceEventsCommand,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.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessEvent(T event, Object... parameters) Processing an event then serialize as one or manyJournalEntryprocessJournalEntries(Collection<JournalEntry> journalEntries) DeserializeJournalEntryto JSON representable object
-
Method Details
-
processEvent
Processing an event then serialize as one or manyJournalEntry- Parameters:
event-
-
processJournalEntries
DeserializeJournalEntryto JSON representable object- Parameters:
journalEntries-- Returns:
-