Package cz.podcastee.domain.entities

Examples of cz.podcastee.domain.entities.User


    public void init() {
        users = new ListDataModel(accountManager.getAllUsers());
    }

    public String grantAdminAction() {
        User user = (User) users.getRowData();
        accountManager.changePrivileges(user, true);
        return "success";
    }
View Full Code Here


        accountManager.changePrivileges(user, true);
        return "success";
    }

    public String revokeAdminAction() {
        User user = (User) users.getRowData();
        accountManager.changePrivileges(user, false);
        return "success";
    }
View Full Code Here

        if (ctx.getExternalContext().getUserPrincipal() == null) {
            userCaption = "";//MessageUtils.getMessageResourceString(ctx.getApplication().getMessageBundle(), "not_login_caption", ctx.getViewRoot().getLocale());
        } else {
            if (loginSession.isLoggedIn()) {
                //tady je mozny si usera ulozit do tyhle beany do lokalni promeny ale je to zbytecny protoze je uz v loginsession
                User user = loginSession.getUser();

            } else {
                loginSession.login(ctx.getExternalContext().getUserPrincipal().getName());
                User user = loginSession.getUser();
                userCaption = user.getFirstName() + " " + user.getLastName();
            }
        }
        return userCaption;
    }
View Full Code Here

    private FacesContext context;

    @PostConstruct
    public void init() {
        context = FacesContext.getCurrentInstance();
        user = new User();
    }
View Full Code Here

            redirect();
            return null;
        }

        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Soubor byl úspěšně nahrán."));
        User u = loginBean.getLoginSession().getUser();       

        if (u != null) {
            episode.setAuthor(u);
            accountManager.addEpisode(episode, u);
        }
View Full Code Here

TOP

Related Classes of cz.podcastee.domain.entities.User

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.