1
22
23 package com.liferay.portlet.blogs.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.blogs.service.BlogsEntryServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
82 public class BlogsEntryServiceSoap {
83 public static void deleteEntry(long entryId) throws RemoteException {
84 try {
85 BlogsEntryServiceUtil.deleteEntry(entryId);
86 }
87 catch (Exception e) {
88 _log.error(e, e);
89
90 throw new RemoteException(e.getMessage());
91 }
92 }
93
94 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getCompanyEntries(
95 long companyId, int max) throws RemoteException {
96 try {
97 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
98 BlogsEntryServiceUtil.getCompanyEntries(companyId, max);
99
100 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(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.blogs.model.BlogsEntrySoap getEntry(
110 long entryId) throws RemoteException {
111 try {
112 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(entryId);
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 getEntry(
124 long groupId, java.lang.String urlTitle) throws RemoteException {
125 try {
126 com.liferay.portlet.blogs.model.BlogsEntry returnValue = BlogsEntryServiceUtil.getEntry(groupId,
127 urlTitle);
128
129 return com.liferay.portlet.blogs.model.BlogsEntrySoap.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 com.liferay.portlet.blogs.model.BlogsEntrySoap[] getGroupEntries(
139 long groupId, int max) throws RemoteException {
140 try {
141 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
142 BlogsEntryServiceUtil.getGroupEntries(groupId, max);
143
144 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
145 }
146 catch (Exception e) {
147 _log.error(e, e);
148
149 throw new RemoteException(e.getMessage());
150 }
151 }
152
153 public static com.liferay.portlet.blogs.model.BlogsEntrySoap[] getOrganizationEntries(
154 long organizationId, int max) throws RemoteException {
155 try {
156 java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> returnValue =
157 BlogsEntryServiceUtil.getOrganizationEntries(organizationId, max);
158
159 return com.liferay.portlet.blogs.model.BlogsEntrySoap.toSoapModels(returnValue);
160 }
161 catch (Exception e) {
162 _log.error(e, e);
163
164 throw new RemoteException(e.getMessage());
165 }
166 }
167
168 private static Log _log = LogFactoryUtil.getLog(BlogsEntryServiceSoap.class);
169 }