Exemplo n.º 1
0
  /**
   * Retrieves the SemanticGraph of the query result the user is interested in, and returns a
   * feedback text with all information about that object
   *
   * @param user user ID
   * @param idx Index
   * @return AnchorInfo[], serialisable version of feedback text, empty if the user's session is
   *     expired, null if an error occurred
   */
  public AnchorInfo[] getBrowsingDescription(String user, int idx) {
    if (!userMap.containsKey(user)) return new AnchorInfo[0];

    LiberSession session = userMap.get(user);
    synchronized (session) {
      session.setLastUpdated();
      return session.getBrowsingDescription(idx);
    }
  }