Class SaWsUser

java.lang.Object
com.saperion.ws.SaWsUser

public class SaWsUser extends Object
This class represents a user with his connection to the back end. This class is not exposed over the web services.
Author:
dam
  • Constructor Summary

    Constructors
    Constructor
    Description
    standard constructor.
    SaWsUser(com.saperion.connector.SaClassicConnector connection)
    standard constructor.
    SaWsUser(com.saperion.connector.SaClassicConnector connection, long lastAction)
    standard constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.saperion.connector.SaClassicConnector
     
    long
     
    void
    setConnection(com.saperion.connector.SaClassicConnector connection)
    Sets the connection which belongs to the user.
    void
    setLastAction(long lastAction)
    Sets the milliseconds when the user was used the last time.
    void
    Sets the current milliseconds when the user was used.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SaWsUser

      public SaWsUser()
      standard constructor.
    • SaWsUser

      public SaWsUser(com.saperion.connector.SaClassicConnector connection)
      standard constructor.
      Parameters:
      connection - Classic connector instance
    • SaWsUser

      public SaWsUser(com.saperion.connector.SaClassicConnector connection, long lastAction)
      standard constructor.
      Parameters:
      connection - Classic connector instance
      lastAction - Last action
  • Method Details

    • getConnection

      public com.saperion.connector.SaClassicConnector getConnection()
      Returns:
      Returns the connections which belongs to this user
    • setConnection

      public void setConnection(com.saperion.connector.SaClassicConnector connection)
      Sets the connection which belongs to the user.
      Parameters:
      connection - Classic connector instance
    • getLastAction

      public long getLastAction()
      Returns:
      Returns the milliseconds when this user was used the last time
    • setLastAction

      public void setLastAction(long lastAction)
      Sets the milliseconds when the user was used the last time.
      Parameters:
      lastAction - Last action
    • update

      public void update()
      Sets the current milliseconds when the user was used.