Package com.saperion.ws
Class SaWsUser
- java.lang.Object
-
- com.saperion.ws.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
-
-
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.
-
-
-
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 instancelastAction
- 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.
-
-