Type Parameters:
E - is an event type.
M - is an incremental model.
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 CommandCreator<E,M extends IncrementalSyncModel>
Will associate with single Command. Basically, CommandCreator will check if event or journal entry is supported by the associated Command then create it.
Since:
9.3.0
  • Method Details

    • newCommand

      Optional<Command<E,M>> newCommand(E event)
      Create new command from an event
      Parameters:
      event -
      Returns:
    • newCommand

      Optional<Command<E,M>> newCommand(JournalEntry journalEntry)
      Create new command from a journal entry. Concrete class should only return new Command if the journalEntry is suitable for that Command
      Parameters:
      journalEntry -
      Returns: