class LibraryServiceImpl implements LibraryService {

    @Override
    public synchronized List<String> getAllUsers() {
        try {
            final List<User> users = userManagerService.search(new SearchRequestImpl("",
                                                                                     1,
                                                                                     Integer.MAX_VALUE)).getResults();
            return users.stream().map(User::getIdentifier).collect(Collectors.toList());
        } catch (Exception e) {
            log.error("Error while searching all users: " + e.getClass().getCanonicalName());
            return Collections.emptyList();
        }
    }

    public  LibraryServiceImpl();
    @Inject public  LibraryServiceImpl(final OrganizationalUnitService ouService,
                              final RefactoringQueryService refactoringQueryService,
                              final LibraryPreferences preferences,
                              final AuthorizationManager authorizationManager,
                              final SessionInfo sessionInfo,
                              final ExplorerServiceHelper explorerServiceHelper,
                              final WorkspaceProjectService projectService,
                              final KieModuleService moduleService,
                              final ExamplesService examplesService,
                              @Named("ioStrategy") final IOService ioService,
                              final UserManagerService userManagerService,
                              final IndexStatusOracle indexOracle,
                              final SpaceConfigStorageRegistry spaceConfigStorageRegistry,
                              final ClusterService clusterService,
                              final ArchetypeService archetypeService);

}