001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.service.RepositoryServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
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 com.liferay.portal.model.RepositorySoap getRepository(
080 long repositoryId) throws RemoteException {
081 try {
082 com.liferay.portal.model.Repository returnValue = RepositoryServiceUtil.getRepository(repositoryId);
083
084 return com.liferay.portal.model.RepositorySoap.toSoapModel(returnValue);
085 }
086 catch (Exception e) {
087 _log.error(e, e);
088
089 throw new RemoteException(e.getMessage());
090 }
091 }
092
093 public static java.lang.String[] getSupportedConfigurations(
094 long classNameId) throws RemoteException {
095 try {
096 java.lang.String[] returnValue = RepositoryServiceUtil.getSupportedConfigurations(classNameId);
097
098 return returnValue;
099 }
100 catch (Exception e) {
101 _log.error(e, e);
102
103 throw new RemoteException(e.getMessage());
104 }
105 }
106
107 public static java.lang.String[] getSupportedParameters(long classNameId,
108 java.lang.String configuration) throws RemoteException {
109 try {
110 java.lang.String[] returnValue = RepositoryServiceUtil.getSupportedParameters(classNameId,
111 configuration);
112
113 return returnValue;
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
123 long repositoryId) throws RemoteException {
124 try {
125 com.liferay.portal.kernel.util.UnicodeProperties returnValue = RepositoryServiceUtil.getTypeSettingsProperties(repositoryId);
126
127 return returnValue;
128 }
129 catch (Exception e) {
130 _log.error(e, e);
131
132 throw new RemoteException(e.getMessage());
133 }
134 }
135
136 public static void unmountRepositories(long groupId)
137 throws RemoteException {
138 try {
139 RepositoryServiceUtil.unmountRepositories(groupId);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static void unmountRepository(long repositoryId)
149 throws RemoteException {
150 try {
151 RepositoryServiceUtil.unmountRepository(repositoryId);
152 }
153 catch (Exception e) {
154 _log.error(e, e);
155
156 throw new RemoteException(e.getMessage());
157 }
158 }
159
160 public static void updateRepository(long repositoryId,
161 java.lang.String name, java.lang.String description)
162 throws RemoteException {
163 try {
164 RepositoryServiceUtil.updateRepository(repositoryId, name,
165 description);
166 }
167 catch (Exception e) {
168 _log.error(e, e);
169
170 throw new RemoteException(e.getMessage());
171 }
172 }
173
174 private static Log _log = LogFactoryUtil.getLog(RepositoryServiceSoap.class);
175 }