package com.treelight.krnl;

/**
 * A node that stores user-identification information.
 * The value stored should be globally unique identifier.
 *
 * <b>Note:</b><br>
 * At some point, it should be possible to automatically
 * turn userIDs into links that go to information about 
 * that user. Some interesting observations about that 
 * process:
 * <ul>
 * <li>Links should be URNs<br>
 *     The location of the information could change, or
 *     it could be cached locally. So URNs should be the
 *     norm.
 * <li>Links should be view-controlled<br>
 *     A person plays many roles in their life. The 
 *     "role" a person plays with respect to any given
 *     contribution needs to be reflected in the view
 *     of that person that user gets when traversing the
 *     link. So I, acting as a "health author" would present
 *     one view, while I acting as a "technical contributor"
 *     would present a different view.
 * </ul>
 *
 * @version 0.1
 * @author Eric Armstrong
 * @see ../NodesAndLists.html
 */
public class UserID {

  private String id; // Globally unique identifier for a user
 
  public String getID() { return id; }

  /**
   * Create a new version stamp that identifies the author of the
   * the new version. After creating the stamp, call (@link #setTime()}
   * to get the time value from the currently configured time server.
   */
  public void UserID(String id) {
    //___TODO: Verify the that the ID is at least formatted like a globally unqiue user ID___
    //___TODO FIRST: Figure out what in heck qualifies as a globbaly unique user ID___
    this.id = id;
  }

}//UserId
