001
014
015 package com.liferay.portlet.blogs.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.blogs.service.BlogsEntryServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class BlogsEntryServiceSoap {
068 public static void deleteEntry(long entryId) throws RemoteException {
069 try {
070 BlogsEntryServiceUtil.deleteEntry(entryId);
071 }
072 catch (Exception e) {
073 _log.error(e, e);
074
075 throw new RemoteException(e.getMessage());
076 }
077 }
078
079 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getCompanyEntries(
080 long companyId, int status, int max) throws RemoteException {
081 try {
082 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
083 BlogsEntryServiceUtil.getCompanyEntries(companyId, status, max);
084
085 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
086 }
087 catch (Exception e) {
088 _log.error(e, e);
089
090 throw new RemoteException(e.getMessage());
091 }
092 }
093
094 public static com.liferay.portlet.blogs.model.BlogsEntrySoap getEntry(
095 long entryId) throws RemoteException {
096 try {
097 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(entryId);
098
099 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
100 }
101 catch (Exception e) {
102 _log.error(e, e);
103
104 throw new RemoteException(e.getMessage());
105 }
106 }
107
108 public static com.liferay.portlet.blogs.model.BlogsEntrySoap getEntry(
109 long groupId, java.lang.String urlTitle) throws RemoteException {
110 try {
111 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(groupId,
112 urlTitle);
113
114 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModel(returnValue);
115 }
116 catch (Exception e) {
117 _log.error(e, e);
118
119 throw new RemoteException(e.getMessage());
120 }
121 }
122
123 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
124 long groupId, int status, int max) throws RemoteException {
125 try {
126 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
127 BlogsEntryServiceUtil.getGroupEntries(groupId, status, max);
128
129 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
130 }
131 catch (Exception e) {
132 _log.error(e, e);
133
134 throw new RemoteException(e.getMessage());
135 }
136 }
137
138 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
139 long groupId, int status, int start, int end) throws RemoteException {
140 try {
141 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
142 BlogsEntryServiceUtil.getGroupEntries(groupId, status, start,
143 end);
144
145 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
146 }
147 catch (Exception e) {
148 _log.error(e, e);
149
150 throw new RemoteException(e.getMessage());
151 }
152 }
153
154 public static int getGroupEntriesCount(long groupId, int status)
155 throws RemoteException {
156 try {
157 int returnValue = BlogsEntryServiceUtil.getGroupEntriesCount(groupId,
158 status);
159
160 return returnValue;
161 }
162 catch (Exception e) {
163 _log.error(e, e);
164
165 throw new RemoteException(e.getMessage());
166 }
167 }
168
169 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupsEntries(
170 long companyId, long groupId, int status, int max)
171 throws RemoteException {
172 try {
173 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
174 BlogsEntryServiceUtil.getGroupsEntries(companyId, groupId,
175 status, max);
176
177 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getOrganizationEntries(
187 long organizationId, int status, int max) throws RemoteException {
188 try {
189 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
190 BlogsEntryServiceUtil.getOrganizationEntries(organizationId,
191 status, max);
192
193 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
194 }
195 catch (Exception e) {
196 _log.error(e, e);
197
198 throw new RemoteException(e.getMessage());
199 }
200 }
201
202 public static void subscribe(long groupId) throws RemoteException {
203 try {
204 BlogsEntryServiceUtil.subscribe(groupId);
205 }
206 catch (Exception e) {
207 _log.error(e, e);
208
209 throw new RemoteException(e.getMessage());
210 }
211 }
212
213 public static void unsubscribe(long groupId) throws RemoteException {
214 try {
215 BlogsEntryServiceUtil.unsubscribe(groupId);
216 }
217 catch (Exception e) {
218 _log.error(e, e);
219
220 throw new RemoteException(e.getMessage());
221 }
222 }
223
224 private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceSoap.class);
225 }