public class BookmarksFolderServiceHttp
extends java.lang.Object
BookmarksFolderServiceUtil service utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
BookmarksFolderServiceSoap,
HttpPrincipal,
BookmarksFolderServiceUtil| Constructor and Description |
|---|
BookmarksFolderServiceHttp() |
| Modifier and Type | Method and Description |
|---|---|
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
addFolder(HttpPrincipal httpPrincipal,
long parentFolderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.service.ServiceContext serviceContext) |
static void |
deleteFolder(HttpPrincipal httpPrincipal,
long folderId) |
static void |
deleteFolder(HttpPrincipal httpPrincipal,
long folderId,
boolean includeTrashedEntries) |
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
getFolder(HttpPrincipal httpPrincipal,
long folderId) |
static java.util.List<java.lang.Long> |
getFolderIds(HttpPrincipal httpPrincipal,
long groupId,
long folderId) |
static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> |
getFolders(HttpPrincipal httpPrincipal,
long groupId) |
static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> |
getFolders(HttpPrincipal httpPrincipal,
long groupId,
long parentFolderId) |
static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> |
getFolders(HttpPrincipal httpPrincipal,
long groupId,
long parentFolderId,
int start,
int end) |
static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> |
getFolders(HttpPrincipal httpPrincipal,
long groupId,
long parentFolderId,
int status,
int start,
int end) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(HttpPrincipal httpPrincipal,
long groupId,
long folderId) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
int status) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
int status,
int start,
int end) |
static int |
getFoldersAndEntriesCount(HttpPrincipal httpPrincipal,
long groupId,
long folderId) |
static int |
getFoldersAndEntriesCount(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
int status) |
static int |
getFoldersCount(HttpPrincipal httpPrincipal,
long groupId,
long parentFolderId) |
static int |
getFoldersCount(HttpPrincipal httpPrincipal,
long groupId,
long parentFolderId,
int status) |
static void |
getSubfolderIds(HttpPrincipal httpPrincipal,
java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId) |
static void |
getSubfolderIds(HttpPrincipal httpPrincipal,
java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId,
boolean recurse) |
static java.util.List<java.lang.Long> |
getSubfolderIds(HttpPrincipal httpPrincipal,
long groupId,
long folderId,
boolean recurse) |
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
moveFolder(HttpPrincipal httpPrincipal,
long folderId,
long parentFolderId) |
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
moveFolderFromTrash(HttpPrincipal httpPrincipal,
long folderId,
long parentFolderId) |
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
moveFolderToTrash(HttpPrincipal httpPrincipal,
long folderId) |
static void |
restoreFolderFromTrash(HttpPrincipal httpPrincipal,
long folderId) |
static void |
subscribeFolder(HttpPrincipal httpPrincipal,
long groupId,
long folderId) |
static void |
unsubscribeFolder(HttpPrincipal httpPrincipal,
long groupId,
long folderId) |
static com.liferay.portlet.bookmarks.model.BookmarksFolder |
updateFolder(HttpPrincipal httpPrincipal,
long folderId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
boolean mergeWithParentFolder,
com.liferay.portal.service.ServiceContext serviceContext) |
public static com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(HttpPrincipal httpPrincipal, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteFolder(HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void deleteFolder(HttpPrincipal httpPrincipal, long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<java.lang.Long> getFolderIds(HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<java.lang.Object> getFoldersAndEntries(HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<java.lang.Object> getFoldersAndEntries(HttpPrincipal httpPrincipal, long groupId, long folderId, int status) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<java.lang.Object> getFoldersAndEntries(HttpPrincipal httpPrincipal, long groupId, long folderId, int status, int start, int end) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getFoldersAndEntriesCount(HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getFoldersAndEntriesCount(HttpPrincipal httpPrincipal, long groupId, long folderId, int status) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getFoldersCount(HttpPrincipal httpPrincipal, long groupId, long parentFolderId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static int getFoldersCount(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static void getSubfolderIds(HttpPrincipal httpPrincipal, java.util.List<java.lang.Long> folderIds, long groupId, long folderId) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static void getSubfolderIds(HttpPrincipal httpPrincipal, java.util.List<java.lang.Long> folderIds, long groupId, long folderId, boolean recurse) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static java.util.List<java.lang.Long> getSubfolderIds(HttpPrincipal httpPrincipal, long groupId, long folderId, boolean recurse) throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(HttpPrincipal httpPrincipal, long folderId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(HttpPrincipal httpPrincipal, long folderId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void restoreFolderFromTrash(HttpPrincipal httpPrincipal, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void subscribeFolder(HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void unsubscribeFolder(HttpPrincipal httpPrincipal, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean mergeWithParentFolder, com.liferay.portal.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException