Package com.liferay.bookmarks.test.util
Class BookmarksTestUtil
java.lang.Object
com.liferay.bookmarks.test.util.BookmarksTestUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.bookmarks.model.BookmarksEntryaddEntry(boolean approved) static com.liferay.bookmarks.model.BookmarksEntryaddEntry(long groupId, boolean approved) static com.liferay.bookmarks.model.BookmarksEntryaddEntry(long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.bookmarks.model.BookmarksEntryaddEntry(String name, long folderId, boolean approved, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.bookmarks.model.BookmarksFolderstatic com.liferay.bookmarks.model.BookmarksFolderstatic com.liferay.bookmarks.model.BookmarksFolderaddFolder(long parentFolderId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.bookmarks.model.BookmarksFolderstatic com.liferay.portal.kernel.search.SearchContextgetSearchContext(long companyId, long groupId, long folderId, String keywords) static com.liferay.portal.kernel.search.SearchContextgetSearchContext(long companyId, long groupId, long folderId, String keywords, boolean highlight, boolean score) static voidpopulateNotificationsServiceContext(com.liferay.portal.kernel.service.ServiceContext serviceContext, String command) static com.liferay.bookmarks.model.BookmarksEntryupdateEntry(com.liferay.bookmarks.model.BookmarksEntry entry) static com.liferay.bookmarks.model.BookmarksEntryupdateEntry(com.liferay.bookmarks.model.BookmarksEntry entry, String name)
-
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
- 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
-