Tags:
create new tag
, view all tags
-- 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 ParametersSorted ascending Return type Notes
closeSession Closes the current session (does not destroy contexts created whithin the session)      
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  
createRequestContext Creates a new EboContext HttpServletRequest request, HttpServletResponse response, PageContext pagecontext EboContext See note*
createRequestContext Creates a new EboContext HttpServletRequest request, HttpServletResponse response, ServletContext servletContext EboContext See note*

aaaaaaaa

EboContext

Each EboContext instance

Falar de JTA - Java Transaction qq coisa

Safe Ebo Context Usage Example
        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();
        }

aaaaa

getPerformerIProfileBoui
Edit | Attach | Print version | History: r6 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2010-12-30 - PedroRio
 

No permission to view TWiki.WebTopBar

This site is powered by the TWiki collaboration platform Powered by Perl

No permission to view TWiki.WebBottomBar