1
19
20 package com.liferay.portlet.wiki.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.wiki.service.WikiNodeServiceUtil;
26
27 import java.rmi.RemoteException;
28
29
80 public class WikiNodeServiceSoap {
81 public static com.liferay.portlet.wiki.model.WikiNodeSoap addNode(
82 long plid, java.lang.String name, java.lang.String description,
83 boolean addCommunityPermissions, boolean addGuestPermissions)
84 throws RemoteException {
85 try {
86 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.addNode(plid,
87 name, description, addCommunityPermissions,
88 addGuestPermissions);
89
90 return com.liferay.portlet.wiki.model.WikiNodeSoap.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.wiki.model.WikiNodeSoap addNode(
100 long plid, java.lang.String name, java.lang.String description,
101 java.lang.String[] communityPermissions,
102 java.lang.String[] guestPermissions) throws RemoteException {
103 try {
104 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.addNode(plid,
105 name, description, communityPermissions, guestPermissions);
106
107 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static void deleteNode(long nodeId) throws RemoteException {
117 try {
118 WikiNodeServiceUtil.deleteNode(nodeId);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
128 long nodeId) throws RemoteException {
129 try {
130 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(nodeId);
131
132 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
142 long groupId, java.lang.String name) throws RemoteException {
143 try {
144 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(groupId,
145 name);
146
147 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151
152 throw new RemoteException(e.getMessage());
153 }
154 }
155
156 public static void subscribeNode(long nodeId) throws RemoteException {
157 try {
158 WikiNodeServiceUtil.subscribeNode(nodeId);
159 }
160 catch (Exception e) {
161 _log.error(e, e);
162
163 throw new RemoteException(e.getMessage());
164 }
165 }
166
167 public static void unsubscribeNode(long nodeId) throws RemoteException {
168 try {
169 WikiNodeServiceUtil.unsubscribeNode(nodeId);
170 }
171 catch (Exception e) {
172 _log.error(e, e);
173
174 throw new RemoteException(e.getMessage());
175 }
176 }
177
178 public static com.liferay.portlet.wiki.model.WikiNodeSoap updateNode(
179 long nodeId, java.lang.String name, java.lang.String description)
180 throws RemoteException {
181 try {
182 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.updateNode(nodeId,
183 name, description);
184
185 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
186 }
187 catch (Exception e) {
188 _log.error(e, e);
189
190 throw new RemoteException(e.getMessage());
191 }
192 }
193
194 private static Log _log = LogFactoryUtil.getLog(WikiNodeServiceSoap.class);
195 }