public class ProfilesImporter extends Object
| Constructor and Description |
|---|
ProfilesImporter(ProfileService profileService,
IdentityService identityService,
List<ExportedProfile> exportedProfiles,
ImportPolicy policy) |
| Modifier and Type | Method and Description |
|---|---|
protected org.bonitasoft.engine.profile.model.SProfileEntry |
createProfileEntry(ExportedParentProfileEntry parentEntry,
long profileId,
long parentId) |
protected org.bonitasoft.engine.profile.model.SProfileEntry |
createProfileEntry(ExportedProfileEntry childEntry,
long profileId,
long parentId) |
static List<ExportedProfile> |
getProfilesFromXML(String xmlContent,
Parser parser) |
protected List<ImportError> |
importProfileEntries(ProfileService profileService,
List<ExportedParentProfileEntry> parentProfileEntries,
long profileId) |
List<ImportStatus> |
importProfiles(long importerId) |
static List<String> |
toWarnings(List<ImportStatus> importProfiles) |
public ProfilesImporter(ProfileService profileService, IdentityService identityService, List<ExportedProfile> exportedProfiles, ImportPolicy policy)
profileService - identityService - profiles - policy - public List<ImportStatus> importProfiles(long importerId) throws ExecutionException
ExecutionExceptionprotected List<ImportError> importProfileEntries(ProfileService profileService, List<ExportedParentProfileEntry> parentProfileEntries, long profileId) throws org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryCreationException
protected org.bonitasoft.engine.profile.model.SProfileEntry createProfileEntry(ExportedParentProfileEntry parentEntry, long profileId, long parentId)
protected org.bonitasoft.engine.profile.model.SProfileEntry createProfileEntry(ExportedProfileEntry childEntry, long profileId, long parentId)
public static List<String> toWarnings(List<ImportStatus> importProfiles)
public static List<ExportedProfile> getProfilesFromXML(String xmlContent, Parser parser) throws ExecutionException
ExecutionExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.