public final class AuthorizationGroups extends Object
| Constructor and Description |
|---|
AuthorizationGroups() |
| Modifier and Type | Method and Description |
|---|---|
static rst.domotic.unit.UnitConfigType.UnitConfig |
addAuthorizationGroup(String groupName) |
static void |
addListObserver(Consumer<List<rst.domotic.unit.UnitConfigType.UnitConfig>> observer)
Adds an Observer to the list of additional observers, which will be informed if the groups change.
|
static javafx.collections.ObservableList<rst.domotic.unit.UnitConfigType.UnitConfig> |
getAuthorizationGroups() |
static List<rst.domotic.unit.UnitConfigType.UnitConfig> |
getGroupsByUser(String userId) |
static void |
removeAuthorizationGroup(rst.domotic.unit.UnitConfigType.UnitConfig group) |
static void |
removeListObserver(Consumer<? extends List<rst.domotic.unit.UnitConfigType.UnitConfig>> observer)
Removes an Observer from the list of additional observers.
|
static javafx.util.StringConverter<rst.domotic.unit.UnitConfigType.UnitConfig> |
stringConverter(List<rst.domotic.unit.UnitConfigType.UnitConfig> groups) |
static Future<rst.domotic.unit.UnitConfigType.UnitConfig> |
tryAddAuthorizationGroup(String groupName) |
static void |
tryAddToGroup(rst.domotic.unit.UnitConfigType.UnitConfig group,
String userId) |
static void |
tryRemoveFromGroup(rst.domotic.unit.UnitConfigType.UnitConfig group,
String userId) |
public static void addListObserver(Consumer<List<rst.domotic.unit.UnitConfigType.UnitConfig>> observer)
observer - the consumer to addpublic static void removeListObserver(Consumer<? extends List<rst.domotic.unit.UnitConfigType.UnitConfig>> observer)
observer - the consumer to removepublic static javafx.collections.ObservableList<rst.domotic.unit.UnitConfigType.UnitConfig> getAuthorizationGroups()
public static javafx.util.StringConverter<rst.domotic.unit.UnitConfigType.UnitConfig> stringConverter(List<rst.domotic.unit.UnitConfigType.UnitConfig> groups)
public static void removeAuthorizationGroup(rst.domotic.unit.UnitConfigType.UnitConfig group)
throws InterruptedException,
org.openbase.jul.exception.CouldNotPerformException
InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic static rst.domotic.unit.UnitConfigType.UnitConfig addAuthorizationGroup(String groupName) throws InterruptedException, org.openbase.jul.exception.CouldNotPerformException
InterruptedExceptionorg.openbase.jul.exception.CouldNotPerformExceptionpublic static Future<rst.domotic.unit.UnitConfigType.UnitConfig> tryAddAuthorizationGroup(String groupName) throws org.openbase.jul.exception.CouldNotPerformException, InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic static void tryAddToGroup(rst.domotic.unit.UnitConfigType.UnitConfig group,
String userId)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionpublic static List<rst.domotic.unit.UnitConfigType.UnitConfig> getGroupsByUser(String userId)
public static void tryRemoveFromGroup(rst.domotic.unit.UnitConfigType.UnitConfig group,
String userId)
throws org.openbase.jul.exception.CouldNotPerformException,
InterruptedException
org.openbase.jul.exception.CouldNotPerformExceptionInterruptedExceptionCopyright © 2015–2018 openbase.org. All rights reserved.