Package com.io7m.cardant.shell.internal

# Class CAShellLoginTracker

java.lang.Object
com.io7m.cardant.shell.internal.CAShellLoginTracker

All Implemented Interfaces:
  `com.io7m.repetoir.core.RPServiceType`

public final class CAShellLoginTracker extends Object implements com.io7m.repetoir.core.RPServiceType
A tracker for login details.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CAShellLoginTracker()`
  A tracker for login details.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clearUserId()`
  Clear the current user ID.
  `String`
  `description()`
  `void`
  `setUserId(CAUserID newUserId)`
  Set the current user ID.
  `String`
  `toString()`
  `Optional<CAUserID>`
  `userId()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CAShellLoginTracker

    public CAShellLoginTracker()
    A tracker for login details.

- ## Method Details

  - ### setUserId

    public void setUserId(CAUserID newUserId)
    Set the current user ID.
    Parameters:
      `newUserId` - The new user ID

  - ### clearUserId

    public void clearUserId()
    Clear the current user ID.

  - ### userId

    public Optional<CAUserID> userId()
    Returns:
      The current user ID

  - ### description

    public String description()
    Specified by:
      `description` in interface `com.io7m.repetoir.core.RPServiceType`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`