1
19
20 package com.liferay.portlet.journal.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.journal.service.JournalStructureServiceUtil;
26
27 import java.rmi.RemoteException;
28
29
80 public class JournalStructureServiceSoap {
81 public static com.liferay.portlet.journal.model.JournalStructureSoap addStructure(
82 java.lang.String structureId, boolean autoStructureId, long plid,
83 java.lang.String name, java.lang.String description,
84 java.lang.String xsd, boolean addCommunityPermissions,
85 boolean addGuestPermissions) throws RemoteException {
86 try {
87 com.liferay.portlet.journal.model.JournalStructure returnValue = JournalStructureServiceUtil.addStructure(structureId,
88 autoStructureId, plid, name, description, xsd,
89 addCommunityPermissions, addGuestPermissions);
90
91 return com.liferay.portlet.journal.model.JournalStructureSoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static com.liferay.portlet.journal.model.JournalStructureSoap addStructure(
101 java.lang.String structureId, boolean autoStructureId, long plid,
102 java.lang.String name, java.lang.String description,
103 java.lang.String xsd, java.lang.String[] communityPermissions,
104 java.lang.String[] guestPermissions) throws RemoteException {
105 try {
106 com.liferay.portlet.journal.model.JournalStructure returnValue = JournalStructureServiceUtil.addStructure(structureId,
107 autoStructureId, plid, name, description, xsd,
108 communityPermissions, guestPermissions);
109
110 return com.liferay.portlet.journal.model.JournalStructureSoap.toSoapModel(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portlet.journal.model.JournalStructureSoap copyStructure(
120 long groupId, java.lang.String oldStructureId,
121 java.lang.String newStructureId, boolean autoStructureId)
122 throws RemoteException {
123 try {
124 com.liferay.portlet.journal.model.JournalStructure returnValue = JournalStructureServiceUtil.copyStructure(groupId,
125 oldStructureId, newStructureId, autoStructureId);
126
127 return com.liferay.portlet.journal.model.JournalStructureSoap.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 deleteStructure(long groupId,
137 java.lang.String structureId) throws RemoteException {
138 try {
139 JournalStructureServiceUtil.deleteStructure(groupId, structureId);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static com.liferay.portlet.journal.model.JournalStructureSoap getStructure(
149 long groupId, java.lang.String structureId) throws RemoteException {
150 try {
151 com.liferay.portlet.journal.model.JournalStructure returnValue = JournalStructureServiceUtil.getStructure(groupId,
152 structureId);
153
154 return com.liferay.portlet.journal.model.JournalStructureSoap.toSoapModel(returnValue);
155 }
156 catch (Exception e) {
157 _log.error(e, e);
158
159 throw new RemoteException(e.getMessage());
160 }
161 }
162
163 public static com.liferay.portlet.journal.model.JournalStructureSoap updateStructure(
164 long groupId, java.lang.String structureId, java.lang.String name,
165 java.lang.String description, java.lang.String xsd)
166 throws RemoteException {
167 try {
168 com.liferay.portlet.journal.model.JournalStructure returnValue = JournalStructureServiceUtil.updateStructure(groupId,
169 structureId, name, description, xsd);
170
171 return com.liferay.portlet.journal.model.JournalStructureSoap.toSoapModel(returnValue);
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180 private static Log _log = LogFactoryUtil.getLog(JournalStructureServiceSoap.class);
181 }