|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--asgaard.skid.UserSession
This class holds all information nessecary to identify an valid user-session
Field Summary | |
byte |
MIN_PWD_SIZE
Minimum length of an valid Password |
static long |
offlinetime
Survival time of the Session without user-interaction |
static char |
STATUS_ADMIN
Administrator |
static char |
STATUS_DEFAULT
The normal user with default access-rights |
static char |
STATUS_DELETED
The user is not in use any more |
static char |
STATUS_EXPERT_FORM
Kind of Expert for Form-Maintenance |
static char |
STATUS_REPLY_HTML
Format of the autom. reply PUSHED |
static char |
STATUS_REPLY_WEEKLY
Interval in which a reply is calculated |
static long |
waitFor
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
UserSession(asgaard.skid.HttpServletRequest request)
Creates a new User, for each class which may create a UserSession has to be registrated explicitely (hardcoded). |
|
UserSession(java.lang.String userName,
java.lang.String pwd,
java.lang.String ipAdr)
Checks if the given user has a valid password and throws an exception if not. |
|
UserSession(UserSession su,
java.lang.String searchName)
Checks the access-rights from the asking session and replys an instance in maintenance mode |
Method Summary | |
java.lang.String |
addPage(java.lang.String pageName)
Adds the ID for a valid page in this session to the page-list |
void |
addStatus(char c)
Adds a specific Atribute to this this session |
boolean |
checkPage(java.lang.String pageName,
java.lang.String pid)
Checks the page-ID if it is a valid page in this session |
static boolean |
checkSession(java.lang.String id,
java.lang.String ipAdr)
Checks whether a Session whith a given ID exists or not and sets the modify-Timestamp. |
boolean |
checkStatus(char c)
Checks if a given Atribute exists for this session |
long |
getCreated()
Returns when the session has been created |
java.lang.String |
getEMail()
Returns the e-Mail adress |
java.lang.String |
getEncrypt()
Returns the encrypted password of the reply |
long |
getEnded()
Returns when the session has been modified at last |
long |
getExpiring()
Returns when the account will expire |
java.lang.String |
getID()
Returns the ID of this user |
java.lang.String |
getIpAdr()
Returns the IP-Adress of the current Connection |
long |
getKey()
Returns the key of the associated Person-Bean |
java.lang.String |
getLanguage()
Returns the Language of the current Connection |
long |
getModified()
Returns when the session has been modified at last |
static UserSession |
getSession(java.lang.String id)
Returns a Session whith a given ID exists or not and sets the modify-Timestamp. |
static UserSession |
getSession(java.lang.String id,
java.lang.String ipAdr)
Returns a Session whith a given ID exists or not and sets the modify-Timestamp. |
long |
getStarted()
Returns when the session has been modified at last |
java.lang.String |
getStatus()
Returns the status of this session |
java.lang.String |
getURL()
Returns the url of the homepage of the user |
java.lang.String |
getUserName()
Returns the Name of this user |
void |
modify()
Resets the Session |
void |
remove()
Removes the session from the list of valid sessions. |
void |
removeStatus(char c)
Removes a specific Atribute from this this session |
void |
run()
Cecks whether the Session shall be removed from the list of valid sessions or not. |
boolean |
save()
Adds the ID for a valid page in this session to the page-list |
boolean |
setEMail(java.lang.String value)
Sets the e-Mail adress |
boolean |
setEncrypt(java.lang.String value)
Sets the encrypted Password |
void |
setExpiring(long when)
Sets when the account will expire |
boolean |
setKey(int key)
Sets the Person.Key of the current Connection |
boolean |
setLanguage(java.lang.String value,
java.lang.String[] languages)
Sets the Language of the current Connection |
boolean |
setPwd(java.lang.String value,
java.lang.String verify)
Sets a new Password if long enough |
boolean |
setURL(java.lang.String value)
Sets the url of the homepage of the user |
boolean |
setUserName(java.lang.String value)
Sets the Name of this user only new names are accepted |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public final byte MIN_PWD_SIZE
public static final char STATUS_DELETED
public static final char STATUS_DEFAULT
public static final char STATUS_ADMIN
public static final char STATUS_EXPERT_FORM
public static final char STATUS_REPLY_HTML
public static final char STATUS_REPLY_WEEKLY
public static long offlinetime
public static long waitFor
Constructor Detail |
public UserSession(asgaard.skid.HttpServletRequest request)
creator
- the requesting Object (has to be a BeanBroker)ipAdr
- IP-Adress of the userpublic UserSession(java.lang.String userName, java.lang.String pwd, java.lang.String ipAdr) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
userName
- name of the userpwd
- the encrypted passwordipAdr
- the Adress of the userpublic UserSession(UserSession su, java.lang.String searchName) throws SkidException, java.rmi.RemoteException, java.sql.SQLException
su
- the Administrator's sessionMethod Detail |
public static boolean checkSession(java.lang.String id, java.lang.String ipAdr) throws java.lang.IllegalAccessException
public static UserSession getSession(java.lang.String id, java.lang.String ipAdr) throws java.lang.IllegalAccessException
public static UserSession getSession(java.lang.String id)
public java.lang.String getID() throws java.lang.IllegalAccessException
public java.lang.String getIpAdr() throws java.lang.IllegalAccessException
public java.lang.String getLanguage()
public java.lang.String getUserName()
public java.lang.String getEMail()
public java.lang.String getURL()
public java.lang.String getEncrypt()
public long getCreated()
public long getModified()
public void setExpiring(long when)
public long getExpiring()
public long getStarted()
public long getEnded()
public long getKey()
public boolean setKey(int key)
languages
- set with valid languagespublic boolean setLanguage(java.lang.String value, java.lang.String[] languages)
languages
- set with valid languagespublic boolean setUserName(java.lang.String value)
public boolean setEMail(java.lang.String value)
public boolean setURL(java.lang.String value)
public boolean setPwd(java.lang.String value, java.lang.String verify)
MIN_PWD_SIZE
public boolean setEncrypt(java.lang.String value)
MIN_PWD_SIZE
public java.lang.String getStatus()
public boolean checkStatus(char c)
public void addStatus(char c)
public void removeStatus(char c)
public void modify()
public void remove()
public void run()
public java.lang.String addPage(java.lang.String pageName) throws java.lang.IllegalAccessException
public boolean save() throws SkidException, java.sql.SQLException, java.rmi.RemoteException
public boolean checkPage(java.lang.String pageName, java.lang.String pid) throws java.lang.IllegalAccessException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |