class DefaultUserResourcesProvider implements DefaultResourcesProvider {

  @Override
  public List<ResourceImpl> getResources(String accountId)
      throws ServerException, NotFoundException {
    return asList(
        new ResourceImpl(TimeoutResourceType.ID, timeout, TimeoutResourceType.UNIT),
        new ResourceImpl(RamResourceType.ID, ramPerUser, RamResourceType.UNIT),
        new ResourceImpl(WorkspaceResourceType.ID, workspacesPerUser, WorkspaceResourceType.UNIT),
        new ResourceImpl(RuntimeResourceType.ID, runtimesPerUser, RuntimeResourceType.UNIT));
  }

  @Inject public  DefaultUserResourcesProvider(
      @Named("che.limits.workspace.idle.timeout") long timeout,
      @Named("che.limits.user.workspaces.ram") String ramPerUser,
      @Named("che.limits.user.workspaces.count") int workspacesPerUser,
      @Named("che.limits.user.workspaces.run.count") int runtimesPerUser);

}