Package org.bonitasoft.engine.profile
Class ProfilesImporter
java.lang.Object
org.bonitasoft.engine.profile.ProfilesImporter
Import profiles with mapping using Policy
- Author:
- Baptiste Mesta
-
Constructor Summary
ConstructorsConstructorDescriptionProfilesImporter(ProfileService profileService, IdentityService identityService, org.bonitasoft.engine.profile.ProfilesParser profilesParser) -
Method Summary
Modifier and TypeMethodDescriptionorg.bonitasoft.engine.profile.xml.ProfilesNodeconvertFromXml(String xmlContent) List<org.bonitasoft.engine.api.ImportStatus>importProfiles(org.bonitasoft.engine.profile.xml.ProfilesNode profiles, ImportPolicy policy, long importerId) protected SProfileimportTheProfile(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile, ProfileImportStrategy importStrategy)
-
Constructor Details
-
ProfilesImporter
public ProfilesImporter(ProfileService profileService, IdentityService identityService, org.bonitasoft.engine.profile.ProfilesParser profilesParser)
-
-
Method Details
-
importProfiles
public 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
-
importTheProfile
protected SProfile importTheProfile(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile, ProfileImportStrategy importStrategy) throws org.bonitasoft.engine.exception.ExecutionException, SProfileMemberDeletionException, SProfileUpdateException, SProfileCreationException - Throws:
org.bonitasoft.engine.exception.ExecutionExceptionSProfileMemberDeletionExceptionSProfileUpdateExceptionSProfileCreationException
-
convertFromXml
public org.bonitasoft.engine.profile.xml.ProfilesNode convertFromXml(String xmlContent) throws IOException - Throws:
IOException
-