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(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 FailOnDuplicateImportStrategy(ProfileService profileService)
public void beforeImport()
ProfileImportStrategybeforeImport in class ProfileImportStrategypublic SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws org.bonitasoft.engine.exception.ExecutionException
ProfileImportStrategywhenProfileExists in class ProfileImportStrategyorg.bonitasoft.engine.exception.ExecutionExceptionpublic 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