<commit_before>/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.engine.view;

import com.opengamma.livedata.UserPrincipal;
import com.opengamma.util.PublicAPI;

/**
 * Interface to get view's user and inform a listener of losing/gaining access to a view due to user permission changes.  The latter is not yet implemented.
 */
@PublicAPI
public interface ComputationListener {
  
  /**
   * @return The user associated with this listener. This value must be final
   * - it must not change during the lifetime of the listener.
   */
  UserPrincipal getUser();
  
  // PL 27/5/2010: add methods to inform listener of losing/gaining access to a view<commit_msg>[PLAT-1147] Adding note<commit_after>/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 *
 * Please see distribution for license.
 */
package com.opengamma.engine.view;

import com.opengamma.livedata.UserPrincipal;
import com.opengamma.util.PublicAPI;

/**
 * Interface to get view's user and inform a listener of losing/gaining access to a view due to user permission changes.  The latter is not yet implemented.
 */
@PublicAPI
public interface ComputationListener {
  
  // REVIEW jonathan 2011-04-04 -- think about removing getUser() from this interface as it duplicates and fragments
  // the idea of a ViewClient having a single, associated user to apply to all data it receives. 
  
  /**
   * @return The user associated with this listener. This value must be final
   * - it must not change during the lifetime of the listener.
   */
  UserPrincipal getUser();
  
  // PL 27/5/2010: add methods to inform listener of losing/gaining access to a view
{'fraction_non_alphanumeric': 0.07644394110985278, 'fraction_numerical': 0.01925254813137033, 'mean_word_length': 3.577720207253886, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3752792', 'n_tokens_mistral': 514, 'n_tokens_neox': 472, 'n_words': 217}