|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.security.UserInfo
The UserInfo class is used to define a container for user specific data and properties. Another very important service provided by the class is is static access methods for fetching and setting the current user.
Nested Class Summary | |
static class |
UserInfo.DefaultUserInfo
|
Constructor Summary | |
UserInfo()
|
Method Summary | |
void |
copyFrom(UserInfo userInfo)
|
static java.lang.String |
getCurrentUserID()
Returns the UserID of the current user in the system for the scope defined by the current thread. |
static UserInfo |
getCurrentUserInfo()
Returns the UserInfo object that defines the current user in the system for the scope defined by the current thread. |
protected static ILoginService |
getLoginServiceIdentity()
|
abstract java.lang.Object |
getProperty(java.lang.String name)
Access nethod that returns a named property value from the called user info object. |
abstract java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defaultValue)
Access nethod that returns a named property value from the called user info object. |
abstract java.util.Enumeration |
getPropertyNames()
|
abstract int |
getSessionID()
Returns the session ID defined by the user info object. |
abstract java.lang.String |
getUserID()
Access method that returns the user ID defined by the user info object. |
abstract void |
logout()
|
abstract void |
setCurrentUserID(java.lang.String userID)
Mutation method that sets the user ID defined by the user info object. |
static void |
setCurrentUserInfo(UserInfo userInfo)
Sets the UserInfo object that defines the current user in the system. |
static void |
setDefaultUserInfo(UserInfo userInfo)
Sets the default UserInfo object that will be used as the UserInfo object for all threads that has not had another info explicitly set. |
static void |
setLoginServiceIdentity(java.lang.Object serviceIdentity)
|
abstract void |
setProperty(java.lang.String name,
java.lang.Object value)
Updates the named property with provided value. |
abstract void |
setSessionID(int sessionID)
Sets the session ID defined by the user info object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UserInfo()
Method Detail |
public static void setLoginServiceIdentity(java.lang.Object serviceIdentity)
protected static ILoginService getLoginServiceIdentity()
public static java.lang.String getCurrentUserID() throws LoginCanceledException, java.lang.SecurityException
LoginCanceledException
java.lang.SecurityException
public static UserInfo getCurrentUserInfo() throws LoginCanceledException, java.lang.SecurityException
LoginCanceledException
java.lang.SecurityException
public static void setCurrentUserInfo(UserInfo userInfo)
public static void setDefaultUserInfo(UserInfo userInfo)
The UserInfo object will also be inherited by future threads created in the calling thread or any of its unmodified child threads.
public void copyFrom(UserInfo userInfo)
public abstract java.lang.String getUserID()
public abstract int getSessionID()
public abstract void setCurrentUserID(java.lang.String userID)
public abstract void setSessionID(int sessionID)
public abstract java.lang.Object getProperty(java.lang.String name)
public abstract java.lang.Object getProperty(java.lang.String name, java.lang.Object defaultValue)
public abstract void setProperty(java.lang.String name, java.lang.Object value)
public abstract java.util.Enumeration getPropertyNames()
public abstract void logout()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |