Class RemoteSession
- java.lang.Object
-
- org.neotropic.kuwaiba.northbound.ws.model.application.RemoteSession
-
- All Implemented Interfaces:
Serializable
public class RemoteSession extends Object implements Serializable
Represents the information to be exchanged when a call to createSeesion is successful. This is more or less a wrapper of UserProfile plus a session id- Author:
- Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_DESKTOP
Identifies a session opened from a desktop clientstatic int
TYPE_MOBILE
Identifies a session opened from a mobile client (a mobile application)static int
TYPE_WEB
Identifies a session opened from a web clientstatic int
TYPE_WS
Identifies a session opened from a web service client
-
Constructor Summary
Constructors Constructor Description RemoteSession()
RemoteSession(String sessionID, UserProfile user, int sessionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFirstName()
String
getLastName()
String
getSessionId()
int
getSessionType()
long
getUserId()
String
getUsername()
void
setFirstName(String firstName)
void
setLastName(String lastName)
void
setSessionId(String sessionId)
void
setSessionType(int sessionType)
void
setUserId(long userId)
void
setUsername(String username)
-
-
-
Field Detail
-
TYPE_DESKTOP
public static final int TYPE_DESKTOP
Identifies a session opened from a desktop client- See Also:
- Constant Field Values
-
TYPE_WEB
public static final int TYPE_WEB
Identifies a session opened from a web client- See Also:
- Constant Field Values
-
TYPE_WS
public static final int TYPE_WS
Identifies a session opened from a web service client- See Also:
- Constant Field Values
-
TYPE_MOBILE
public static final int TYPE_MOBILE
Identifies a session opened from a mobile client (a mobile application)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoteSession
public RemoteSession()
-
RemoteSession
public RemoteSession(String sessionID, UserProfile user, int sessionType)
-
-
Method Detail
-
getSessionId
public String getSessionId()
-
setSessionId
public void setSessionId(String sessionId)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getFirstName
public String getFirstName()
-
setFirstName
public void setFirstName(String firstName)
-
getLastName
public String getLastName()
-
setLastName
public void setLastName(String lastName)
-
getSessionType
public int getSessionType()
-
setSessionType
public void setSessionType(int sessionType)
-
-