Class UserPrincipalRoles
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<String>
-
- org.apache.wicket.authroles.authorization.strategies.role.Roles
-
- org.wicketstuff.wicket.servlet3.auth.UserPrincipalRoles
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,Set<String>,IClusterable
public class UserPrincipalRoles extends Roles
Implementation of Roles class that use the servlet 3 request object to determine the current user roles.- Author:
- jsarman
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserPrincipalRoles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasAllRoles(Roles roles)booleanhasAnyRole(Roles roles)booleanhasRole(String role)-
Methods inherited from class org.apache.wicket.authroles.authorization.strategies.role.Roles
toString
-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
hasAllRoles
public final boolean hasAllRoles(Roles roles)
- Overrides:
hasAllRolesin classRoles
-
hasAnyRole
public final boolean hasAnyRole(Roles roles)
- Overrides:
hasAnyRolein classRoles
-
-