public class ProfilesImporter
extends java.lang.Object
| Constructor and Description |
|---|
ProfilesImporter(ProfileService profileService,
IdentityService identityService,
org.bonitasoft.engine.profile.ProfilesParser profilesParser) |
| Modifier and Type | Method and Description |
|---|---|
org.bonitasoft.engine.profile.xml.ProfilesNode |
convertFromXml(java.lang.String xmlContent) |
protected SProfileEntry |
createProfileEntry(org.bonitasoft.engine.profile.xml.ParentProfileEntryNode parentEntry,
long profileId,
long parentId) |
protected SProfileEntry |
createProfileEntry(org.bonitasoft.engine.profile.xml.ProfileEntryNode childEntry,
long profileId,
long parentId) |
protected java.util.List<org.bonitasoft.engine.api.ImportError> |
importProfileEntries(ProfileService profileService,
java.util.List<org.bonitasoft.engine.profile.xml.ParentProfileEntryNode> parentProfileEntries,
long profileId) |
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) |
public ProfilesImporter(ProfileService profileService, IdentityService identityService, org.bonitasoft.engine.profile.ProfilesParser profilesParser)
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
org.bonitasoft.engine.exception.ExecutionExceptionprotected java.util.List<org.bonitasoft.engine.api.ImportError> importProfileEntries(ProfileService profileService, java.util.List<org.bonitasoft.engine.profile.xml.ParentProfileEntryNode> parentProfileEntries, long profileId) throws SProfileEntryCreationException
SProfileEntryCreationExceptionprotected SProfile importTheProfile(long importerId, org.bonitasoft.engine.profile.xml.ProfileNode profile, SProfile existingProfile, ProfileImportStrategy importStrategy) throws org.bonitasoft.engine.exception.ExecutionException, SProfileEntryDeletionException, SProfileMemberDeletionException, SProfileUpdateException, SProfileCreationException
org.bonitasoft.engine.exception.ExecutionExceptionSProfileEntryDeletionExceptionSProfileMemberDeletionExceptionSProfileUpdateExceptionSProfileCreationExceptionprotected SProfileEntry createProfileEntry(org.bonitasoft.engine.profile.xml.ParentProfileEntryNode parentEntry, long profileId, long parentId)
protected SProfileEntry createProfileEntry(org.bonitasoft.engine.profile.xml.ProfileEntryNode childEntry, long profileId, long parentId)
public java.util.List<java.lang.String> toWarnings(java.util.List<org.bonitasoft.engine.api.ImportStatus> importProfiles)
public org.bonitasoft.engine.profile.xml.ProfilesNode convertFromXml(java.lang.String xmlContent)
throws java.io.IOException
java.io.IOException