Class CrowdUserCreatedCommand
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.usermanagement.commands.CrowdUserCreatedCommand
- All Implemented Interfaces:
Command<com.atlassian.crowd.event.user.UserCreatedEvent,,UserManagementInSyncModel> CommandCreator<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>
public class CrowdUserCreatedCommand
extends Object
implements Command<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>, CommandCreator<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>
A Command which handles
UserCreatedEvent- Since:
- 9.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionCrowdUserCreatedCommand(UserGroupCommandSupport commandSupport, PersonFactory personFactory) -
Method Summary
Modifier and TypeMethodDescriptionOptional<Command<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>> newCommand(JournalEntry journalEntry) Create new command from a journal entry.Optional<Command<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>> newCommand(com.atlassian.crowd.event.user.UserCreatedEvent event) Create new command from an eventvoidprocessEvent(com.atlassian.crowd.event.user.UserCreatedEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntryprocessJournalEntries(Collection<JournalEntry> journalEntries) DeserializeJournalEntryto JSON representable object
-
Constructor Details
-
CrowdUserCreatedCommand
-
-
Method Details
-
processEvent
public void processEvent(com.atlassian.crowd.event.user.UserCreatedEvent event, Object... parameters) Description copied from interface:CommandProcessing an event then serialize as one or manyJournalEntry- Specified by:
processEventin interfaceCommand<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>
-
processJournalEntries
public Collection<UserManagementInSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:CommandDeserializeJournalEntryto JSON representable object- Specified by:
processJournalEntriesin interfaceCommand<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel> - Returns:
-
newCommand
public Optional<Command<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>> newCommand(com.atlassian.crowd.event.user.UserCreatedEvent event) Description copied from interface:CommandCreatorCreate new command from an event- Specified by:
newCommandin interfaceCommandCreator<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel> - Returns:
-
newCommand
public Optional<Command<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel>> 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- Specified by:
newCommandin interfaceCommandCreator<com.atlassian.crowd.event.user.UserCreatedEvent,UserManagementInSyncModel> - Returns:
-