Package org.bonitasoft.engine.profile
Class ProfileImportStrategy
java.lang.Object
org.bonitasoft.engine.profile.ProfileImportStrategy
- Direct Known Subclasses:
DeleteExistingImportStrategy,FailOnDuplicateImportStrategy,IgnoreDuplicateImportStrategy,ReplaceDuplicateImportStrategy,UpdateDefaultsImportStrategy
- Author:
- Baptiste Mesta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidwhat 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 ProfileServiceconvertProfileNodetoSProfileabstract SProfilewhenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) return the imported version of the profile
-
Constructor Details
-
ProfileImportStrategy
-
-
Method Details
-
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
convertProfileNodetoSProfile- Returns:
- the profile service
-