public interface CurrentUser
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getGroups()
Gets a collection of all of the groups this user belongs to including
containing groups.
|
java.lang.String |
getId()
Get the id of the current user.
|
boolean |
isMember(java.lang.String groupName)
Returns true if the user is a member of the group, is the admin user or is a
member of the administrators group.
|
java.util.Collection<java.lang.String> getGroups()
java.lang.String getId()
boolean isMember(java.lang.String groupName)
groupName
- the name of the group to checkCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.