001
014
015 package com.liferay.portal.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.service.RepositoryServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
065 @ProviderType
066 public class RepositoryServiceSoap {
067 public static void checkRepository(long repositoryId)
068 throws RemoteException {
069 try {
070 RepositoryServiceUtil.checkRepository(repositoryId);
071 }
072 catch (Exception e) {
073 _log.error(e, e);
074
075 throw new RemoteException(e.getMessage());
076 }
077 }
078
079 public static void deleteRepository(long repositoryId)
080 throws RemoteException {
081 try {
082 RepositoryServiceUtil.deleteRepository(repositoryId);
083 }
084 catch (Exception e) {
085 _log.error(e, e);
086
087 throw new RemoteException(e.getMessage());
088 }
089 }
090
091 public static com.liferay.portal.model.RepositorySoap getRepository(
092 long repositoryId) throws RemoteException {
093 try {
094 com.liferay.portal.model.Repository returnValue = RepositoryServiceUtil.getRepository(repositoryId);
095
096 return com.liferay.portal.model.RepositorySoap.toSoapModel(returnValue);
097 }
098 catch (Exception e) {
099 _log.error(e, e);
100
101 throw new RemoteException(e.getMessage());
102 }
103 }
104
105 public static java.lang.String[] getSupportedConfigurations(
106 long classNameId) throws RemoteException {
107 try {
108 java.lang.String[] returnValue = RepositoryServiceUtil.getSupportedConfigurations(classNameId);
109
110 return returnValue;
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119
123 @Deprecated
124 public static java.lang.String[] getSupportedParameters(long classNameId,
125 java.lang.String configuration) throws RemoteException {
126 try {
127 java.lang.String[] returnValue = RepositoryServiceUtil.getSupportedParameters(classNameId,
128 configuration);
129
130 return returnValue;
131 }
132 catch (Exception e) {
133 _log.error(e, e);
134
135 throw new RemoteException(e.getMessage());
136 }
137 }
138
139 public static java.lang.String[] getSupportedParameters(
140 java.lang.String className, java.lang.String configuration)
141 throws RemoteException {
142 try {
143 java.lang.String[] returnValue = RepositoryServiceUtil.getSupportedParameters(className,
144 configuration);
145
146 return returnValue;
147 }
148 catch (Exception e) {
149 _log.error(e, e);
150
151 throw new RemoteException(e.getMessage());
152 }
153 }
154
155 public static com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
156 long repositoryId) throws RemoteException {
157 try {
158 com.liferay.portal.kernel.util.UnicodeProperties returnValue = RepositoryServiceUtil.getTypeSettingsProperties(repositoryId);
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 void updateRepository(long repositoryId,
170 java.lang.String name, java.lang.String description)
171 throws RemoteException {
172 try {
173 RepositoryServiceUtil.updateRepository(repositoryId, name,
174 description);
175 }
176 catch (Exception e) {
177 _log.error(e, e);
178
179 throw new RemoteException(e.getMessage());
180 }
181 }
182
183 private static Log _log = LogFactoryUtil.getLog(RepositoryServiceSoap.class);
184 }