1 2 package org.roller.model; 3 4 import org.roller.RollerException; 5 import org.roller.pojos.Assoc; 6 import org.roller.pojos.BookmarkData; 7 import org.roller.pojos.FolderData; 8 import org.roller.pojos.WebsiteData; 9 10 import java.io.Serializable ; 11 import java.util.List ; 12 13 14 20 public interface BookmarkManager extends Serializable 21 { 22 24 25 public BookmarkData createBookmark(); 26 27 28 public BookmarkData createBookmark( 29 FolderData parent, 30 String name, 31 String desc, 32 String url, 33 String feedUrl, 34 Integer weight, 35 Integer priority, 36 String image) throws RollerException; 37 38 39 public BookmarkData retrieveBookmark(String id) throws RollerException; 40 41 42 44 45 public void removeBookmark(String id) throws RollerException; 46 47 49 50 public FolderData createFolder(); 51 52 53 public FolderData createFolder( 54 FolderData parent, 55 String name, 56 String desc, 57 WebsiteData website) throws RollerException; 58 59 60 public FolderData retrieveFolder(String id) throws RollerException; 61 62 69 public boolean isFolderInUse(FolderData folder) throws RollerException; 70 71 72 74 78 80 82 87 public void importBookmarks(WebsiteData site, String folder, String opml) 88 throws RollerException; 89 90 94 public void moveFolderContents(FolderData src, FolderData dest) 95 throws RollerException; 96 97 100 public void deleteFolderContents(FolderData src) throws RollerException; 101 102 104 107 public List getAllFolders(WebsiteData wd) throws RollerException; 108 109 112 public FolderData getRootFolder(WebsiteData website) 113 throws RollerException; 114 115 119 public FolderData getFolder(WebsiteData website, String folderPath) 120 throws RollerException; 121 122 127 public String getPath(FolderData folder) throws RollerException; 128 129 136 public FolderData getFolderByPath( 137 WebsiteData wd, FolderData folder, String string) 138 throws RollerException; 139 140 146 public Assoc createFolderAssoc( 147 FolderData folder, FolderData ancestor, String relation) 148 throws RollerException; 149 150 155 public List retrieveBookmarks(FolderData data, boolean subfolders) 156 throws RollerException; 157 158 161 public boolean isDuplicateFolderName(FolderData data) throws RollerException; 162 163 165 public Assoc getFolderParentAssoc(FolderData data) throws RollerException; 166 167 169 public List getFolderChildAssocs(FolderData data) throws RollerException; 170 171 173 public List getAllFolderDecscendentAssocs(FolderData data) throws RollerException; 174 175 177 public List getFolderAncestorAssocs(FolderData data) throws RollerException; 178 179 182 public void release(); 183 184 187 public boolean isDescendentOf(FolderData data, FolderData ancestor) throws RollerException; 188 } 189 190 | Popular Tags |