Package com.atlassian.confluence.internal.api.impl.service.incrementalsync.contentmanagement.commands
Class AttachmentUpdateCommand
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.contentmanagement.commands.AttachmentUpdateCommand
- All Implemented Interfaces:
Command<AttachmentUpdateEvent,
,ContentManagementIncSyncModel> CommandCreator<AttachmentUpdateEvent,
ContentManagementIncSyncModel>
public class AttachmentUpdateCommand
extends Object
implements Command<AttachmentUpdateEvent,ContentManagementIncSyncModel>, CommandCreator<AttachmentUpdateEvent,ContentManagementIncSyncModel>
A command to handle AttachmentUpdateEvent
- Since:
- 9.5.0
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentUpdateCommand
(ContentCommandSupport commandSupport, ContentService contentService) -
Method Summary
Modifier and TypeMethodDescriptionnewCommand
(JournalEntry journalEntry) Create new command from a journal entry.newCommand
(AttachmentUpdateEvent event) Create new command from an eventvoid
processEvent
(AttachmentUpdateEvent event, Object... params) Processing an event then serialize as one or manyJournalEntry
processJournalEntries
(Collection<JournalEntry> journalEntries) DeserializeJournalEntry
to JSON representable object
-
Constructor Details
-
AttachmentUpdateCommand
-
-
Method Details
-
processEvent
Description copied from interface:Command
Processing an event then serialize as one or manyJournalEntry
- Specified by:
processEvent
in interfaceCommand<AttachmentUpdateEvent,
ContentManagementIncSyncModel>
-
processJournalEntries
public Collection<ContentManagementIncSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:Command
DeserializeJournalEntry
to JSON representable object- Specified by:
processJournalEntries
in interfaceCommand<AttachmentUpdateEvent,
ContentManagementIncSyncModel> - Returns:
-
newCommand
public Optional<Command<AttachmentUpdateEvent,ContentManagementIncSyncModel>> newCommand(AttachmentUpdateEvent event) Description copied from interface:CommandCreator
Create new command from an event- Specified by:
newCommand
in interfaceCommandCreator<AttachmentUpdateEvent,
ContentManagementIncSyncModel> - Returns:
-
newCommand
public Optional<Command<AttachmentUpdateEvent,ContentManagementIncSyncModel>> newCommand(JournalEntry journalEntry) Description copied from interface:CommandCreator
Create new command from a journal entry. Concrete class should only return newCommand
if the journalEntry is suitable for thatCommand
- Specified by:
newCommand
in interfaceCommandCreator<AttachmentUpdateEvent,
ContentManagementIncSyncModel> - Returns:
-