Examples of saveSubscription()


Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

       
        // store
        Subscription testSub = new Subscription();
        testSub.setFeedURL(feedUrl);
        testSub.setTitle(feedUrl);
        mgr.saveSubscription(testSub);
       
        // flush
        PlanetFactory.getPlanet().flush();
       
        // query to make sure we return the persisted object
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                    sub.setFeedURL(feedUrl);
                    sub.setSiteURL(WebloggerFactory.getWeblogger().getUrlStrategy().getWeblogURL(weblog, null, true));
                    sub.setAuthor(weblog.getName());
                    sub.setLastUpdated(new Date(0));
                   
                    pmgr.saveSubscription(sub);
                    group.getSubscriptions().add(sub);
                    pmgr.saveGroup(group);
                } else {
                    log.debug("UPDATING feed: "+feedUrl);
                   
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                    log.debug("UPDATING feed: "+feedUrl);
                   
                    sub.setTitle(weblog.getName());
                    sub.setAuthor(weblog.getName());
                   
                    pmgr.saveSubscription(sub);
                }
               
                // save as we go
                PlanetFactory.getPlanet().flush();
            }
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

            // add fresh entries
            sub.getEntries().clear();
            sub.addEntries(newEntries);
           
            // save and flush
            pmgr.saveSubscription(sub);
            PlanetFactory.getPlanet().flush();
           
        } catch(PlanetException ex) {
            throw new UpdaterException("Error persisting updated subscription", ex);
        }
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                // sub doesn't exist yet, so we need to fetch it
                FeedFetcher fetcher = PlanetFactory.getPlanet().getFeedFetcher();
                sub = fetcher.fetchSubscription(getSubUrl());
               
                // save new sub
                pmgr.saveSubscription(sub);
            } else {
                log.debug("Adding Existing Subscription - "+getSubUrl());
               
                // Subscription already exists
                addMessage("planetSubscription.foundExisting", sub.getTitle());
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

            // add fresh entries
            sub.getEntries().clear();
            sub.addEntries(newEntries);
           
            // save and flush
            pmgr.saveSubscription(sub);
            PlanetFactory.getPlanet().flush();

            log.debug("Added entries");
            entries += newEntries.size();           
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                // check if this subscription already exists before adding it
                Subscription sub = pMgr.getSubscription(this.subscription.getFeedURL());
                if(sub != null) {
                    this.subscription = sub;
                } else {
                    pMgr.saveSubscription(this.subscription);
                   
                    // set subid now that we have one
                    setSubid(this.subscription.getId());
                }
               
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                this.subscription.getGroups().add(group);
                pMgr.saveGroup(group);
               
            } else {
                // updating and existing subscription, so just save it
                pMgr.saveSubscription(this.subscription);
            }
           
            // flush changes
            PlanetFactory.getPlanet().flush();
        } catch (PlanetException ex) {
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

       
        // store
        Subscription testSub = new Subscription();
        testSub.setFeedURL(feedUrl);
        testSub.setTitle(feedUrl);
        mgr.saveSubscription(testSub);
       
        // flush
        PlanetFactory.getPlanet().flush();
       
        // query to make sure we return the persisted object
View Full Code Here

Examples of org.apache.roller.planet.business.PlanetManager.saveSubscription()

                // sub doesn't exist yet, so we need to fetch it
                FeedFetcher fetcher = PlanetFactory.getPlanet().getFeedFetcher();
                sub = fetcher.fetchSubscription(getAddSubUrl());
               
                // save new sub
                pMgr.saveSubscription(sub);
            }
           
            // add the sub to the group
            group.getSubscriptions().add(sub);
            sub.getGroups().add(group);
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.