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