public class DeleteExistingImportStrategy extends ProfileImportStrategy
Constructor and Description |
---|
DeleteExistingImportStrategy(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 DeleteExistingImportStrategy(ProfileService profileService)
public void beforeImport() throws ExecutionException
ProfileImportStrategy
beforeImport
in class ProfileImportStrategy
ExecutionException
public SProfile whenProfileExists(long importerId, ProfileNode profile, SProfile existingProfile)
ProfileImportStrategy
whenProfileExists
in class ProfileImportStrategy
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.