GUACAMOLE-1479: Move disabled methods up to new Disableable interface.

This commit is contained in:
Virtually Nick committed 2024-04-03 19:33:07 -04:00
1 parent 61457686e3
commit 732a4c5762
6 files changed
+50 -104

No files matched your search

@@ -78,28 +78,6 @@ public class SharedUser implements User {
public void setIdentifier(String identifier) {
throw new UnsupportedOperationException("Users authenticated via share keys are immutable.");
}
/**
* {@inheritDoc}
*
* <p>SharedUser accounts are always enabled, as access is controlled via
* the shared token.
*/
@Override
public boolean isDisabled() {
return false;
}
/**
* {@inheritDoc}
*
* <p>This method silently ignores the value passed in the disabled parameter,
* as disabling the account is done by invalidating the sharing token.
*/
@Override
public void setDisabled(boolean disabled) {
// Silently ignore the parameter
}
@Override
public Map<String, String> getAttributes() {