1
19
20 package com.liferay.portlet.bookmarks.service.http;
21
22 import com.liferay.portal.kernel.log.Log;
23 import com.liferay.portal.kernel.log.LogFactoryUtil;
24
25 import com.liferay.portlet.bookmarks.service.BookmarksFolderServiceUtil;
26
27 import java.rmi.RemoteException;
28
29
80 public class BookmarksFolderServiceSoap {
81 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap addFolder(
82 long plid, long parentFolderId, java.lang.String name,
83 java.lang.String description, boolean addCommunityPermissions,
84 boolean addGuestPermissions) throws RemoteException {
85 try {
86 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.addFolder(plid,
87 parentFolderId, name, description, addCommunityPermissions,
88 addGuestPermissions);
89
90 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
91 }
92 catch (Exception e) {
93 _log.error(e, e);
94
95 throw new RemoteException(e.getMessage());
96 }
97 }
98
99 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap addFolder(
100 long plid, long parentFolderId, java.lang.String name,
101 java.lang.String description, java.lang.String[] communityPermissions,
102 java.lang.String[] guestPermissions) throws RemoteException {
103 try {
104 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.addFolder(plid,
105 parentFolderId, name, description, communityPermissions,
106 guestPermissions);
107
108 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
109 }
110 catch (Exception e) {
111 _log.error(e, e);
112
113 throw new RemoteException(e.getMessage());
114 }
115 }
116
117 public static void deleteFolder(long folderId) throws RemoteException {
118 try {
119 BookmarksFolderServiceUtil.deleteFolder(folderId);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap getFolder(
129 long folderId) throws RemoteException {
130 try {
131 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.getFolder(folderId);
132
133 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 public static com.liferay.portlet.bookmarks.model.BookmarksFolderSoap updateFolder(
143 long folderId, long parentFolderId, java.lang.String name,
144 java.lang.String description, boolean mergeWithParentFolder)
145 throws RemoteException {
146 try {
147 com.liferay.portlet.bookmarks.model.BookmarksFolder returnValue = BookmarksFolderServiceUtil.updateFolder(folderId,
148 parentFolderId, name, description, mergeWithParentFolder);
149
150 return com.liferay.portlet.bookmarks.model.BookmarksFolderSoap.toSoapModel(returnValue);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 private static Log _log = LogFactoryUtil.getLog(BookmarksFolderServiceSoap.class);
160 }