public class AccessRestrictionExpressionRoot extends Object
Expression
s that are used to evaluate
access restrictions.Constructor and Description |
---|
AccessRestrictionExpressionRoot() |
Modifier and Type | Method and Description |
---|---|
boolean |
denyAll()
Always returns false (deny access to everyone).
|
boolean |
hasAnyRole(Collection<String> roles)
Returns trues if the profile has any of the specified roles.
|
boolean |
hasRole(String role)
Returns trues if the profile has the specified role.
|
boolean |
isAnonymous()
Returns trues if user is anonymous.
|
boolean |
isAuthenticated()
Returns trues if user is authenticated.
|
boolean |
permitAll()
Always returns true (allow access to everyone).
|
void |
setProfile(Profile profile) |
public void setProfile(Profile profile)
public boolean isAnonymous()
public boolean isAuthenticated()
public boolean hasRole(String role)
public boolean hasAnyRole(Collection<String> roles)
public boolean permitAll()
public boolean denyAll()
Copyright © 2023 CrafterCMS. All rights reserved.