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
supportedEventEntryTypesMap -
Constructor Summary
ConstructorsConstructorDescriptionGlobalPermissionCommand(CommandSupport 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 eventvoidprocessEvent(GlobalPermissionChangeEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntryprocessJournalEntries(Collection<JournalEntry> journalEntries) DeserializeJournalEntryto JSON representable object
-
Constructor Details
-
GlobalPermissionCommand
public GlobalPermissionCommand(CommandSupport commandSupport, SpacePermissionOperationKeyConverter globalPermissionOperationKeyConverter)
-
-
Method Details
-
getSupportedEventEntryTypesMap
protected Map<Class<? extends GlobalPermissionChangeEvent>,GlobalPermissionJournalEntryTypes> getSupportedEventEntryTypesMap()Description copied from class:MultiEventsCommandProvide a map of all supported events- Specified by:
getSupportedEventEntryTypesMapin classMultiEventsCommand<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel, GlobalPermissionJournalEntryTypes> - Returns:
-
processEvent
Description copied from interface:CommandProcessing an event then serialize as one or manyJournalEntry -
processJournalEntries
public Collection<GlobalPermissionManagementIncSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:CommandDeserializeJournalEntryto JSON representable object- Returns:
-
newCommand
public Optional<Command<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel>> newCommand(GlobalPermissionChangeEvent event) Description copied from interface:CommandCreatorCreate new command from an event- Returns:
-
newCommand
public Optional<Command<GlobalPermissionChangeEvent,GlobalPermissionManagementIncSyncModel>> newCommand(JournalEntry journalEntry) Description copied from interface:CommandCreatorCreate new command from a journal entry. Concrete class should only return newCommandif the journalEntry is suitable for thatCommand- Returns:
-