1 18 package org.apache.roller.model; 19 20 import java.io.Serializable ; 21 import java.util.Date ; 22 import java.util.Iterator ; 23 import java.util.List ; 24 25 import org.apache.roller.RollerException; 26 import org.apache.roller.pojos.PlanetConfigData; 27 import org.apache.roller.pojos.PlanetEntryData; 28 import org.apache.roller.pojos.PlanetGroupData; 29 import org.apache.roller.pojos.PlanetSubscriptionData; 30 31 35 public interface PlanetManager extends Serializable { 36 37 39 42 public void saveConfiguration(PlanetConfigData config) 43 throws RollerException; 44 45 48 public void saveEntry(PlanetEntryData entry) throws RollerException; 49 50 53 public void saveGroup(PlanetGroupData sub) throws RollerException; 54 55 58 public void saveSubscription(PlanetSubscriptionData sub) 59 throws RollerException; 60 61 63 66 public PlanetConfigData getConfiguration() throws RollerException; 67 68 71 public List getGroupHandles() throws RollerException; 72 73 76 public List getGroups() throws RollerException; 77 78 81 public PlanetGroupData getGroup(String handle) throws RollerException; 82 83 86 public PlanetGroupData getGroupById(String id) throws RollerException; 87 88 91 public PlanetSubscriptionData getSubscription(String feedUrl) 92 throws RollerException; 93 94 97 public PlanetSubscriptionData getSubscriptionById(String id) 98 throws RollerException; 99 100 103 public Iterator getAllSubscriptions() throws RollerException; 104 105 108 public int getSubscriptionCount() throws RollerException; 109 110 113 public List getTopSubscriptions(int offset, int len) throws RollerException; 114 115 118 public List getTopSubscriptions( 119 String groupHandle, int offset, int len) throws RollerException; 120 121 124 public List getFeedEntries( 125 String feedUrl, int offset, int len) throws RollerException; 126 127 129 136 public List getAggregation( 137 PlanetGroupData group, Date startDate, Date endDate, 138 int offset, int len) throws RollerException; 139 140 public List getAggregation( 141 int offset, int len) throws RollerException; 142 143 public List getAggregation( 144 PlanetGroupData group, int offset, int len) throws RollerException; 145 146 151 public List getAggregation(Date startDate, Date endDate, 152 int offset, int len) throws RollerException; 153 154 156 157 public void refreshEntries() throws RollerException; 158 159 161 162 public void deleteGroup(PlanetGroupData group) throws RollerException; 163 164 165 public void deleteSubscription(PlanetSubscriptionData group) 166 throws RollerException; 167 168 169 public void deleteEntry(PlanetEntryData entry) throws RollerException; 170 171 172 public void clearCachedAggregations(); 173 174 175 public Date getLastUpdated(); 176 177 178 public Date getLastUpdated(PlanetGroupData group); 179 } 180 181 | Popular Tags |