Liferay 7.0-ce-m2

com.liferay.portlet.bookmarks.util.test
Class BookmarksTestUtil

java.lang.Object
  extended by com.liferay.portlet.bookmarks.util.test.BookmarksTestUtil

public class BookmarksTestUtil
extends Object


Constructor Summary
BookmarksTestUtil()
           
 
Method Summary
static BookmarksEntry addEntry(boolean approved)
           
static BookmarksEntry addEntry(long groupId, boolean approved)
           
static BookmarksEntry addEntry(long folderId, boolean approved, ServiceContext serviceContext)
           
static BookmarksFolder addFolder(long groupId, long parentFolderId, String name)
           
static BookmarksFolder addFolder(long groupId, String name)
           
static BookmarksFolder addFolder(long parentFolderId, String name, ServiceContext serviceContext)
           
static BookmarksFolder addFolder(String name)
           
static SearchContext getSearchContext(long companyId, long groupId, long folderId, String keywords)
           
static SearchContext getSearchContext(long companyId, long groupId, long folderId, String keywords, boolean highlight, boolean score)
           
static BookmarksEntry updateEntry(BookmarksEntry entry)
           
static BookmarksEntry updateEntry(BookmarksEntry entry, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksTestUtil

public BookmarksTestUtil()
Method Detail

addEntry

public static BookmarksEntry addEntry(boolean approved)
                               throws Exception
Throws:
Exception

addEntry

public static BookmarksEntry addEntry(long groupId,
                                      boolean approved)
                               throws Exception
Throws:
Exception

addEntry

public static BookmarksEntry addEntry(long folderId,
                                      boolean approved,
                                      ServiceContext serviceContext)
                               throws Exception
Throws:
Exception

addFolder

public static BookmarksFolder addFolder(long groupId,
                                        long parentFolderId,
                                        String name)
                                 throws Exception
Throws:
Exception

addFolder

public static BookmarksFolder addFolder(long groupId,
                                        String name)
                                 throws Exception
Throws:
Exception

addFolder

public static BookmarksFolder addFolder(long parentFolderId,
                                        String name,
                                        ServiceContext serviceContext)
                                 throws Exception
Throws:
Exception

addFolder

public static BookmarksFolder addFolder(String name)
                                 throws Exception
Throws:
Exception

getSearchContext

public static SearchContext getSearchContext(long companyId,
                                             long groupId,
                                             long folderId,
                                             String keywords)

getSearchContext

public static SearchContext getSearchContext(long companyId,
                                             long groupId,
                                             long folderId,
                                             String keywords,
                                             boolean highlight,
                                             boolean score)

updateEntry

public static BookmarksEntry updateEntry(BookmarksEntry entry)
                                  throws Exception
Throws:
Exception

updateEntry

public static BookmarksEntry updateEntry(BookmarksEntry entry,
                                         String name)
                                  throws Exception
Throws:
Exception

Liferay 7.0-ce-m2