Package com.atlassian.confluence.internal.api.impl.service.incrementalsync.contentmanagement.commands
Class SpaceRemoveCommand
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.contentmanagement.commands.SpaceRemoveCommand
- All Implemented Interfaces:
Command<SpaceRemoveEvent,
,ContentManagementIncSyncModel> CommandCreator<SpaceRemoveEvent,
ContentManagementIncSyncModel>
public class SpaceRemoveCommand
extends Object
implements Command<SpaceRemoveEvent,ContentManagementIncSyncModel>, CommandCreator<SpaceRemoveEvent,ContentManagementIncSyncModel>
Command which handles
SpaceRemoveEvent
- Since:
- 9.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewCommand
(JournalEntry journalEntry) Create new command from a journal entry.newCommand
(SpaceRemoveEvent event) Create new command from an eventvoid
processEvent
(SpaceRemoveEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntry
processJournalEntries
(Collection<JournalEntry> journalEntries) DeserializeJournalEntry
to JSON representable object
-
Constructor Details
-
SpaceRemoveCommand
-
-
Method Details
-
processEvent
Description copied from interface:Command
Processing an event then serialize as one or manyJournalEntry
- Specified by:
processEvent
in interfaceCommand<SpaceRemoveEvent,
ContentManagementIncSyncModel>
-
processJournalEntries
public Collection<ContentManagementIncSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:Command
DeserializeJournalEntry
to JSON representable object- Specified by:
processJournalEntries
in interfaceCommand<SpaceRemoveEvent,
ContentManagementIncSyncModel> - Returns:
-
newCommand
public Optional<Command<SpaceRemoveEvent,ContentManagementIncSyncModel>> newCommand(SpaceRemoveEvent event) Description copied from interface:CommandCreator
Create new command from an event- Specified by:
newCommand
in interfaceCommandCreator<SpaceRemoveEvent,
ContentManagementIncSyncModel> - Returns:
-
newCommand
public Optional<Command<SpaceRemoveEvent,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<SpaceRemoveEvent,
ContentManagementIncSyncModel> - Returns:
-