Search in sources :

Example 1 with ClientProperties

use of org.apache.wicket.protocol.http.ClientProperties in project midpoint by Evolveum.

the class MidPointAuthWebSession method setClientCustomization.

public void setClientCustomization() {
    MidPointPrincipal principal = SecurityUtils.getPrincipalUser();
    if (principal == null) {
        return;
    }
    //setting locale
    setLocale(WebModelServiceUtils.getLocale());
    LOGGER.debug("Using {} as locale", getLocale());
    //set time zone
    ClientProperties props = WebSession.get().getClientInfo().getProperties();
    props.setTimeZone(WebModelServiceUtils.getTimezone());
    LOGGER.debug("Using {} as time zone", props.getTimeZone());
}
Also used : ClientProperties(org.apache.wicket.protocol.http.ClientProperties) MidPointPrincipal(com.evolveum.midpoint.security.api.MidPointPrincipal)

Aggregations

MidPointPrincipal (com.evolveum.midpoint.security.api.MidPointPrincipal)1 ClientProperties (org.apache.wicket.protocol.http.ClientProperties)1