edu.wisc.my.portlets.bookmarks.dao.template
Class TemplateUserBookmarkStore

java.lang.Object
  extended by edu.wisc.my.portlets.bookmarks.dao.template.TemplateUserBookmarkStore
All Implemented Interfaces:
BookmarkStore

public class TemplateUserBookmarkStore
extends Object
implements BookmarkStore

Creates new BookmarkSet objects based on bookmarks for a template user, passes all other operations to an enclosed BookmarkStore instance.

Version:
$Revision: 12173 $
Author:
Drew Wills drew@unicon.net

Constructor Summary
TemplateUserBookmarkStore(BookmarkStore enclosed, TemplateBookmarkSetResolver resolver)
           
 
Method Summary
 BookmarkSet createBookmarkSet(String owner, String name)
          Creates a BookmarkSet and stores it in the persistent store.
 BookmarkSet getBookmarkSet(String owner, String name)
          Gets a BookmarkSet for the specified owner and name.
 void removeBookmarkSet(String owner, String name)
          Removes a BookmarkSet from the persistent store.
 void storeBookmarkSet(BookmarkSet bookmarkSet)
          Stores a new BookmarkSet or updates an existing BookmarkSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateUserBookmarkStore

public TemplateUserBookmarkStore(BookmarkStore enclosed,
                                 TemplateBookmarkSetResolver resolver)
Method Detail

getBookmarkSet

public BookmarkSet getBookmarkSet(String owner,
                                  String name)
Description copied from interface: BookmarkStore
Gets a BookmarkSet for the specified owner and name. If no BookmarkSet can be found for the owner and name null is retuned.

Specified by:
getBookmarkSet in interface BookmarkStore
Parameters:
owner - The owner of the BookmarkSet to retreive.
name - The name of the BookmarkSet to retrieve.
Returns:
The BookmarkSet for the name and owner, null if one is not found for the owner and name.
See Also:
BookmarkStore.getBookmarkSet(java.lang.String, java.lang.String)

storeBookmarkSet

public void storeBookmarkSet(BookmarkSet bookmarkSet)
Description copied from interface: BookmarkStore
Stores a new BookmarkSet or updates an existing BookmarkSet. BookmarkSets are keyed uniquely using the name and owner fields.

Specified by:
storeBookmarkSet in interface BookmarkStore
Parameters:
bookmarkSet - The BookmarkSet to persist. TODO should this return something?
See Also:
BookmarkStore.storeBookmarkSet(edu.wisc.my.portlets.bookmarks.domain.BookmarkSet)

removeBookmarkSet

public void removeBookmarkSet(String owner,
                              String name)
Description copied from interface: BookmarkStore
Removes a BookmarkSet from the persistent store. If a BookmarkSet matching the owner and name cannot be found this is a noop.

Specified by:
removeBookmarkSet in interface BookmarkStore
Parameters:
owner - The owner of the BookmarkSet to remove.
name - The name of the BookmarkSet to remove.
See Also:
BookmarkStore.removeBookmarkSet(java.lang.String, java.lang.String)

createBookmarkSet

public BookmarkSet createBookmarkSet(String owner,
                                     String name)
Description copied from interface: BookmarkStore
Creates a BookmarkSet and stores it in the persistent store.

Specified by:
createBookmarkSet in interface BookmarkStore
Parameters:
owner - The owner of the BookmarkSet to create.
name - The name of the BookmarkSet to create.
Returns:
The new BookmarkSet.
See Also:
BookmarkStore.createBookmarkSet(java.lang.String, java.lang.String)


Copyright © 2010 Jasig. All Rights Reserved.