public class ExternalIdCheckingGroupActionStrategy extends AbstractGroupActionStrategy
DefaultGroupActionStrategy
, mostly related to groups of type
GroupType.LEGACY_ROLE
, so it is not intended as a drop in replacement for
existing LDAP directories, even if they support the notion of external ids for groups.NO_OP
Constructor and Description |
---|
ExternalIdCheckingGroupActionStrategy() |
Modifier and Type | Method and Description |
---|---|
DirectoryCacheChangeOperations.GroupsToAddUpdateReplace |
decide(InternalDirectoryGroup internalGroup,
InternalDirectoryGroup groupMatchedByExternalId,
Group remoteGroup,
Date syncStartDate,
long directoryId) |
addGroup, replaceGroup, updateGroup, wasGroupUpdatedAfterSearchStart
public ExternalIdCheckingGroupActionStrategy()
public DirectoryCacheChangeOperations.GroupsToAddUpdateReplace decide(@Nullable InternalDirectoryGroup internalGroup, @Nullable InternalDirectoryGroup groupMatchedByExternalId, Group remoteGroup, Date syncStartDate, long directoryId) throws OperationFailedException
internalGroup
- the group matched by name from the internal directory or null if the group isn't present yetgroupMatchedByExternalId
- the group matched by external id from the internal directory or null if there were no matches,
only applicable for directories supporting special handling for groups with external idsremoteGroup
- the group from the remote directorysyncStartDate
- the date at which the synchronisation was started, used to check for local modifications after
sync startdirectoryId
- the id of the remote directoryOperationFailedException
- if the group can't be correctly handledCopyright © 2020 Atlassian. All rights reserved.