1
22
23 package com.liferay.portlet.softwarecatalog.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.softwarecatalog.service.SCFrameworkVersionServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
83 public class SCFrameworkVersionServiceSoap {
84 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap addFrameworkVersion(
85 long plid, java.lang.String name, java.lang.String url, boolean active,
86 int priority, boolean addCommunityPermissions,
87 boolean addGuestPermissions) throws RemoteException {
88 try {
89 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
90 SCFrameworkVersionServiceUtil.addFrameworkVersion(plid, name,
91 url, active, priority, addCommunityPermissions,
92 addGuestPermissions);
93
94 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
95 }
96 catch (Exception e) {
97 _log.error(e, e);
98
99 throw new RemoteException(e.getMessage());
100 }
101 }
102
103 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap addFrameworkVersion(
104 long plid, java.lang.String name, java.lang.String url, boolean active,
105 int priority, java.lang.String[] communityPermissions,
106 java.lang.String[] guestPermissions) throws RemoteException {
107 try {
108 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
109 SCFrameworkVersionServiceUtil.addFrameworkVersion(plid, name,
110 url, active, priority, communityPermissions,
111 guestPermissions);
112
113 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static void deleteFrameworkVersion(long frameworkVersionId)
123 throws RemoteException {
124 try {
125 SCFrameworkVersionServiceUtil.deleteFrameworkVersion(frameworkVersionId);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap getFrameworkVersion(
135 long frameworkVersionId) throws RemoteException {
136 try {
137 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
138 SCFrameworkVersionServiceUtil.getFrameworkVersion(frameworkVersionId);
139
140 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap[] getFrameworkVersions(
150 long groupId, boolean active) throws RemoteException {
151 try {
152 java.util.List returnValue = SCFrameworkVersionServiceUtil.getFrameworkVersions(groupId,
153 active);
154
155 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModels(returnValue);
156 }
157 catch (Exception e) {
158 _log.error(e, e);
159
160 throw new RemoteException(e.getMessage());
161 }
162 }
163
164 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap[] getFrameworkVersions(
165 long groupId, boolean active, int begin, int end)
166 throws RemoteException {
167 try {
168 java.util.List returnValue = SCFrameworkVersionServiceUtil.getFrameworkVersions(groupId,
169 active, begin, end);
170
171 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModels(returnValue);
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap updateFrameworkVersion(
181 long frameworkVersionId, java.lang.String name, java.lang.String url,
182 boolean active, int priority) throws RemoteException {
183 try {
184 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
185 SCFrameworkVersionServiceUtil.updateFrameworkVersion(frameworkVersionId,
186 name, url, active, priority);
187
188 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
189 }
190 catch (Exception e) {
191 _log.error(e, e);
192
193 throw new RemoteException(e.getMessage());
194 }
195 }
196
197 private static Log _log = LogFactoryUtil.getLog(SCFrameworkVersionServiceSoap.class);
198 }