001
014
015 package com.liferay.portlet.wiki.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.wiki.service.WikiNodeServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
064 public class WikiNodeServiceSoap {
065 public static com.liferay.portlet.wiki.model.WikiNodeSoap addNode(
066 java.lang.String name, java.lang.String description,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws RemoteException {
069 try {
070 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.addNode(name,
071 description, serviceContext);
072
073 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
074 }
075 catch (Exception e) {
076 _log.error(e, e);
077
078 throw new RemoteException(e.getMessage());
079 }
080 }
081
082 public static void deleteNode(long nodeId) throws RemoteException {
083 try {
084 WikiNodeServiceUtil.deleteNode(nodeId);
085 }
086 catch (Exception e) {
087 _log.error(e, e);
088
089 throw new RemoteException(e.getMessage());
090 }
091 }
092
093 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
094 long nodeId) throws RemoteException {
095 try {
096 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(nodeId);
097
098 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
108 long groupId, java.lang.String name) throws RemoteException {
109 try {
110 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(groupId,
111 name);
112
113 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portlet.wiki.model.WikiNodeSoap moveNodeToTrash(
123 long nodeId) throws RemoteException {
124 try {
125 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.moveNodeToTrash(nodeId);
126
127 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static void restoreNodeFromTrash(long nodeId)
137 throws RemoteException {
138 try {
139 WikiNodeServiceUtil.restoreNodeFromTrash(nodeId);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static void subscribeNode(long nodeId) throws RemoteException {
149 try {
150 WikiNodeServiceUtil.subscribeNode(nodeId);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 public static void unsubscribeNode(long nodeId) throws RemoteException {
160 try {
161 WikiNodeServiceUtil.unsubscribeNode(nodeId);
162 }
163 catch (Exception e) {
164 _log.error(e, e);
165
166 throw new RemoteException(e.getMessage());
167 }
168 }
169
170 public static com.liferay.portlet.wiki.model.WikiNodeSoap updateNode(
171 long nodeId, java.lang.String name, java.lang.String description,
172 com.liferay.portal.service.ServiceContext serviceContext)
173 throws RemoteException {
174 try {
175 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.updateNode(nodeId,
176 name, description, serviceContext);
177
178 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
179 }
180 catch (Exception e) {
181 _log.error(e, e);
182
183 throw new RemoteException(e.getMessage());
184 }
185 }
186
187 private static Log _log = LogFactoryUtil.getLog(WikiNodeServiceSoap.class);
188 }