1 8 9 package org.roller.model; 10 11 import org.roller.pojos.PingTargetData; 12 import org.roller.pojos.WebsiteData; 13 import org.roller.RollerException; 14 15 import java.io.Serializable ; 16 import java.util.List ; 17 18 21 public interface PingTargetManager extends Serializable 22 { 23 26 public void release(); 27 28 36 public PingTargetData createCommonPingTarget(String name, String pingUrl) throws RollerException; 37 38 47 public PingTargetData createCustomPingTarget(String name, String pingUrl, 48 WebsiteData website) throws RollerException; 49 50 56 public void storePingTarget(PingTargetData pingTarget) throws RollerException; 57 58 65 public PingTargetData retrievePingTarget(String id) throws RollerException; 66 67 73 public void removePingTarget(String id) throws RollerException; 74 75 81 public List getCommonPingTargets() throws RollerException; 82 83 91 public List getCustomPingTargets(WebsiteData website) throws RollerException; 92 93 99 public void removeCustomPingTargets(WebsiteData website) throws RollerException; 100 101 104 public void removeAllCustomPingTargets() throws RollerException; 105 106 107 117 public boolean isNameUnique(PingTargetData pingTarget) throws RollerException; 118 119 127 public boolean isUrlWellFormed(PingTargetData pingTarget) throws RollerException; 128 129 139 public boolean isHostnameKnown(PingTargetData pingTarget) throws RollerException; 140 141 } 142 | Popular Tags |