public class FailOnDuplicateImportStrategy extends ProfileImportStrategy
| Constructor and Description |
|---|
FailOnDuplicateImportStrategy(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
|
getProfileServicepublic FailOnDuplicateImportStrategy(ProfileService profileService)
public void beforeImport()
ProfileImportStrategybeforeImport in class ProfileImportStrategypublic SProfile whenProfileExists(long importerId, ProfileNode profile, SProfile existingProfile) throws ExecutionException
ProfileImportStrategywhenProfileExists in class ProfileImportStrategyExecutionExceptionpublic boolean canCreateProfileIfNotExists(ProfileNode profile)
ProfileImportStrategycanCreateProfileIfNotExists in class ProfileImportStrategypublic boolean shouldUpdateProfileEntries(ProfileNode profile, SProfile existingProfile)
shouldUpdateProfileEntries in class ProfileImportStrategyCopyright © 2019 Bonitasoft S.A.. All rights reserved.