Class UserRemovingEventCommand
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.usermanagement.commands.UserRemovingEventCommand
- All Implemented Interfaces:
Command<UserRemovingEvent,,UserManagementInSyncModel> CommandCreator<UserRemovingEvent,UserManagementInSyncModel>
public class UserRemovingEventCommand
extends Object
implements Command<UserRemovingEvent,UserManagementInSyncModel>, CommandCreator<UserRemovingEvent,UserManagementInSyncModel>
A Command which handles
UserRemovingEvent in different scenarios:
- Removing a canonical user who exists in only one directory.
- Removing a canonical user in one directory un-shadows another user another directory.
- Removing a shadowed user in one directory.
- Since:
- 9.2.6
-
Constructor Summary
ConstructorsConstructorDescriptionUserRemovingEventCommand(UserGroupCommandSupport commandSupport, CrowdUserDirectoryHelper crowdUserDirectoryHelper, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, UserAccessor userAccessor, com.atlassian.crowd.embedded.spi.MembershipDao membershipDao, SpaceFilteringService spaceFilteringService) -
Method Summary
Modifier and TypeMethodDescriptionnewCommand(JournalEntry journalEntry) Create new command from a journal entry.newCommand(UserRemovingEvent event) Create new command from an eventvoidprocessEvent(UserRemovingEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntryprocessJournalEntries(Collection<JournalEntry> journalEntries) DeserializeJournalEntryto JSON representable objectMethods 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.CommandCreator
shouldProcess
-
Constructor Details
-
UserRemovingEventCommand
public UserRemovingEventCommand(UserGroupCommandSupport commandSupport, CrowdUserDirectoryHelper crowdUserDirectoryHelper, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, UserAccessor userAccessor, com.atlassian.crowd.embedded.spi.MembershipDao membershipDao, SpaceFilteringService spaceFilteringService)
-
-
Method Details
-
processEvent
Description copied from interface:CommandProcessing an event then serialize as one or manyJournalEntry- Specified by:
processEventin interfaceCommand<UserRemovingEvent,UserManagementInSyncModel> - Parameters:
event-
-
processJournalEntries
public Collection<UserManagementInSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:CommandDeserializeJournalEntryto JSON representable object- Specified by:
processJournalEntriesin interfaceCommand<UserRemovingEvent,UserManagementInSyncModel> - Parameters:
journalEntries-- Returns:
-
newCommand
public Optional<Command<UserRemovingEvent,UserManagementInSyncModel>> newCommand(UserRemovingEvent event) Description copied from interface:CommandCreatorCreate new command from an event- Specified by:
newCommandin interfaceCommandCreator<UserRemovingEvent,UserManagementInSyncModel> - Parameters:
event-- Returns:
-
newCommand
public Optional<Command<UserRemovingEvent,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<UserRemovingEvent,UserManagementInSyncModel> - Parameters:
journalEntry-- Returns:
-