001
014
015 package com.liferay.portlet.bookmarks.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.bookmarks.service.BookmarksFolderServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class BookmarksFolderServiceSoap {
068 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap addFolder(
069 long parentFolderId, java.lang.String name,
070 java.lang.String description,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws RemoteException {
073 try {
074 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.addFolder(parentFolderId,
075 name, description, serviceContext);
076
077 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
078 }
079 catch (Exception e) {
080 _log.error(e, e);
081
082 throw new RemoteException(e.getMessage());
083 }
084 }
085
086 public static void deleteFolder(long folderId) throws RemoteException {
087 try {
088 BookmarksFolderServiceUtil.deleteFolder(folderId);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap getFolder(
098 long folderId) throws RemoteException {
099 try {
100 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.getFolder(folderId);
101
102 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
103 }
104 catch (Exception e) {
105 _log.error(e, e);
106
107 throw new RemoteException(e.getMessage());
108 }
109 }
110
111 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap updateFolder(
112 long folderId, long parentFolderId, java.lang.String name,
113 java.lang.String description, boolean mergeWithParentFolder,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws RemoteException {
116 try {
117 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.updateFolder(folderId,
118 parentFolderId, name, description, mergeWithParentFolder,
119 serviceContext);
120
121 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
122 }
123 catch (Exception e) {
124 _log.error(e, e);
125
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130 private static Log _log = LogFactoryUtil.getLog(BookmarksFolderServiceSoap.class);
131 }