Package cz.podcastee.domain.entities

Examples of cz.podcastee.domain.entities.Episode


    private String podcastsPath = "/tmp/podcasts/";

    @PostConstruct
    public void init() {
        context = FacesContext.getCurrentInstance();
        episode = new Episode();

        String podcastParam = context.getExternalContext().getRequestParameterMap().get("podcastId");
        if (podcastParam != null && !podcastParam.equals("")) {
            try {
                podcastId = Long.parseLong(podcastParam);
View Full Code Here


        redirect();
        return null;
    }

    public String editEpisode() {
        Episode e = podcastManager.getEpisodeByID(episodeId, true);

        e.setTitle(this.title);
        e.setDescription(this.desc);

        podcastId = e.getPodcast().getId();

        podcastManager.saveEpisode(e);

        redirect();
        return null;
View Full Code Here

        return false;
    }

    public String addEpisodeToCart() {
        Episode ep = (Episode) episodes.getRowData();
        showCartBean.addEpisodeToCart(ep);
        redirect();
        return "";
    }
View Full Code Here

    public void setShowCartBean(ShowCartBean showCartBean) {
        this.showCartBean = showCartBean;
    }

    public boolean isEpisodeInCart() {
        Episode ep = (Episode) episodes.getRowData();
        return showCartBean.isEpisodeInCart(ep);
    }
View Full Code Here

TOP

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

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.