|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.uch.contextmanager.UserContextManager
public class UserContextManager
Manage contexts, contexts bounded with targets and contexts bounded with URI. Every context contains user profile and controller profile.
| Constructor Summary | |
|---|---|
UserContextManager(UCH uch,
String loggedUserContextData,
String userName,
String password)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Add specified contexts for specified URI. |
void |
closeUserContext(HttpServletRequest request)
Get session from request and found user from it and close context with that user. |
List<String> |
getAvailableTargetIds(Map<String,IProfile> context)
Get available Target Ids for specified context. |
Map<String,IProfile> |
getContext(String sessionId)
Get user Context for specified Session Id. |
List<Map<String,IProfile>> |
getContexts()
Get all Contexts. |
List<String> |
getURIs(Map<String,IProfile> context)
Get a List of URI that allow specified context. |
boolean |
openUserContext(HttpServletRequest request,
String userName,
String password)
Open Context with specified User. |
void |
removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
Remove specified contexts for specified URI. |
void |
targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
Add specified contexts for specified TargetId. |
void |
targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
Remove specified contexts for specified TargetId. |
boolean |
validateUser(HttpServletRequest request,
String userName,
String password)
Check whether specified userName and password is valid or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserContextManager(UCH uch,
String loggedUserContextData,
String userName,
String password)
uch - an Object of UCHloggedUserContextData - an XML formed String specifies user context datauserName - a String value of userNamepassword - a String value of password| Method Detail |
|---|
public boolean validateUser(HttpServletRequest request,
String userName,
String password)
request - an Object of HttpServletRequestuserName - a String value of userNamepassword - a String value of password
public boolean openUserContext(HttpServletRequest request,
String userName,
String password)
request - an Object of HttpServletRequestuserName - a String value of userNamepassword - a String value of password
public void closeUserContext(HttpServletRequest request)
request - an Object of HttpServletRequestpublic List<Map<String,IProfile>> getContexts()
public void targetContextsAdded(String targetId,
List<Map<String,IProfile>> contexts)
targetId - a String value of Target Idcontexts - an Object of List<Map<String, IProfile>>
public void targetContextsRemoved(String targetId,
List<Map<String,IProfile>> contexts)
targetId - a String value of Target Idcontexts - an Object of List<Map<String, IProfile>>public List<String> getAvailableTargetIds(Map<String,IProfile> context)
context - an Object of Map<String, IProfile>
public void addUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
uri - a String value of URIcontexts - an Object of List<Map<String, IProfile>>
public void removeUriServiceContexts(String uri,
List<Map<String,IProfile>> contexts)
uri - a String value of URIcontexts - an Object of List<Map<String, IProfile>>public List<String> getURIs(Map<String,IProfile> context)
context - an Object of Map<String, IProfile>
public Map<String,IProfile> getContext(String sessionId)
sessionId - a String value of SessionId
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||