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 Optional<String> |
getTenantIdAttribute(org.togglz.core.user.FeatureUser featureUser)
Returns an
Optional that may contain the tenant Id of the given FeatureUser . |
public static final String TENANT_ID
public TenantSpecificUserProvider(Authorization featureToggleAuthorization)
public static Optional<String> getTenantIdAttribute(org.togglz.core.user.FeatureUser featureUser)
Optional
that may contain the tenant Id of the given FeatureUser
.featureUser
- The user to get the tenant Id for.Optional
that may contain the tenant Id.public org.togglz.core.user.FeatureUser getCurrentUser()
getCurrentUser
in interface org.togglz.core.user.UserProvider
Copyright © 2018 SAP SE. All rights reserved.