Package org.bonitasoft.engine.profile
Class ProfilesImporter
- java.lang.Object
-
- org.bonitasoft.engine.profile.ProfilesImporter
-
@Component public class ProfilesImporter extends java.lang.ObjectImport profiles with mapping using Policy- Author:
- Baptiste Mesta
-
-
Constructor Summary
Constructors Constructor Description ProfilesImporter(ProfileService profileService, IdentityService identityService, org.bonitasoft.engine.profile.ProfilesParser profilesParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bonitasoft.engine.profile.xml.ProfilesNodeconvertFromXml(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 SProfileimportTheProfile(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)
-
-
-
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
-
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
-
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
-
-