Class ProfilesImporter


  • @Component
    public class ProfilesImporter
    extends java.lang.Object
    Import profiles with mapping using Policy
    Author:
    Baptiste Mesta
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bonitasoft.engine.profile.xml.ProfilesNode convertFromXml​(java.lang.String xmlContent)  
      java.util.List<org.bonitasoft.engine.api.ImportStatus> importProfiles​(org.bonitasoft.engine.profile.xml.ProfilesNode profiles, ImportPolicy policy, long importerId)  
      protected SProfile importTheProfile​(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile, ProfileImportStrategy importStrategy)  
      java.util.List<java.lang.String> toWarnings​(java.util.List<org.bonitasoft.engine.api.ImportStatus> importProfiles)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProfilesImporter

        public ProfilesImporter​(ProfileService profileService,
                                IdentityService identityService,
                                org.bonitasoft.engine.profile.ProfilesParser profilesParser)
    • Method Detail

      • importProfiles

        public java.util.List<org.bonitasoft.engine.api.ImportStatus> importProfiles​(org.bonitasoft.engine.profile.xml.ProfilesNode profiles,
                                                                                     ImportPolicy policy,
                                                                                     long importerId)
                                                                              throws org.bonitasoft.engine.exception.ExecutionException
        Throws:
        org.bonitasoft.engine.exception.ExecutionException
      • toWarnings

        public java.util.List<java.lang.String> toWarnings​(java.util.List<org.bonitasoft.engine.api.ImportStatus> importProfiles)
      • convertFromXml

        public org.bonitasoft.engine.profile.xml.ProfilesNode convertFromXml​(java.lang.String xmlContent)
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException