Examples of removeAutoPing()


Examples of org.apache.roller.model.AutoPingManager.removeAutoPing()

        // query for it
        AutoPingManager mgr = RollerFactory.getRoller().getAutopingManager();
        AutoPingData autoPing = mgr.getAutoPing(id);
       
        // remove the auto ping
        mgr.removeAutoPing(autoPing);
    }
   
}
View Full Code Here

Examples of org.apache.roller.model.AutoPingManager.removeAutoPing()

        PingTargetData pingTarget = select(rreq);
        try {
            if (!isAuthorized(rreq, rreq.getWebsite())) {
                return mapping.findForward("access-denied");
            }
            autoPingMgr.removeAutoPing(pingTarget, rreq.getWebsite());
            RollerFactory.getRoller().flush();

            return view(mapping, form, req, res);
        } catch (Exception e) {
            mLogger.error("ERROR in action", e);
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

     */
    public String disable() {
       
        if(getPingTarget() != null) try {
            AutoPingManager autoPingMgr = WebloggerFactory.getWeblogger().getAutopingManager();
            autoPingMgr.removeAutoPing(getPingTarget(), getActionWeblog());
            WebloggerFactory.getWeblogger().flush();
        } catch (Exception ex) {
            log.error("Error removing auto ping for target - "+getPingTargetId(), ex);
            // TODO: i18n
            addError("Error disabling auto ping");
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

        // query for it
        AutoPingManager mgr = WebloggerFactory.getWeblogger().getAutopingManager();
        AutoPing autoPing = mgr.getAutoPing(id);
       
        // remove the auto ping
        mgr.removeAutoPing(autoPing);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
    }
   
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

        autoPing = mgr.getAutoPing(id);
        assertNotNull(autoPing);
        assertEquals(pingTarget2, autoPing.getPingTarget());
       
        // delete autoPing
        mgr.removeAutoPing(autoPing);
        TestUtils.endSession(true);
       
        // make sure common autoPing was deleted
        autoPing = null;
        autoPing = mgr.getAutoPing(id);
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

            TestUtils.endSession(true);

            // remove by weblog/target
            testWeblog = TestUtils.getManagedWebsite(testWeblog);
            pingTarget = ptmgr.getPingTarget(pingTarget.getId());
            mgr.removeAutoPing(pingTarget, testWeblog);
            TestUtils.endSession(true);

            // make sure remove succeeded
            testAutoPing = null;
            testAutoPing = mgr.getAutoPing(autoPing.getId());
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

        assertNotNull(autoPing);
        assertEquals(1, autoPings.size());
       
        // delete autoPing
        autoPing = mgr.getAutoPing(autoPing.getId());
        mgr.removeAutoPing(autoPing);
        TestUtils.endSession(true);
       
        // teardown test ping target
        TestUtils.teardownPingTarget(pingTarget.getId());
        TestUtils.endSession(true);
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

        // query for it
        AutoPingManager mgr = WebloggerFactory.getWeblogger().getAutopingManager();
        AutoPing autoPing = mgr.getAutoPing(id);
       
        // remove the auto ping
        mgr.removeAutoPing(autoPing);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
    }
   
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

        autoPing = mgr.getAutoPing(id);
        assertNotNull(autoPing);
        assertEquals(pingTarget2, autoPing.getPingTarget());
       
        // delete autoPing
        mgr.removeAutoPing(autoPing);
        TestUtils.endSession(true);
       
        // make sure common autoPing was deleted
        autoPing = null;
        autoPing = mgr.getAutoPing(id);
View Full Code Here

Examples of org.apache.roller.weblogger.business.pings.AutoPingManager.removeAutoPing()

            TestUtils.endSession(true);

            // remove by weblog/target
            testWeblog = TestUtils.getManagedWebsite(testWeblog);
            pingTarget = ptmgr.getPingTarget(pingTarget.getId());
            mgr.removeAutoPing(pingTarget, testWeblog);
            TestUtils.endSession(true);

            // make sure remove succeeded
            testAutoPing = null;
            testAutoPing = mgr.getAutoPing(autoPing.getId());
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.