public class ReplaceDuplicateImportStrategy extends ProfileImportStrategy
Constructor and Description |
---|
ReplaceDuplicateImportStrategy(ProfileService profileService) |
Modifier and Type | Method and Description |
---|---|
void |
beforeImport()
what to do before the import
|
boolean |
canCreateProfileIfNotExists(ProfileNode profile)
return whether the profile can be created if it does not exist
|
boolean |
shouldUpdateProfileEntries(ProfileNode profile,
SProfile existingProfile) |
SProfile |
whenProfileExists(long importerId,
ProfileNode profile,
SProfile existingProfile)
return the imported version of the profile
|
getProfileService
public ReplaceDuplicateImportStrategy(ProfileService profileService)
public void beforeImport()
ProfileImportStrategy
beforeImport
in class ProfileImportStrategy
public SProfile whenProfileExists(long importerId, ProfileNode profile, SProfile existingProfile) throws SProfileEntryDeletionException, SProfileMemberDeletionException, SProfileUpdateException
ProfileImportStrategy
whenProfileExists
in class ProfileImportStrategy
SProfileEntryDeletionException
SProfileMemberDeletionException
SProfileUpdateException
public boolean canCreateProfileIfNotExists(ProfileNode profile)
ProfileImportStrategy
canCreateProfileIfNotExists
in class ProfileImportStrategy
public boolean shouldUpdateProfileEntries(ProfileNode profile, SProfile existingProfile)
shouldUpdateProfileEntries
in class ProfileImportStrategy
Copyright © 2018 Bonitasoft S.A.. All rights reserved.