001
014
015 package com.liferay.portlet.softwarecatalog.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.softwarecatalog.service.SCFrameworkVersionServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class SCFrameworkVersionServiceSoap {
067 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap addFrameworkVersion(
068 java.lang.String name, java.lang.String url, boolean active,
069 int priority, com.liferay.portal.service.ServiceContext serviceContext)
070 throws RemoteException {
071 try {
072 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
073 SCFrameworkVersionServiceUtil.addFrameworkVersion(name, url,
074 active, priority, serviceContext);
075
076 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.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 deleteFrameworkVersion(long frameworkVersionId)
086 throws RemoteException {
087 try {
088 SCFrameworkVersionServiceUtil.deleteFrameworkVersion(frameworkVersionId);
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.softwarecatalog.model.SCFrameworkVersionSoap getFrameworkVersion(
098 long frameworkVersionId) throws RemoteException {
099 try {
100 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
101 SCFrameworkVersionServiceUtil.getFrameworkVersion(frameworkVersionId);
102
103 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap[] getFrameworkVersions(
113 long groupId, boolean active) throws RemoteException {
114 try {
115 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> returnValue =
116 SCFrameworkVersionServiceUtil.getFrameworkVersions(groupId,
117 active);
118
119 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModels(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.softwarecatalog.model.SCFrameworkVersionSoap[] getFrameworkVersions(
129 long groupId, boolean active, int start, int end)
130 throws RemoteException {
131 try {
132 java.util.List<com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion> returnValue =
133 SCFrameworkVersionServiceUtil.getFrameworkVersions(groupId,
134 active, start, end);
135
136 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModels(returnValue);
137 }
138 catch (Exception e) {
139 _log.error(e, e);
140
141 throw new RemoteException(e.getMessage());
142 }
143 }
144
145 public static com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap updateFrameworkVersion(
146 long frameworkVersionId, java.lang.String name, java.lang.String url,
147 boolean active, int priority) throws RemoteException {
148 try {
149 com.liferay.portlet.softwarecatalog.model.SCFrameworkVersion returnValue =
150 SCFrameworkVersionServiceUtil.updateFrameworkVersion(frameworkVersionId,
151 name, url, active, priority);
152
153 return com.liferay.portlet.softwarecatalog.model.SCFrameworkVersionSoap.toSoapModel(returnValue);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 private static Log _log = LogFactoryUtil.getLog(SCFrameworkVersionServiceSoap.class);
163 }