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 File |
getFileContainingMD5(long tenantId) |
static List<ExportedProfile> |
getProfilesFromXML(String xmlContent,
Parser parser) |
protected List<ImportError> |
importProfileEntries(ProfileService profileService,
List<ExportedParentProfileEntry> parentProfileEntries,
long profileId) |
List<ImportStatus> |
importProfiles(long importerId) |
protected org.bonitasoft.engine.profile.model.SProfile |
importTheProfile(long importerId,
ExportedProfile exportedProfile,
org.bonitasoft.engine.profile.model.SProfile existingProfile) |
static List<String> |
toWarnings(List<ImportStatus> importProfiles) |
public ProfilesImporter(ProfileService profileService, IdentityService identityService, List<ExportedProfile> exportedProfiles, ImportPolicy 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.SProfile importTheProfile(long importerId, ExportedProfile exportedProfile, org.bonitasoft.engine.profile.model.SProfile existingProfile) throws ExecutionException, org.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionException, org.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionException, org.bonitasoft.engine.profile.exception.profile.SProfileUpdateException, org.bonitasoft.engine.profile.exception.profile.SProfileCreationException
ExecutionExceptionorg.bonitasoft.engine.profile.exception.profileentry.SProfileEntryDeletionExceptionorg.bonitasoft.engine.profile.exception.profilemember.SProfileMemberDeletionExceptionorg.bonitasoft.engine.profile.exception.profile.SProfileUpdateExceptionorg.bonitasoft.engine.profile.exception.profile.SProfileCreationExceptionprotected 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 IOException
IOExceptionpublic static File getFileContainingMD5(long tenantId) throws BonitaHomeNotSetException, IOException
BonitaHomeNotSetExceptionIOExceptionCopyright © 2016 Bonitasoft S.A.. All rights reserved.