1 18 19 package org.apache.roller.model; 20 21 import java.util.List ; 22 import org.apache.roller.RollerException; 23 import org.apache.roller.pojos.Assoc; 24 import org.apache.roller.pojos.BookmarkData; 25 import org.apache.roller.pojos.FolderData; 26 import org.apache.roller.pojos.WebsiteData; 27 28 29 33 public interface BookmarkManager { 34 35 36 public void saveBookmark(BookmarkData bookmark) throws RollerException; 37 38 39 42 public void removeBookmark(BookmarkData bookmark) throws RollerException; 43 44 47 public BookmarkData getBookmark(String id) throws RollerException; 48 49 50 55 public List getBookmarks(FolderData data, boolean subfolders) 56 throws RollerException; 57 58 59 public void saveFolder(FolderData folder) throws RollerException; 60 61 62 public void removeFolder(FolderData folder) throws RollerException; 63 64 65 68 public FolderData getFolder(String id) throws RollerException; 69 70 71 76 public List getAllFolders(WebsiteData wd) throws RollerException; 77 78 79 84 public FolderData getRootFolder(WebsiteData website) throws RollerException; 85 86 87 93 public FolderData getFolder(WebsiteData website, String folderPath) 94 throws RollerException; 95 96 102 public String getPath(FolderData folder) throws RollerException; 103 104 105 113 public FolderData getFolderByPath(WebsiteData wd, FolderData folder, String string) 114 throws RollerException; 115 116 117 125 public boolean isFolderInUse(FolderData folder) throws RollerException; 126 127 128 131 public boolean isDuplicateFolderName(FolderData data) throws RollerException; 132 133 134 137 public boolean isDescendentOf(FolderData data, FolderData ancestor) throws RollerException; 138 139 140 142 public Assoc getFolderParentAssoc(FolderData data) throws RollerException; 143 144 146 public List getFolderChildAssocs(FolderData data) throws RollerException; 147 148 150 public List getAllFolderDecscendentAssocs(FolderData data) throws RollerException; 151 152 154 public List getFolderAncestorAssocs(FolderData data) throws RollerException; 155 156 157 164 public void importBookmarks(WebsiteData site, String folder, String opml) 165 throws RollerException; 166 167 168 174 public void moveFolderContents(FolderData src, FolderData dest) 175 throws RollerException; 176 177 178 181 public void removeFolderContents(FolderData src) throws RollerException; 182 183 184 187 public void release(); 188 189 } 190 191 | Popular Tags |