Package org.bonitasoft.engine.profile
Class ReplaceDuplicateImportStrategy
java.lang.Object
org.bonitasoft.engine.profile.ProfileImportStrategy
org.bonitasoft.engine.profile.ReplaceDuplicateImportStrategy
- Author:
- Baptiste Mesta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwhat to do before the importbooleancanCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile) return whether the profile can be created if it does not existwhenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) return the imported version of the profileMethods inherited from class org.bonitasoft.engine.profile.ProfileImportStrategy
getProfileService
-
Constructor Details
-
ReplaceDuplicateImportStrategy
-
-
Method Details
-
beforeImport
public void beforeImport()Description copied from class:ProfileImportStrategywhat to do before the import- Specified by:
beforeImportin classProfileImportStrategy
-
whenProfileExists
public SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws SProfileMemberDeletionException, SProfileUpdateException Description copied from class:ProfileImportStrategyreturn the imported version of the profile- Specified by:
whenProfileExistsin classProfileImportStrategy- Throws:
SProfileMemberDeletionExceptionSProfileUpdateException
-
canCreateProfileIfNotExists
public boolean canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile) Description copied from class:ProfileImportStrategyreturn whether the profile can be created if it does not exist- Specified by:
canCreateProfileIfNotExistsin classProfileImportStrategy
-