Example #1
0
  /**
   * Stores in the graph which properties in the query the user considers optional.
   *
   * @param user User ID
   * @param checks Boolean[], specifies whether optional checkboxes are checked
   * @return Number of objects in the archive that match the query
   */
  public Integer sendOptionalInfo(String user, Boolean[] checks) {
    if (!userMap.containsKey(user)) return null;

    LiberSession session = userMap.get(user);
    synchronized (session) {
      session.setLastUpdated();
      return session.sendOptionalInfo(checks);
    }
  }