1 28 package de.nava.informa.utils.manager; 29 30 import de.nava.informa.core.ChannelGroupIF; 31 import de.nava.informa.core.ChannelIF; 32 import de.nava.informa.core.ItemIF; 33 34 import java.net.URL ; 35 36 49 public interface PersistenceManagerIF { 50 58 ChannelGroupIF createGroup(String title) 59 throws PersistenceManagerException; 60 61 68 void updateGroup(ChannelGroupIF group) 69 throws PersistenceManagerException; 70 71 78 void deleteGroup(ChannelGroupIF group) 79 throws PersistenceManagerException; 80 81 90 void mergeGroups(ChannelGroupIF first, ChannelGroupIF second) 91 throws PersistenceManagerException; 92 93 100 ChannelGroupIF[] getGroups() 101 throws PersistenceManagerException; 102 103 112 ChannelIF createChannel(String title, URL location) 113 throws PersistenceManagerException; 114 115 122 void updateChannel(ChannelIF channel) 123 throws PersistenceManagerException; 124 125 133 void addChannelToGroup(ChannelIF channel, ChannelGroupIF group) 134 throws PersistenceManagerException; 135 136 146 void removeChannelFromGroup(ChannelIF channel, ChannelGroupIF group) 147 throws PersistenceManagerException; 148 149 156 void deleteChannel(ChannelIF channel) 157 throws PersistenceManagerException; 158 159 168 ItemIF createItem(ChannelIF channel, String title) 169 throws PersistenceManagerException; 170 171 182 ItemIF createItem(ChannelIF channel, ItemIF ethalon) 183 throws PersistenceManagerException; 184 185 192 void updateItem(ItemIF item) 193 throws PersistenceManagerException; 194 195 202 void deleteItem(ItemIF item) 203 throws PersistenceManagerException; 204 } 205 | Popular Tags |