Package org.apache.roller

Examples of org.apache.roller.RollerException


            criteria.add(Expression.eq("user", user));
            criteria.add(Expression.eq("pending", Boolean.FALSE));
           
            return criteria.list();
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
    }
View Full Code Here


    public void saveSubscription(PlanetSubscriptionData sub) throws RollerException {
        PlanetSubscriptionData existing = getSubscription(sub.getFeedUrl());
        if (existing == null || (existing.getId().equals(sub.getId()))) {
            this.strategy.store(sub);
        } else {
            throw new RollerException("ERROR: duplicate feed URLs not allowed");
        }
    }
View Full Code Here

            if (config != null) {
                config.setCacheDir(
                        RollerConfig.getProperty("planet.aggregator.cache.dir"));
            }
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
        return config;
    }
View Full Code Here

            criteria.setMaxResults(1);
            criteria.add(Expression.eq("feedUrl", feedUrl));
            List list = criteria.list();
            return list.size()!=0 ? (PlanetSubscriptionData)list.get(0) : null;
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
    }
View Full Code Here

                    session.createCriteria(PlanetSubscriptionData.class);
            criteria.setMaxResults(max);
            criteria.addOrder(Order.desc("inboundblogs"));
            ret = criteria.list();
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
        return ret;
    }
View Full Code Here

                    +"order by sub.inboundblogs desc");
            query.setString("groupHandle", group.getHandle());
            query.setMaxResults(max);
            ret = query.list();
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
        return ret;
    }
View Full Code Here

            Criteria criteria = session.createCriteria(PlanetGroupData.class);
            criteria.setMaxResults(1);
            criteria.add(Expression.eq("handle", handle));
            return (PlanetGroupData) criteria.uniqueResult();
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
    }
View Full Code Here

        try {
            Session session = ((HibernatePersistenceStrategy)strategy).getSession();
            Criteria criteria = session.createCriteria(PlanetGroupData.class);
            return criteria.list();
        } catch (HibernateException e) {
            throw new RollerException(e);
        }
    }
View Full Code Here

            long endTime = System.currentTimeMillis();
            log.info("Generated aggregation in "
                    +((endTime-startTime)/1000.0)+" seconds");
        } catch (Throwable e) {
            log.error("ERROR: building aggregation for: "+group, e);
            throw new RollerException(e);
        }
        return ret;
    }
View Full Code Here

   
   
    public void saveFolder(FolderData folder) throws RollerException {
       
        if(isDuplicateFolderName(folder)) {
            throw new RollerException("Duplicate folder name");
        }
       
        this.strategy.store(folder);
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.RollerException

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.