Package org.bonitasoft.engine.profile
Class ProfileImportStrategy
- java.lang.Object
-
- org.bonitasoft.engine.profile.ProfileImportStrategy
-
- Direct Known Subclasses:
DeleteExistingImportStrategy,FailOnDuplicateImportStrategy,IgnoreDuplicateImportStrategy,ReplaceDuplicateImportStrategy,UpdateDefaultsImportStrategy
public abstract class ProfileImportStrategy extends java.lang.Object- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description ProfileImportStrategy(ProfileService profileService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidbeforeImport()what to do before the importabstract booleancanCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)return whether the profile can be created if it does not existprotected ProfileServicegetProfileService()convertProfileNodetoSProfileabstract SProfilewhenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile)return the imported version of the profile
-
-
-
Constructor Detail
-
ProfileImportStrategy
public ProfileImportStrategy(ProfileService profileService)
-
-
Method Detail
-
beforeImport
public abstract void beforeImport() throws org.bonitasoft.engine.exception.ExecutionExceptionwhat to do before the import- Throws:
org.bonitasoft.engine.exception.ExecutionException
-
whenProfileExists
public abstract SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws org.bonitasoft.engine.exception.ExecutionException, SProfileMemberDeletionException, SProfileUpdateException
return the imported version of the profile- Throws:
org.bonitasoft.engine.exception.ExecutionExceptionSProfileMemberDeletionExceptionSProfileUpdateException
-
canCreateProfileIfNotExists
public abstract boolean canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
return whether the profile can be created if it does not exist
-
getProfileService
protected ProfileService getProfileService()
convertProfileNodetoSProfile- Returns:
- the profile service
-
-