GUACAMOLE-1656: Merge support for per-user KSM vaults.

This commit is contained in:
Mike Jumper
2022-09-28 15:06:40 -07:00
committed by GitHub
26 changed files with 1279 additions and 266 deletions

View File

@@ -127,6 +127,11 @@ public class DelegatingUserContext implements UserContext {
return userContext.getUserAttributes();
}
@Override
public Collection<Form> getUserPreferenceAttributes() {
return userContext.getUserPreferenceAttributes();
}
@Override
public Collection<Form> getUserGroupAttributes() {
return userContext.getUserGroupAttributes();

View File

@@ -20,6 +20,8 @@
package org.apache.guacamole.net.auth;
import java.util.Collection;
import java.util.Collections;
import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.form.Form;
@@ -211,6 +213,21 @@ public interface UserContext {
*/
Collection<Form> getUserAttributes();
/**
* Retrieves a collection of user attributes, specific to the user preferences
* page in the UI. Unlike standard user attributes, these should be self-editable.
*
* @return
* A collection of form of user attributes, specific to the user preferences
* page in the UI.
*/
default Collection<Form> getUserPreferenceAttributes() {
// By default, a user context does not expose any preference user attributes
return Collections.emptyList();
}
/**
* Retrieves a collection of all attributes applicable to user groups. This
* collection will contain only those attributes which the current user has