public class DeltaSpikeUserProvider extends Object implements UserProvider
false
. Overriding isFeatureAdmin(Identity)
allows to change the
default behavior.Constructor and Description |
---|
DeltaSpikeUserProvider() |
Modifier and Type | Method and Description |
---|---|
FeatureUser |
getCurrentUser()
Return a
FeatureUser instance representing the current user. |
protected boolean |
isFeatureAdmin(org.apache.deltaspike.security.api.Identity identity)
Checks if the supplied user is a feature admin.
|
public FeatureUser getCurrentUser()
UserProvider
FeatureUser
instance representing the current user. This method should return null
if the
implementation is unable to determine the user.getCurrentUser
in interface UserProvider
null
protected boolean isFeatureAdmin(org.apache.deltaspike.security.api.Identity identity)
false
. Users can
overwrite this method to implement a different behavior.identity
- the identity of the usertrue
for feature admins, false
otherwiseCopyright © 2017. All Rights Reserved.