Class 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 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,
                             String ipAddress)
    • 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)
      • getIpAddress

        public String getIpAddress()
      • setIpAddress

        public void setIpAddress​(String ipAddress)