Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.EngineBoSession


    public EngineBoSession getEngineBoSessionById(final Long engineSessionId, Object... params) {
        Criteria criteria = createDefaultCriteria(EngineBoSession.class);

        criteria.add(Restrictions.eq("id", engineSessionId));
        EngineBoSession engineSession = (EngineBoSession) criteria.uniqueResult();
        return engineSession;
    }
View Full Code Here


   
    public EngineBoSession getEngineBoSessionByEngineSessionGuid(final String engineSessionGuid, Object... params) {
        Criteria criteria = createDefaultCriteria(EngineBoSession.class);

        criteria.add(Restrictions.eq("engineSessionGuid", engineSessionGuid));
        EngineBoSession engineSession = (EngineBoSession) criteria.uniqueResult();
        return engineSession;
    }
View Full Code Here

     */
    public void updateCurrentLocalization(final RequestData requestData, final Localization localization) throws Exception {
        final HttpServletRequest request = requestData.getRequest();
        if (localization != null) {
            if (requestData.isBackoffice()) {
                EngineBoSession engineBoSession = getCurrentBoSession(request);
                if(engineBoSession != null){
                    engineBoSession.setCurrentBackofficeLocalization(localization);
                    updateCurrentBoSession(request, engineBoSession);
                }
            } else {
                EngineEcoSession engineEcoSession = getCurrentEcoSession(request);
                if(engineEcoSession != null){
View Full Code Here

     */
    protected Retailer getCurrentMarketAreaRetailer(final RequestData requestData) throws Exception {
        Retailer retailer = null;
        final HttpServletRequest request = requestData.getRequest();
        if (requestData.isBackoffice()) {
            EngineBoSession engineBoSession = getCurrentBoSession(request);
            retailer = engineBoSession.getCurrentMarketAreaRetailer();
            if (retailer == null) {
                initDefaultBoMarketPlace(request);
            }
        } else {
            EngineEcoSession engineEcoSession = getCurrentEcoSession(request);
View Full Code Here

     */
    protected CurrencyReferential getCurrentMarketAreaCurrency(final RequestData requestData) throws Exception {
        CurrencyReferential currencyReferential = null;
        final HttpServletRequest request = requestData.getRequest();
        if (requestData.isBackoffice()) {
            EngineBoSession engineBoSession = getCurrentBoSession(request);
            currencyReferential = engineBoSession.getCurrentMarketAreaCurrency();
            if (currencyReferential == null) {
                initDefaultBoMarketPlace(request);
            }
        } else {
            EngineEcoSession engineEcoSession = getCurrentEcoSession(request);
View Full Code Here

     */
    protected Localization getCurrentBackofficeLocalization(final RequestData requestData) throws Exception {
        Localization localization = null;
        final HttpServletRequest request = requestData.getRequest();
        if (requestData.isBackoffice()) {
            EngineBoSession engineBoSession = getCurrentBoSession(request);
            localization = engineBoSession.getCurrentBackofficeLocalization();
        }
        return localization;
    }
View Full Code Here

    /**
     *
     */
    public User getCurrentUser(final HttpServletRequest request) throws Exception {
        EngineBoSession engineBoSession = getCurrentBoSession(request);
        return engineBoSession.getCurrentUser();
    }
View Full Code Here

    /**
     *
     */
    public void updateCurrentUser(final HttpServletRequest request, final User user) throws Exception {
        if (user != null) {
            final EngineBoSession engineBoSession = getCurrentBoSession(request);
            if(engineBoSession != null){
                engineBoSession.setCurrentUser(user);
            }
            updateCurrentCompany(request, user.getCompany());
            updateCurrentBoSession(request, engineBoSession);
        }
    }
View Full Code Here

   
    /**
     *
     */
    public void cleanCurrentUser(final HttpServletRequest request) throws Exception {
        final EngineBoSession engineBoSession = getCurrentBoSession(request);
        if(engineBoSession != null){
            engineBoSession.setCurrentUser(null);
        }
        updateCurrentBoSession(request, engineBoSession);
    }
View Full Code Here

    /**
     *
     */
    public Company getCurrentCompany(final HttpServletRequest request) throws Exception {
        EngineBoSession engineBoSession = getCurrentBoSession(request);
        return engineBoSession.getCurrentCompany();
    }
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.EngineBoSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.