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