mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-1656: Add per-user KSM vault functionality.
This commit is contained in:
@@ -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();
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user