public class TenantSpecificUserProvider extends Object implements org.togglz.core.user.UserProvider
UserProvider
.Constructor and Description |
---|
TenantSpecificUserProvider(Authorization featureToggleAuthorization) |
Modifier and Type | Method and Description |
---|---|
org.togglz.core.user.FeatureUser |
getCurrentUser() |
static io.vavr.control.Option<String> |
getTenantIdAttribute(org.togglz.core.user.FeatureUser featureUser)
Returns an
Option that may contain the tenant Id of the given FeatureUser . |
public static final String TENANT_ID
public TenantSpecificUserProvider(@Nonnull Authorization featureToggleAuthorization)
@Nonnull public static io.vavr.control.Option<String> getTenantIdAttribute(@Nonnull org.togglz.core.user.FeatureUser featureUser)
Option
that may contain the tenant Id of the given FeatureUser
.featureUser
- The user to get the tenant Id for.Option
that may contain the tenant Id.@Nullable public org.togglz.core.user.FeatureUser getCurrentUser()
getCurrentUser
in interface org.togglz.core.user.UserProvider
Copyright © 2020 SAP SE. All rights reserved.