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 void
beforeImport()
what to do before the importabstract boolean
canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
return whether the profile can be created if it does not existprotected ProfileService
getProfileService()
convertProfileNode
toSProfile
abstract SProfile
whenProfileExists(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.ExecutionException
what 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.ExecutionException
SProfileMemberDeletionException
SProfileUpdateException
-
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()
convertProfileNode
toSProfile
- Returns:
- the profile service
-
-