mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-28 03:41:48 +08:00
CB-1356 API fixes (return type)
This commit is contained in:
+2
-2
@@ -146,7 +146,7 @@ public interface DBWServiceAdmin extends DBWService {
|
||||
@WebAction(requirePermissions = DBWConstants.PERMISSION_ADMIN)
|
||||
WebPropertyInfo saveUserMetaParameter(WebSession webSession, String id, String displayName, String description, Boolean required) throws DBWebException;
|
||||
@WebAction(requirePermissions = DBWConstants.PERMISSION_ADMIN)
|
||||
Object deleteUserMetaParameter(WebSession webSession, String id) throws DBWebException;
|
||||
Boolean deleteUserMetaParameter(WebSession webSession, String id) throws DBWebException;
|
||||
@WebAction(requirePermissions = DBWConstants.PERMISSION_ADMIN)
|
||||
Object setUserMetaParameterValues(WebSession webSession, String userId, Map<String, Object> parameters) throws DBWebException;
|
||||
Boolean setUserMetaParameterValues(WebSession webSession, String userId, Map<String, Object> parameters) throws DBWebException;
|
||||
}
|
||||
|
||||
+3
-3
@@ -600,15 +600,15 @@ public class WebServiceAdmin implements DBWServiceAdmin {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object deleteUserMetaParameter(WebSession webSession, String id) throws DBWebException {
|
||||
public Boolean deleteUserMetaParameter(WebSession webSession, String id) throws DBWebException {
|
||||
throw new DBWebException("Not implemented");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object setUserMetaParameterValues(WebSession webSession, String userId, Map<String, Object> parameters) throws DBWebException {
|
||||
public Boolean setUserMetaParameterValues(WebSession webSession, String userId, Map<String, Object> parameters) throws DBWebException {
|
||||
try {
|
||||
CBApplication.getInstance().getSecurityController().setUserMeta(userId, parameters);
|
||||
return parameters;
|
||||
return true;
|
||||
} catch (DBCException e) {
|
||||
throw new DBWebException("Error changing user '" + userId + "' meta parameters", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user