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.BookmarksEntryServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class BookmarksEntryServiceSoap {
068 public static com.liferay.portlet.bookmarks.model.BookmarksEntrySoap addEntry(
069 long groupId, long folderId, java.lang.String name,
070 java.lang.String url, java.lang.String comments,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws RemoteException {
073 try {
074 com.liferay.portlet.bookmarks.model.BookmarksEntry returnValue = BookmarksEntryServiceUtil.addEntry(groupId,
075 folderId, name, url, comments, serviceContext);
076
077 return com.liferay.portlet.bookmarks.model.BookmarksEntrySoap.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 deleteEntry(long entryId) throws RemoteException {
087 try {
088 BookmarksEntryServiceUtil.deleteEntry(entryId);
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.BookmarksEntrySoap getEntry(
098 long entryId) throws RemoteException {
099 try {
100 com.liferay.portlet.bookmarks.model.BookmarksEntry returnValue = BookmarksEntryServiceUtil.getEntry(entryId);
101
102 return com.liferay.portlet.bookmarks.model.BookmarksEntrySoap.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.BookmarksEntrySoap openEntry(
112 long entryId) throws RemoteException {
113 try {
114 com.liferay.portlet.bookmarks.model.BookmarksEntry returnValue = BookmarksEntryServiceUtil.openEntry(entryId);
115
116 return com.liferay.portlet.bookmarks.model.BookmarksEntrySoap.toSoapModel(returnValue);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static com.liferay.portlet.bookmarks.model.BookmarksEntrySoap updateEntry(
126 long entryId, long groupId, long folderId, java.lang.String name,
127 java.lang.String url, java.lang.String comments,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws RemoteException {
130 try {
131 com.liferay.portlet.bookmarks.model.BookmarksEntry returnValue = BookmarksEntryServiceUtil.updateEntry(entryId,
132 groupId, folderId, name, url, comments, serviceContext);
133
134 return com.liferay.portlet.bookmarks.model.BookmarksEntrySoap.toSoapModel(returnValue);
135 }
136 catch (Exception e) {
137 _log.error(e, e);
138
139 throw new RemoteException(e.getMessage());
140 }
141 }
142
143 private static Log _log = LogFactoryUtil.getLog(BookmarksEntryServiceSoap.class);
144 }