Manage contexts, contexts for targets and contexts for URI.
Public Methods
-
UserContextManager(UCH* uch, string loggedUserContextData, string userName, string password)
- Basic Constructor
-
bool openUserContext(map<string, string>* request, map<string, string>* response, string userName, string password)
- Open user context session
-
void closeUserContext(map<string, string>* request)
- Close user Context
-
list<map<string, IProfile*>*> * getContexts()
- Get all Contexts.
-
map<string, IProfile*> * getContext(map<string, string>*request, string userName, string password)
- Get all Contexts for given username and password.
-
list<map<string, IProfile*>*> * getTargetContexts(string targetId)
- Get contexts for specified Target Id.
-
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.
-
list<string> * getAvailableTargetIds(map<string, IProfile*>* context)
- Get available Target Ids for specified context.
-
void addUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
- Add specified contexts for specified URI.
-
void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
- Remove specified contexts for specified URI.
-
list<string> * getURIs(map<string, IProfile*>* context)
- Get a List of URI that allow specified context.
-
map<string, IProfile*> * getContext(string sessionId)
- Get user Context for specified Session Id.
-
bool validateUser(map<string, string>*request, string userName, string password)
- Validate the username and password
Documentation
Manage contexts, contexts for targets and contexts for URI.
Every context contains user profile and controller profile.
UserContextManager(UCH* uch, string loggedUserContextData, string userName, string password)
-
Basic Constructor
- Parameters:
- uch - an UCH Object
tdmListener - an TDMListener Object
tdmListener - an TAListener Object
uipmListener - an UIPMListener Object
bool openUserContext(map<string, string>* request, map<string, string>* response, string userName, string password)
-
Open user context session
- Parameters:
- request - a HTTP request Map<String, String>
response - a HTTP request Map<String, String>
userName - a String Value of username
password - a String Value of password
- Returns:
- true if successful else false
void closeUserContext(map<string, string>* request)
-
Close user Context
- Parameters:
- sessionId - a String Value of sessionId
list<map<string, IProfile*>*> * getContexts()
-
Get all Contexts.
- Returns:
- an Object of List<Map<String, IProfile>>
map<string, IProfile*> * getContext(map<string, string>*request, string userName, string password)
-
Get all Contexts for given username and password.
- Parameters:
- request - an key-value map of HTTP headers
userName - a String Value of username
password - a String Value of password
- Returns:
- an Object of Map<String, IProfile>
list<map<string, IProfile*>*> * getTargetContexts(string targetId)
-
Get contexts for specified Target Id.
- Parameters:
- targetId - a String value of Target Id
- Returns:
- an Object of List<Map<String, IProfile>>
void targetContextsAdded(string targetId, list<map<string, IProfile*>*>*contexts)
-
Add specified contexts for specified TargetId.
Note : Empty contexts and null contexts has different meaning.
If contexts is empty then no user/controller context is allowed to use that Target.
If contexts is null then every user/controller context is allowed to use that Target.
- Parameters:
- targetId - a String value of Target Id
contexts - an Object of List<Map<String, IProfile>>
void targetContextsRemoved(string targetId, list<map<string, IProfile*>*>*contexts)
-
Remove specified contexts for specified TargetId.
- Parameters:
- targetId - a String value of Target Id
contexts - an Object of List<Map<String, IProfile>>
list<string> * getAvailableTargetIds(map<string, IProfile*>* context)
-
Get available Target Ids for specified context.
- Parameters:
- context - an Object of Map<String, IProfile>
- Returns:
- an Object of List<String>
void addUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
-
Add specified contexts for specified URI.
Note : Empty contexts and null contexts has different meaning.
If contexts is empty then no user/controller context is allowed to use that URI.
If contexts is null then every user/controller context is allowed to use that URI.
- Parameters:
- uri - a String value of URI
contexts - an Object of List<Map<String, IProfile>>
void removeUriServiceContexts(string uri, list<map<string, IProfile*>*>*contexts)
-
Remove specified contexts for specified URI.
- Parameters:
- uri - a String value of URI
contexts - an Object of List<Map<String, IProfile>>
list<string> * getURIs(map<string, IProfile*>* context)
-
Get a List of URI that allow specified context.
- Parameters:
- context - an Object of Map<String, IProfile>
- Returns:
- an Object of List<String>
map<string, IProfile*> * getContext(string sessionId)
-
Get user Context for specified Session Id.
- Parameters:
- sessionId - a String value of SessionId
- Returns:
- an Object of Map<String, IProfile>
bool validateUser(map<string, string>*request, string userName, string password)
-
Validate the username and password
- Parameters:
- userName - a String Value of username
password - a String Value of password
- Returns:
- true if username and password is valid else false
- This class has no child classes.
- Author:
- Parikshit Thakur & Team, Trace R&D Center
- Version:
- Revision: 1.1
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.