1 package org.roller.model; 2 3 import java.io.Serializable ; 4 import java.util.Date ; 5 import java.util.Iterator ; 6 import java.util.List ; 7 8 import org.roller.RollerException; 9 import org.roller.pojos.PlanetConfigData; 10 import org.roller.pojos.PlanetEntryData; 11 import org.roller.pojos.PlanetGroupData; 12 import org.roller.pojos.PlanetSubscriptionData; 13 14 18 public interface PlanetManager extends Serializable 19 { 20 22 25 public void saveConfiguration(PlanetConfigData config) 26 throws RollerException; 27 28 31 public void saveEntry(PlanetEntryData entry) throws RollerException; 32 33 36 public void saveGroup(PlanetGroupData sub) throws RollerException; 37 38 41 public void saveSubscription(PlanetSubscriptionData sub) 42 throws RollerException; 43 44 46 49 public PlanetConfigData getConfiguration() throws RollerException; 50 51 54 public List getGroupHandles() throws RollerException; 55 56 59 public List getGroups() throws RollerException; 60 61 64 public PlanetGroupData getGroup(String handle) throws RollerException; 65 66 69 public PlanetGroupData getGroupById(String id) throws RollerException; 70 71 74 public PlanetSubscriptionData getSubscription(String feedUrl) 75 throws RollerException; 76 77 80 public PlanetSubscriptionData getSubscriptionById(String id) 81 throws RollerException; 82 83 86 public Iterator getAllSubscriptions() throws RollerException; 87 88 91 public int getSubscriptionCount() throws RollerException; 92 93 96 public List getTopSubscriptions(int max) throws RollerException; 97 98 101 public List getTopSubscriptions( 102 PlanetGroupData group, int max) throws RollerException; 103 104 106 113 public List getAggregation( 114 PlanetGroupData group, int maxEntries) throws RollerException; 115 116 120 public List getAggregation(int maxEntries) throws RollerException; 121 122 124 125 public void refreshEntries() throws RollerException; 126 127 129 130 public void deleteGroup(PlanetGroupData group) throws RollerException; 131 132 133 public void deleteSubscription(PlanetSubscriptionData group) 134 throws RollerException; 135 136 137 public void deleteEntry(PlanetEntryData entry) throws RollerException; 138 139 140 public void clearCachedAggregations(); 141 142 143 public Date getLastUpdated(); 144 145 146 public Date getLastUpdated(PlanetGroupData group); 147 } 148 149 | Popular Tags |