Examples of AWSession


Examples of ariba.ui.aribaweb.core.AWSession

    }

    public static void togglePathDebugging (AWRequestContext requestContext)
    {
        boolean shouldEnable = !isComponentPathDebuggingEnabled(requestContext);
        AWSession session = requestContext.session(false);
        if (session != null) {
            session.dict().put(AWConstants.ComponentPathDebugFlagKey,
                        (shouldEnable ? Boolean.TRUE: Boolean.FALSE ));
        }
        if (shouldEnable) {
            AribaPageContent.setMessage("Path Debugging Enabled!  You may also Alt-click on elements to see the path to a particular part of the page", session);
        }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    public void renderResponse(AWRequestContext requestContext, AWComponent component)
    {
        if (isNotificationEnabled()) {
            AWPage page = page();
            page.setPollingInitiated(true);
            AWSession session = session(false);
            _hasNewNotifications = session != null ? session.hasNotification() : false;
            if (_hasNewNotifications || !requestContext().isPollUpdateRequest()) {
                // update notification list
                _hasNotification = _hasNewNotifications;
                _notifications = _hasNotification ? session().getNotifications() : null;
            }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        if (booleanValueForBinding(BindingNames.disabled)) {
            return localizedJavaString(3, "Date field is disabled" /* accessibility enabled date field disabled message */);
        }
        if (_exampleDate == null) {
            AWSession session = requestContext().session(false);
            if (session.isAccessibilityEnabled()) {
                return localizedJavaString(2, "Enter date: mm/dd/yyyy" /* accessibility enabled example date format */);
            }
            Object sampleDate = SampleDate;
            AWDateFactory dateFactory = dateFactory();
            if (dateFactory != Calendar.DefaultDateFactory) {
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    }

    public static boolean scrollingAllowed (AWRequestContext requestContext)
    {
        AWRequest request = requestContext.request();
        AWSession session = requestContext.session(false);
        boolean isAccessibilityEnabled =
            session != null ? session.isAccessibilityEnabled() : false;
        // IE 6.0+ and anything else (assume Firefox)
        return request != null
                    && (!request.isBrowserMicrosoft() || !request.isBrowserIE55())
                    && !isAccessibilityEnabled
                    && !requestContext.isPrintMode();
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    }

    public boolean imagePretched ()
    {
        // if we don't have a session, then pretend images have been fetched
        AWSession session = session(false);
        return session == null || session().dict().get(IsImagePretched) != null;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        setFlag(AWConstants.DropDebugEnabled, flag);
    }

    private void setFlag (String flagKey, boolean flag)
    {
        AWSession session = requestContext().session(false);
        if (session != null) {
            session.dict().put(flagKey,
                               (flag ? Boolean.TRUE: Boolean.FALSE ));
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        }
    }

    private boolean getFlag (String flagKey)
    {
        AWSession session = requestContext().session(false);

        if (session == null) {
            return false;
        }
        else {
            Boolean flag = (Boolean)session.dict().get(flagKey);
            return (flag != null) && flag.booleanValue();
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

        return null;
    }

    public boolean isSessionKeepAliveDebuggingEnabled ()
    {
        AWSession session = requestContext().session(false);

        if (ariba.ui.widgets.Widgets.AWSessionManager != null &&
            session != null) {
            Boolean booleanValue =
                (Boolean)session.dict().get("IsSessionKeepAliveDebuggingEnabled");
            return (booleanValue != null && booleanValue == Boolean.TRUE);
        }
        return false;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

    }

    static Date computeCalendarDate (AWRequestContext requestContext, AWDateFactory dateFactory)
    {
        AWRequest request = requestContext.request();
        AWSession session = requestContext.session();
        String yearString = request.formValueForKey(AWCalendarYearKey);
        String monthString = request.formValueForKey(AWCalendarMonthKey);
        String dayString = request.formValueForKey(AWCalendarDateKey);
        Locale clientLocale = request.preferredLocale();
        TimeZone clientTimeZone = session.clientTimeZone();
        int year = Integer.parseInt(yearString);
        int month = Integer.parseInt(monthString);
        int day = Integer.parseInt(dayString);
        return dateFactory.createDate(year, month, day, clientTimeZone, clientLocale);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWSession

                                           AWResourceManager rm, AWRequestContext requestContext,
                                           String brandVersion)
    {
        String key = brandVersion + imageName;
        Boolean isImagedBranded = null;
        AWSession session = requestContext.session(false);
        if (session != null) {
            isImagedBranded = (Boolean)session.dict().get(key);
        }
        if (isImagedBranded == null) {
            AWResource resource = rm.resourceNamed(imageName, true);
            long crc = imageCRC(resource);
            isImagedBranded = Boolean.valueOf(crc != systemImageCRC);
            if (session != null) {
                session.dict().put(key, isImagedBranded);               
            }
        }
        return isImagedBranded.booleanValue();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.