Class GlobalPermissionCommand
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.MultiEventsCommand<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel,GlobalPermissionJournalEntryTypes>
com.atlassian.confluence.internal.api.impl.service.incrementalsync.globalpermissionmanagement.commands.GlobalPermissionCommand
- All Implemented Interfaces:
Command<GlobalPermissionChangeEvent,
,GlobalPermissionManagementIncSyncModel> CommandCreator<GlobalPermissionChangeEvent,
GlobalPermissionManagementIncSyncModel>
public class GlobalPermissionCommand
extends MultiEventsCommand<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel,GlobalPermissionJournalEntryTypes>
Command for handling
GlobalPermissionRemoveEvent
and GlobalPermissionSaveEvent
- Since:
- 9.3.0
-
Field Summary
Fields inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.MultiEventsCommand
logger, supportedEventEntryTypesMap
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalPermissionCommand
(GlobalPermissionCommandSupport commandSupport, SpacePermissionOperationKeyConverter globalPermissionOperationKeyConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<Class<? extends GlobalPermissionChangeEvent>,
GlobalPermissionJournalEntryTypes> Provide a map of all supported eventsnewCommand
(JournalEntry journalEntry) Create new command from a journal entry.Create new command from an eventvoid
processEvent
(GlobalPermissionChangeEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntry
processJournalEntries
(Collection<JournalEntry> journalEntries) DeserializeJournalEntry
to JSON representable object
-
Constructor Details
-
GlobalPermissionCommand
public GlobalPermissionCommand(GlobalPermissionCommandSupport commandSupport, SpacePermissionOperationKeyConverter globalPermissionOperationKeyConverter)
-
-
Method Details
-
getSupportedEventEntryTypesMap
protected Map<Class<? extends GlobalPermissionChangeEvent>,GlobalPermissionJournalEntryTypes> getSupportedEventEntryTypesMap()Description copied from class:MultiEventsCommand
Provide a map of all supported events- Specified by:
getSupportedEventEntryTypesMap
in classMultiEventsCommand<GlobalPermissionChangeEvent,
GlobalPermissionManagementIncSyncModel, GlobalPermissionJournalEntryTypes> - Returns:
-
processEvent
Description copied from interface:Command
Processing an event then serialize as one or manyJournalEntry
-
processJournalEntries
public Collection<GlobalPermissionManagementIncSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:Command
DeserializeJournalEntry
to JSON representable object- Returns:
-
newCommand
public Optional<Command<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel>> newCommand(GlobalPermissionChangeEvent event) Description copied from interface:CommandCreator
Create new command from an event- Returns:
-
newCommand
public Optional<Command<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel>> 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
- Returns:
-