Class SaWsUser


  • public class SaWsUser
    extends java.lang.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
      SaWsUser()
      standard constructor.
      SaWsUser​(com.saperion.connector.SaClassicConnector connection)
      standard constructor.
      SaWsUser​(com.saperion.connector.SaClassicConnector connection, long lastAction)
      standard constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.saperion.connector.SaClassicConnector getConnection()  
      long getLastAction()  
      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 update()
      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 Detail

      • 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 Detail

      • 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.