info.magnolia.ui.framework.favorite
Class FavoriteStore

java.lang.Object
  extended by info.magnolia.ui.framework.favorite.FavoriteStore

@Singleton
public class FavoriteStore
extends Object

Retrieves root node for favorites or bookmarks. Creates those nodes if not yet around.


Field Summary
static String BOOKMARKS_PATH
           
static String FAVORITES_PATH
           
static String WORKSPACE_NAME
           
 
Constructor Summary
FavoriteStore()
           
 
Method Summary
 javax.jcr.Node getBookmarkRoot()
          Get the bookmark root - create it if it's not yet around.
 javax.jcr.Node getFavoriteRoot()
          Get the favorites root - create it if it's not yet around.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKSPACE_NAME

public static final String WORKSPACE_NAME
See Also:
Constant Field Values

FAVORITES_PATH

public static final String FAVORITES_PATH
See Also:
Constant Field Values

BOOKMARKS_PATH

public static final String BOOKMARKS_PATH
See Also:
Constant Field Values
Constructor Detail

FavoriteStore

public FavoriteStore()
Method Detail

getBookmarkRoot

public javax.jcr.Node getBookmarkRoot()
                               throws javax.jcr.RepositoryException
Get the bookmark root - create it if it's not yet around.

Returns:
the bookmark node for all favorites
Throws:
javax.jcr.RepositoryException

getFavoriteRoot

public javax.jcr.Node getFavoriteRoot()
                               throws javax.jcr.RepositoryException
Get the favorites root - create it if it's not yet around.

Returns:
the root node for all favorites
Throws:
javax.jcr.RepositoryException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.