public abstract class ProfileImportStrategy
extends java.lang.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(org.bonitasoft.engine.profile.xml.ProfileNode profile)
return whether the profile can be created if it does not exist
|
protected ProfileService |
getProfileService()
convert
ProfileNode to SProfile |
abstract boolean |
shouldUpdateProfileEntries(org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile) |
abstract SProfile |
whenProfileExists(long importerId,
org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile)
return the imported version of the profile
|
public ProfileImportStrategy(ProfileService profileService)
public abstract void beforeImport()
throws org.bonitasoft.engine.exception.ExecutionException
org.bonitasoft.engine.exception.ExecutionExceptionpublic abstract SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws org.bonitasoft.engine.exception.ExecutionException, SProfileEntryDeletionException, SProfileMemberDeletionException, SProfileUpdateException
org.bonitasoft.engine.exception.ExecutionExceptionSProfileEntryDeletionExceptionSProfileMemberDeletionExceptionSProfileUpdateExceptionpublic abstract boolean canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
protected ProfileService getProfileService()
ProfileNode to SProfilepublic abstract boolean shouldUpdateProfileEntries(org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile)