TWiki
>
WebXEO Web
>
XeoPrimer
>
XeoPrimerJavaAPI
>
XeoPrimerJavaAPISessionEboContext
(revision 2) (raw view)
Edit
Attach
Tags:
tag this topic
create new tag
,
view all tags
-- Main.PedroRio - 30 Dec 2010 ---+ boSession & EboContext Each time a user logs to a XEO application a boSession instance is created to represent the session of the user whithin the application ---+++ boSession The boSession instance | *Method Name* | *Description* | *Parameters* | *Return type* | *Notes* | | createRequestContext | Creates a new EboContext | HttpServletRequest request, HttpServletResponse response, PageContext pagecontext | EboContext | [[#safeContext][See note*]] | | createRequestContext | Creates a new EboContext | HttpServletRequest request, HttpServletResponse response, ServletContext servletContext | EboContext | [[#safeContext][See note*]] | | getPerformerBoui | Returns the boui of object instance of the Object Model representing the user who created the session (tipically it's an instance of a XEO Model which extends the system Object Model Ebo_Perf or the system Object Model Interface iXEOUser) | - | long | | | getPerformerIProfileName | Retrieves the name of the current profile associated to the user who created the session | - | String | | | getPerformerIProfileBoui | Retrieves the boui of the current profile instance associated to the user who created the session | - | long | | | closeSession | Closes the current session (does not destroy contexts created whithin the session) | | | | aaaaaaaa ---+++ EboContext Each EboContext instance __Falar de JTA - Java Transaction qq coisa__ ---++++++ Safe Ebo Context Usage Example<a name="safeContext"></a> <verbatim> boSession session = null; EboContext context = null; try { session = boApplication.getApplicationFromStaticContext("XEO") .boLogin("SYSUSER", boLoginBean.getSystemKey()); context = session.createRequestContext(null, null, null); //Your code in here } catch (Exception e) { //Process the exception in case of error } finally { if (context!=null) context.close(); if (session!=null) session.closeSession(); }</verbatim> aaaaa <div style="position: absolute; left: -10000px; top: 12px; width: 1px; height: 1px; overflow: hidden;" id="_mcePaste">getPerformerIProfileBoui</div>
Edit
|
Attach
|
P
rint version
|
H
istory
:
r6
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2010-12-30
-
PedroRio
WebXEO
XEO Primer
-
Instalation
-
Introduction
-
Concepts
-
Architecture
-
XEO Library
-
Deploy to EAR
-
PreferenceStore
XEO - Core
-
XEO Model Reference
-
Security
-
Java API
-
BOL
-
XEOQL (BOQL)
-
Administrating
-
Background Tasks
-
boConfig.xml
-
Web.xml
-
Known Issues
-
XEO Flags
XEO - XWC
- Web Components
- Java Samples
- Custom Components
- Component Plugins
- Internationalization
- Viewer Events
- Value Change Listeners
- XUIServlet
- XeoLocalization
- XvwTemplates
Create New Topic
WebXEO Web
No permission to view
TWiki.WebTopBar
No permission to view
TWiki.WebBottomBar