1
14
15 package com.liferay.portlet.wiki.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19
20 import com.liferay.portlet.wiki.service.WikiNodeServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class WikiNodeServiceSoap {
75 public static com.liferay.portlet.wiki.model.WikiNodeSoap addNode(
76 long plid, java.lang.String name, java.lang.String description,
77 boolean addCommunityPermissions, boolean addGuestPermissions)
78 throws RemoteException {
79 try {
80 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.addNode(plid,
81 name, description, addCommunityPermissions,
82 addGuestPermissions);
83
84 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
85 }
86 catch (Exception e) {
87 _log.error(e, e);
88
89 throw new RemoteException(e.getMessage());
90 }
91 }
92
93 public static com.liferay.portlet.wiki.model.WikiNodeSoap addNode(
94 long plid, java.lang.String name, java.lang.String description,
95 java.lang.String[] communityPermissions,
96 java.lang.String[] guestPermissions) throws RemoteException {
97 try {
98 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.addNode(plid,
99 name, description, communityPermissions, guestPermissions);
100
101 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static void deleteNode(long nodeId) throws RemoteException {
111 try {
112 WikiNodeServiceUtil.deleteNode(nodeId);
113 }
114 catch (Exception e) {
115 _log.error(e, e);
116
117 throw new RemoteException(e.getMessage());
118 }
119 }
120
121 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
122 long nodeId) throws RemoteException {
123 try {
124 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(nodeId);
125
126 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
127 }
128 catch (Exception e) {
129 _log.error(e, e);
130
131 throw new RemoteException(e.getMessage());
132 }
133 }
134
135 public static com.liferay.portlet.wiki.model.WikiNodeSoap getNode(
136 long groupId, java.lang.String name) throws RemoteException {
137 try {
138 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.getNode(groupId,
139 name);
140
141 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
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 throws RemoteException {
175 try {
176 com.liferay.portlet.wiki.model.WikiNode returnValue = WikiNodeServiceUtil.updateNode(nodeId,
177 name, description);
178
179 return com.liferay.portlet.wiki.model.WikiNodeSoap.toSoapModel(returnValue);
180 }
181 catch (Exception e) {
182 _log.error(e, e);
183
184 throw new RemoteException(e.getMessage());
185 }
186 }
187
188 private static Log _log = LogFactoryUtil.getLog(WikiNodeServiceSoap.class);
189 }