Class UserManagementMultiEventsCommand<T>
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.MultiEventsCommand<T,UserManagementInSyncModel,UserJournalEntryTypes>
com.atlassian.confluence.internal.api.impl.service.incrementalsync.usermanagement.commands.UserManagementMultiEventsCommand<T>
- All Implemented Interfaces:
Command<T,,UserManagementInSyncModel> CommandCreator<T,UserManagementInSyncModel>
- Direct Known Subclasses:
DirectoryEventCommandUserManagement,UserActivationEventCommandUserManagement
public abstract class UserManagementMultiEventsCommand<T>
extends MultiEventsCommand<T,UserManagementInSyncModel,UserJournalEntryTypes>
Base class for user management related events.
- Since:
- 9.2.6
-
Field Summary
FieldsFields inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.MultiEventsCommand
logger, supportedEventEntryTypesMap -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUserManagementMultiEventsCommand(UserGroupCommandSupport commandSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Optional<JournalMessage> createMessage(T event) Creates anOptionalcontaining aJournalMessageto store in the DB.newCommand(JournalEntry journalEntry, Command<T, UserManagementInSyncModel> command) voidprocessEvent(T event, Object... params) Processing an event then serialize as one or manyJournalEntryMethods inherited from class com.atlassian.confluence.internal.api.impl.service.incrementalsync.MultiEventsCommand
getSupportedEventEntryTypesMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.internal.api.service.incrementalsync.Command
processJournalEntriesMethods inherited from interface com.atlassian.confluence.internal.api.service.incrementalsync.CommandCreator
newCommand, newCommand, shouldProcess
-
Field Details
-
commandSupport
-
-
Constructor Details
-
UserManagementMultiEventsCommand
-
-
Method Details
-
createMessage
Creates anOptionalcontaining aJournalMessageto store in the DB.- Parameters:
event- the event to process- Returns:
- an
Optionalcontaining theJournalMessage, orOptional.empty()if we don't want to store the value
-
processEvent
Description copied from interface:CommandProcessing an event then serialize as one or manyJournalEntry- Parameters:
event-
-
newCommand
public Optional<Command<T,UserManagementInSyncModel>> newCommand(JournalEntry journalEntry, Command<T, UserManagementInSyncModel> command)
-