public class ProfilesImporter extends Object
| Constructor and Description |
|---|
ProfilesImporter(ProfileService profileService,
IdentityService identityService,
ProfilesParser profilesParser) |
| Modifier and Type | Method and Description |
|---|---|
ProfilesNode |
convertFromXml(String xmlContent) |
protected SProfileEntry |
createProfileEntry(ParentProfileEntryNode parentEntry,
long profileId,
long parentId) |
protected SProfileEntry |
createProfileEntry(ProfileEntryNode childEntry,
long profileId,
long parentId) |
protected List<ImportError> |
importProfileEntries(ProfileService profileService,
List<ParentProfileEntryNode> parentProfileEntries,
long profileId) |
List<ImportStatus> |
importProfiles(ProfilesNode profiles,
ImportPolicy policy,
long importerId) |
protected SProfile |
importTheProfile(long importerId,
ProfileNode profile,
SProfile existingProfile,
ProfileImportStrategy importStrategy) |
List<String> |
toWarnings(List<ImportStatus> importProfiles) |
public ProfilesImporter(ProfileService profileService, IdentityService identityService, ProfilesParser profilesParser)
public List<ImportStatus> importProfiles(ProfilesNode profiles, ImportPolicy policy, long importerId) throws ExecutionException
ExecutionExceptionprotected List<ImportError> importProfileEntries(ProfileService profileService, List<ParentProfileEntryNode> parentProfileEntries, long profileId) throws SProfileEntryCreationException
SProfileEntryCreationExceptionprotected SProfile importTheProfile(long importerId, ProfileNode profile, SProfile existingProfile, ProfileImportStrategy importStrategy) throws ExecutionException, SProfileEntryDeletionException, SProfileMemberDeletionException, SProfileUpdateException, SProfileCreationException
protected SProfileEntry createProfileEntry(ParentProfileEntryNode parentEntry, long profileId, long parentId)
protected SProfileEntry createProfileEntry(ProfileEntryNode childEntry, long profileId, long parentId)
public List<String> toWarnings(List<ImportStatus> importProfiles)
public ProfilesNode convertFromXml(String xmlContent) throws IOException
IOExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.