Class ProfileImportStrategy

java.lang.Object
org.bonitasoft.engine.profile.ProfileImportStrategy
Direct Known Subclasses:
DeleteExistingImportStrategy, FailOnDuplicateImportStrategy, IgnoreDuplicateImportStrategy, ReplaceDuplicateImportStrategy, UpdateDefaultsImportStrategy

public abstract class ProfileImportStrategy extends Object
Author:
Baptiste Mesta
  • Constructor Details

    • ProfileImportStrategy

      public ProfileImportStrategy(ProfileService profileService)
  • Method Details

    • 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()
      convert ProfileNode to SProfile
      Returns:
      the profile service