Package org.bonitasoft.engine.profile
Class FailOnDuplicateImportStrategy
- java.lang.Object
-
- org.bonitasoft.engine.profile.ProfileImportStrategy
-
- org.bonitasoft.engine.profile.FailOnDuplicateImportStrategy
-
public class FailOnDuplicateImportStrategy extends ProfileImportStrategy
- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description FailOnDuplicateImportStrategy(ProfileService profileService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeImport()
what to do before the importboolean
canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
return whether the profile can be created if it does not existSProfile
whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile)
return the imported version of the profile-
Methods inherited from class org.bonitasoft.engine.profile.ProfileImportStrategy
getProfileService
-
-
-
-
Constructor Detail
-
FailOnDuplicateImportStrategy
public FailOnDuplicateImportStrategy(ProfileService profileService)
-
-
Method Detail
-
beforeImport
public void beforeImport()
Description copied from class:ProfileImportStrategy
what to do before the import- Specified by:
beforeImport
in classProfileImportStrategy
-
whenProfileExists
public SProfile whenProfileExists(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile) throws org.bonitasoft.engine.exception.ExecutionException
Description copied from class:ProfileImportStrategy
return the imported version of the profile- Specified by:
whenProfileExists
in classProfileImportStrategy
- Throws:
org.bonitasoft.engine.exception.ExecutionException
-
canCreateProfileIfNotExists
public boolean canCreateProfileIfNotExists(org.bonitasoft.engine.profile.xml.ProfileNode profile)
Description copied from class:ProfileImportStrategy
return whether the profile can be created if it does not exist- Specified by:
canCreateProfileIfNotExists
in classProfileImportStrategy
-
-