Class BookmarksTestUtil

java.lang.Object
com.liferay.bookmarks.test.util.BookmarksTestUtil

public class BookmarksTestUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.liferay.bookmarks.model.BookmarksEntry
    addEntry(boolean approved)
     
    static com.liferay.bookmarks.model.BookmarksEntry
    addEntry(long groupId, boolean approved)
     
    static com.liferay.bookmarks.model.BookmarksEntry
    addEntry(long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.bookmarks.model.BookmarksEntry
    addEntry(String name, long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.bookmarks.model.BookmarksFolder
    addFolder(long groupId, long parentFolderId, String name)
     
    static com.liferay.bookmarks.model.BookmarksFolder
    addFolder(long groupId, String name)
     
    static com.liferay.bookmarks.model.BookmarksFolder
    addFolder(long parentFolderId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static com.liferay.bookmarks.model.BookmarksFolder
     
    static com.liferay.portal.kernel.search.SearchContext
    getSearchContext(long companyId, long groupId, long folderId, String keywords)
     
    static com.liferay.portal.kernel.search.SearchContext
    getSearchContext(long companyId, long groupId, long folderId, String keywords, boolean highlight, boolean score)
     
    static void
    populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command)
     
    static com.liferay.bookmarks.model.BookmarksEntry
    updateEntry(com.liferay.bookmarks.model.BookmarksEntry entry)
     
    static com.liferay.bookmarks.model.BookmarksEntry
    updateEntry(com.liferay.bookmarks.model.BookmarksEntry entry, String name)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BookmarksTestUtil

      public BookmarksTestUtil()
  • Method Details

    • addEntry

      public static com.liferay.bookmarks.model.BookmarksEntry addEntry(boolean approved) throws Exception
      Throws:
      Exception
    • addEntry

      public static com.liferay.bookmarks.model.BookmarksEntry addEntry(long groupId, boolean approved) throws Exception
      Throws:
      Exception
    • addEntry

      public static com.liferay.bookmarks.model.BookmarksEntry addEntry(long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addEntry

      public static com.liferay.bookmarks.model.BookmarksEntry addEntry(String name, long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addFolder

      public static com.liferay.bookmarks.model.BookmarksFolder addFolder(long groupId, long parentFolderId, String name) throws Exception
      Throws:
      Exception
    • addFolder

      public static com.liferay.bookmarks.model.BookmarksFolder addFolder(long groupId, String name) throws Exception
      Throws:
      Exception
    • addFolder

      public static com.liferay.bookmarks.model.BookmarksFolder addFolder(long parentFolderId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws Exception
      Throws:
      Exception
    • addFolder

      public static com.liferay.bookmarks.model.BookmarksFolder addFolder(String name) throws Exception
      Throws:
      Exception
    • getSearchContext

      public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long companyId, long groupId, long folderId, String keywords)
    • getSearchContext

      public static com.liferay.portal.kernel.search.SearchContext getSearchContext(long companyId, long groupId, long folderId, String keywords, boolean highlight, boolean score)
    • populateNotificationsServiceContext

      public static void populateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) throws Exception
      Throws:
      Exception
    • updateEntry

      public static com.liferay.bookmarks.model.BookmarksEntry updateEntry(com.liferay.bookmarks.model.BookmarksEntry entry) throws Exception
      Throws:
      Exception
    • updateEntry

      public static com.liferay.bookmarks.model.BookmarksEntry updateEntry(com.liferay.bookmarks.model.BookmarksEntry entry, String name) throws Exception
      Throws:
      Exception