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(ExportedProfile exportedProfile)
return the imported version of the exportedProfile
|
protected ProfileService |
getProfileService()
convert
ExportedProfile to SProfile |
abstract boolean |
shouldUpdateProfileEntries(ExportedProfile exportedProfile,
org.bonitasoft.engine.profile.model.SProfile existingProfile) |
abstract org.bonitasoft.engine.profile.model.SProfile |
whenProfileExists(long importerId,
ExportedProfile exportedProfile,
org.bonitasoft.engine.profile.model.SProfile existingProfile)
return the imported version of the exportedProfile
|
public ProfileImportStrategy(ProfileService profileService)
public abstract void beforeImport()
throws ExecutionException
ExecutionExceptionpublic abstract org.bonitasoft.engine.profile.model.SProfile whenProfileExists(long importerId, ExportedProfile exportedProfile, org.bonitasoft.engine.profile.model.SProfile existingProfile) throws ExecutionException, org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException, org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException, org.bonitasoft.engine.profile.exception.profile.SProfileUpdateException
public abstract boolean canCreateProfileIfNotExists(ExportedProfile exportedProfile)
protected ProfileService getProfileService()
ExportedProfile to SProfilepublic abstract boolean shouldUpdateProfileEntries(ExportedProfile exportedProfile, org.bonitasoft.engine.profile.model.SProfile existingProfile)
Copyright © 2015 Bonitasoft S.A.. All rights reserved.