Examples of HitCountData


Examples of org.apache.roller.pojos.HitCountData

            throws Exception {
       
        WeblogManager mgr = RollerFactory.getRoller().getWeblogManager();
       
        // store
        HitCountData testCount = new HitCountData();
        testCount.setWeblog(weblog);
        testCount.setDailyHits(amount);
        mgr.saveHitCount(testCount);
       
        // query for it
        testCount = mgr.getHitCount(testCount.getId());
       
        if(testCount == null)
            throw new RollerException("error setting up hit count");
       
        return testCount;
View Full Code Here

Examples of org.apache.roller.pojos.HitCountData

     */
    public static void teardownHitCount(String id) throws Exception {
       
        // query for it
        WeblogManager mgr = RollerFactory.getRoller().getWeblogManager();
        HitCountData testCount = mgr.getHitCount(id);
       
        // remove
        mgr.removeHitCount(testCount);
    }
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.