private void deleteOrganizationElements(final ActivityInstanceService activityInstanceService) throws SBonitaException { final IdentityService identityService = tenantAccessor.getIdentityService(); final ActorMappingService actorMappingService = tenantAccessor.getActorMappingService(); final ProfileService profileService = tenantAccessor.getProfileService(); final SupervisorMappingService supervisorService = tenantAccessor.getSupervisorService(); final ExternalIdentityMappingService externalIdentityMappingService = tenantAccessor.getExternalIdentityMappingService(); deleteCustomUserInfo(identityService); actorMappingService.deleteAllActorMembers(); profileService.deleteAllProfileMembers(); activityInstanceService.deleteAllPendingMappings(); supervisorService.deleteAllProcessSupervisors(); externalIdentityMappingService.deleteAllExternalIdentityMappings(); identityService.deleteAllUserMemberships(); identityService.deleteAllGroups(); identityService.deleteAllRoles(); identityService.deleteAllUsers(); }
private void deleteOrganizationElements(final ActivityInstanceService activityInstanceService) throws SBonitaException { final IdentityService identityService = tenantAccessor.getIdentityService(); final ActorMappingService actorMappingService = tenantAccessor.getActorMappingService(); final ProfileService profileService = tenantAccessor.getProfileService(); final SupervisorMappingService supervisorService = tenantAccessor.getSupervisorService(); final ExternalIdentityMappingService externalIdentityMappingService = tenantAccessor.getExternalIdentityMappingService(); deleteCustomUserInfo(identityService); actorMappingService.deleteAllActorMembers(); profileService.deleteAllProfileMembers(); activityInstanceService.deleteAllPendingMappings(); supervisorService.deleteAllProcessSupervisors(); externalIdentityMappingService.deleteAllExternalIdentityMappings(); identityService.deleteAllUserMemberships(); identityService.deleteAllGroups(); identityService.deleteAllRoles(); identityService.deleteAllUsers(); }