001
014
015 package com.liferay.portlet.journal.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.journal.service.JournalTemplateServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
067 public class JournalTemplateServiceSoap {
068 public static com.liferay.portlet.journal.model.JournalTemplateSoap copyTemplate(
069 long groupId, java.lang.String oldTemplateId,
070 java.lang.String newTemplateId, boolean autoTemplateId)
071 throws RemoteException {
072 try {
073 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.copyTemplate(groupId,
074 oldTemplateId, newTemplateId, autoTemplateId);
075
076 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
077 }
078 catch (Exception e) {
079 _log.error(e, e);
080
081 throw new RemoteException(e.getMessage());
082 }
083 }
084
085 public static void deleteTemplate(long groupId, java.lang.String templateId)
086 throws RemoteException {
087 try {
088 JournalTemplateServiceUtil.deleteTemplate(groupId, templateId);
089 }
090 catch (Exception e) {
091 _log.error(e, e);
092
093 throw new RemoteException(e.getMessage());
094 }
095 }
096
097 public static com.liferay.portlet.journal.model.JournalTemplateSoap[] getStructureTemplates(
098 long groupId, java.lang.String structureId) throws RemoteException {
099 try {
100 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> returnValue =
101 JournalTemplateServiceUtil.getStructureTemplates(groupId,
102 structureId);
103
104 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModels(returnValue);
105 }
106 catch (Exception e) {
107 _log.error(e, e);
108
109 throw new RemoteException(e.getMessage());
110 }
111 }
112
113 public static com.liferay.portlet.journal.model.JournalTemplateSoap getTemplate(
114 long groupId, java.lang.String templateId) throws RemoteException {
115 try {
116 com.liferay.portlet.journal.model.JournalTemplate returnValue = JournalTemplateServiceUtil.getTemplate(groupId,
117 templateId);
118
119 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModel(returnValue);
120 }
121 catch (Exception e) {
122 _log.error(e, e);
123
124 throw new RemoteException(e.getMessage());
125 }
126 }
127
128 public static com.liferay.portlet.journal.model.JournalTemplateSoap[] search(
129 long companyId, long[] groupIds, java.lang.String keywords,
130 java.lang.String structureId, java.lang.String structureIdComparator,
131 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws RemoteException {
133 try {
134 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> returnValue =
135 JournalTemplateServiceUtil.search(companyId, groupIds,
136 keywords, structureId, structureIdComparator, start, end,
137 obc);
138
139 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModels(returnValue);
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.JournalTemplateSoap[] search(
149 long companyId, long[] groupIds, java.lang.String templateId,
150 java.lang.String structureId, java.lang.String structureIdComparator,
151 java.lang.String name, java.lang.String description,
152 boolean andOperator, int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws RemoteException {
155 try {
156 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> returnValue =
157 JournalTemplateServiceUtil.search(companyId, groupIds,
158 templateId, structureId, structureIdComparator, name,
159 description, andOperator, start, end, obc);
160
161 return com.liferay.portlet.journal.model.JournalTemplateSoap.toSoapModels(returnValue);
162 }
163 catch (Exception e) {
164 _log.error(e, e);
165
166 throw new RemoteException(e.getMessage());
167 }
168 }
169
170 public static int searchCount(long companyId, long[] groupIds,
171 java.lang.String keywords, java.lang.String structureId,
172 java.lang.String structureIdComparator) throws RemoteException {
173 try {
174 int returnValue = JournalTemplateServiceUtil.searchCount(companyId,
175 groupIds, keywords, structureId, structureIdComparator);
176
177 return returnValue;
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 public static int searchCount(long companyId, long[] groupIds,
187 java.lang.String templateId, java.lang.String structureId,
188 java.lang.String structureIdComparator, java.lang.String name,
189 java.lang.String description, boolean andOperator)
190 throws RemoteException {
191 try {
192 int returnValue = JournalTemplateServiceUtil.searchCount(companyId,
193 groupIds, templateId, structureId, structureIdComparator,
194 name, description, andOperator);
195
196 return returnValue;
197 }
198 catch (Exception e) {
199 _log.error(e, e);
200
201 throw new RemoteException(e.getMessage());
202 }
203 }
204
205 private static Log _log = LogFactoryUtil.getLog(JournalTemplateServiceSoap.class);
206 }