com.acsinet_solutions.cetia4.service
Interface UserSession

All Known Implementing Classes:
UserSessionImpl

public interface UserSession

Defines the basic methods of a user session. A user session is a wrapper around session information using a particular API ( standard or propietary ).

Derechos Reservados

Author:
Santiago Arriaga

Field Summary
static int SYSTEM_ID
          The system's fixed id
static java.lang.String SYSTEM_LOGIN
          The system's fixed login
 
Method Summary
 java.lang.String getFname()
          Get the session's user name
 java.lang.String getLname1()
          Get the session's user last name
 java.lang.String getLogin()
          Get the session's user login
 java.util.Set<java.lang.String> getRoles()
          Get the list of roles for the given session.
 int getUserId()
          Get the session's user id
 

Field Detail

SYSTEM_ID

static final int SYSTEM_ID
The system's fixed id

See Also:
Constant Field Values

SYSTEM_LOGIN

static final java.lang.String SYSTEM_LOGIN
The system's fixed login

See Also:
Constant Field Values
Method Detail

getUserId

int getUserId()
Get the session's user id

Returns:
A valid user id; SYSTEM_ID ( 0 ) for system sessions

getLogin

java.lang.String getLogin()
Get the session's user login

Returns:
A valid user login; SYSTEM_LOGIN for system sessions

getFname

java.lang.String getFname()
Get the session's user name

Returns:
A valid user login; SYSTEM_LOGIN for system sessions

getLname1

java.lang.String getLname1()
Get the session's user last name

Returns:
A valid user login; SYSTEM_LOGIN for system sessions

getRoles

java.util.Set<java.lang.String> getRoles()
Get the list of roles for the given session.

Returns:
A not-null maybe-empty Set of not-null not-empty String instances