Package com.saperion.ws
Class SaWsUser
java.lang.Object
com.saperion.ws.SaWsUser
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 -
Method Summary
Modifier and TypeMethodDescriptioncom.saperion.connector.SaClassicConnectorlongvoidsetConnection(com.saperion.connector.SaClassicConnector connection) Sets the connection which belongs to the user.voidsetLastAction(long lastAction) Sets the milliseconds when the user was used the last time.voidupdate()Sets the current milliseconds when the user was used.
-
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 instancelastAction- 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.
-