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.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionUserRemovingEventCommand
(UserGroupCommandSupport commandSupport, CrowdUserDirectoryHelper crowdUserDirectoryHelper, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, UserAccessor userAccessor, com.atlassian.crowd.embedded.spi.MembershipDao membershipDao) -
Method Summary
Modifier and TypeMethodDescriptionnewCommand
(JournalEntry journalEntry) Create new command from a journal entry.newCommand
(UserRemovingEvent event) Create new command from an eventvoid
processEvent
(UserRemovingEvent event, Object... parameters) Processing an event then serialize as one or manyJournalEntry
processJournalEntries
(Collection<JournalEntry> journalEntries) DeserializeJournalEntry
to JSON representable object
-
Constructor Details
-
UserRemovingEventCommand
public UserRemovingEventCommand(UserGroupCommandSupport commandSupport, CrowdUserDirectoryHelper crowdUserDirectoryHelper, CrowdDirectoryEntityHelper crowdDirectoryEntityHelper, UserAccessor userAccessor, com.atlassian.crowd.embedded.spi.MembershipDao membershipDao)
-
-
Method Details
-
processEvent
Description copied from interface:Command
Processing an event then serialize as one or manyJournalEntry
- Specified by:
processEvent
in interfaceCommand<UserRemovingEvent,
UserManagementInSyncModel>
-
processJournalEntries
public Collection<UserManagementInSyncModel> processJournalEntries(Collection<JournalEntry> journalEntries) Description copied from interface:Command
DeserializeJournalEntry
to JSON representable object- Specified by:
processJournalEntries
in interfaceCommand<UserRemovingEvent,
UserManagementInSyncModel> - Returns:
-
newCommand
public Optional<Command<UserRemovingEvent,UserManagementInSyncModel>> newCommand(UserRemovingEvent event) Description copied from interface:CommandCreator
Create new command from an event- Specified by:
newCommand
in interfaceCommandCreator<UserRemovingEvent,
UserManagementInSyncModel> - Returns:
-
newCommand
public Optional<Command<UserRemovingEvent,UserManagementInSyncModel>> 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
- Specified by:
newCommand
in interfaceCommandCreator<UserRemovingEvent,
UserManagementInSyncModel> - Returns:
-