public class UpdateDefaultsImportStrategy extends ProfileImportStrategy
| Constructor and Description |
|---|
UpdateDefaultsImportStrategy(ProfileService profileService) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeImport()
what to do before the import
|
boolean |
canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
return whether the profile can be created if it does not exist
|
boolean |
shouldUpdateProfileEntries(org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile) |
SProfile |
whenProfileExists(long importerId,
org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile)
return the imported version of the profile
|
getProfileServicepublic UpdateDefaultsImportStrategy(ProfileService profileService)
public void beforeImport()
ProfileImportStrategybeforeImport in class ProfileImportStrategypublic SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws SProfileEntryDeletionException, SProfileMemberDeletionException, SProfileUpdateException
ProfileImportStrategywhenProfileExists in class ProfileImportStrategySProfileEntryDeletionExceptionSProfileMemberDeletionExceptionSProfileUpdateExceptionpublic boolean canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
ProfileImportStrategycanCreateProfileIfNotExists in class ProfileImportStrategypublic boolean shouldUpdateProfileEntries(org.bonitasoft.engine.profile.xml.ProfileNode profile,
SProfile existingProfile)
shouldUpdateProfileEntries in class ProfileImportStrategy