public class FileSystemBookmarkStore extends Object implements BookmarkStore
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
FileSystemBookmarkStore() |
| Modifier and Type | Method and Description |
|---|---|
BookmarkSet |
createBookmarkSet(String owner,
String name)
Creates a BookmarkSet and stores it in the persistent store.
|
String |
getBaseStorePath() |
BookmarkSet |
getBookmarkSet(String owner,
String name)
Gets a BookmarkSet for the specified owner and name.
|
protected File |
getStoreDirectory() |
protected File |
getStoreFile(String owner,
String name)
Generates the
File object to use for storing, retrieving
and deleting the bookmark set. |
protected String |
getStoreFileName(String owner,
String name)
Generates the file name String for an owner and book name.
|
void |
removeBookmarkSet(String owner,
String name)
Removes a BookmarkSet from the persistent store.
|
void |
setBaseStorePath(String baseStorePath) |
void |
storeBookmarkSet(BookmarkSet bookmarkSet)
Stores a new BookmarkSet or updates an existing BookmarkSet.
|
public String getBaseStorePath()
public void setBaseStorePath(String baseStorePath)
baseStorePath - The baseStorePath to set.public BookmarkSet getBookmarkSet(String owner, String name)
BookmarkStoregetBookmarkSet in interface BookmarkStoreowner - The owner of the BookmarkSet to retreive.name - The name of the BookmarkSet to retrieve.BookmarkStore.getBookmarkSet(java.lang.String, java.lang.String)public void storeBookmarkSet(BookmarkSet bookmarkSet)
BookmarkStorestoreBookmarkSet in interface BookmarkStorebookmarkSet - The BookmarkSet to persist.
TODO should this return something?BookmarkStore.storeBookmarkSet(edu.wisc.my.portlets.bookmarks.domain.BookmarkSet)public void removeBookmarkSet(String owner, String name)
BookmarkStoreremoveBookmarkSet in interface BookmarkStoreowner - The owner of the BookmarkSet to remove.name - The name of the BookmarkSet to remove.BookmarkStore.removeBookmarkSet(java.lang.String, java.lang.String)public BookmarkSet createBookmarkSet(String owner, String name)
BookmarkStorecreateBookmarkSet in interface BookmarkStoreowner - The owner of the BookmarkSet to create.name - The name of the BookmarkSet to create.BookmarkStore.createBookmarkSet(java.lang.String, java.lang.String)protected String getStoreFileName(String owner, String name)
owner - The owner of the bookmark set.name - The name of the bookmark set.protected File getStoreFile(String owner, String name)
File object to use for storing, retrieving
and deleting the bookmark set.owner - The owner of the bookmark set.name - The name of the bookmark set.protected File getStoreDirectory()
Copyright © 2015 Jasig. All Rights Reserved.