Examples of PlanetsUserManager


Examples of eu.planets_project.pp.plato.util.PlanetsUserManager

        Context session = Contexts.getSessionContext();
        if (session == null) {
            return;
        }

        PlanetsUserManager userManager = PlanetsUserManager.createUserManager();

        // do we have a user
        boolean user = (userManager.getLoggedInUser() != null);

        // is a planning project loaded
        boolean project = Contexts.getSessionContext().isSet("selectedPlan");

        String page = context.getViewRoot().getViewId();
View Full Code Here

Examples of eu.planets_project.pp.plato.util.PlanetsUserManager

     * @see PlanetsUserManager
     */
    @Factory("user")
    public void initUser() {

        PlanetsUserManager userManager = PlanetsUserManager.createUserManager();
       
        this.user = alignWithUserInDB(userManager.getLoggedInUser());
       
        Map<String,String> headers = FacesContext.getCurrentInstance().getExternalContext().getRequestHeaderMap();
        String userAgent =  headers.get("user-agent");
        log.debug("userAgent is: " + userAgent);
        if(userAgent != null && (userAgent.indexOf("IE") != -1 || userAgent.indexOf("Microsoft") != -1)){
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.