public final class AccessRulesService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
I18N_DEFAULT_MESSAGE_UNAUTHORIZED
Session attribute that stores the LuteceUser object attached to the session.
|
static String |
I18N_DEFAULT_TITLE_MESSAGE_UNAUTHORIZED
The Constant I18N_DEFAULT_TITLE_MESSAGE_UNAUTHORIZED.
|
static String |
MARK_PORTAL_AUTHENTICATION_REQUIRED
The Constant MARK_PORTAL_AUTHENTICATION_REQUIRED.
|
static String |
MARK_PUBLIC_LIST_URL
The Constant MARK_PUBLIC_LIST_URL.
|
static String |
PUBLIC_URL_PREFIX
The Constant PUBLIC_URL_PREFIX.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildRedirectUrl(Rule rule,
javax.servlet.http.HttpServletRequest request)
Builds the redirect url depending to the rule specification
|
Rule |
geFirstRuleTriggered(javax.servlet.http.HttpServletRequest request)
Ge the first rule triggered.
|
AccessRulesCacheService |
getCache()
Gets the cache.
|
static AccessRulesService |
getInstance()
Get the unique instance of the AccessRulesService
|
List<Rule> |
getRulesEnabled()
Gets the list of enabled rules
|
boolean |
isAccessRulesEnabled()
Checks if is access rules enabled.
|
boolean |
isRuleMatchingRequest(Rule rule,
javax.servlet.http.HttpServletRequest request)
Checks if this rule match the request.
|
boolean |
matchUrl(javax.servlet.http.HttpServletRequest request,
String strUrlPatern)
method to test if the URL matches the pattern.
|
public static final String I18N_DEFAULT_MESSAGE_UNAUTHORIZED
public static final String I18N_DEFAULT_TITLE_MESSAGE_UNAUTHORIZED
public static final String MARK_PUBLIC_LIST_URL
public static final String PUBLIC_URL_PREFIX
public static final String MARK_PORTAL_AUTHENTICATION_REQUIRED
public static AccessRulesService getInstance()
public boolean isAccessRulesEnabled()
public AccessRulesCacheService getCache()
public List<Rule> getRulesEnabled()
public Rule geFirstRuleTriggered(javax.servlet.http.HttpServletRequest request)
request - the requestpublic boolean isRuleMatchingRequest(Rule rule, javax.servlet.http.HttpServletRequest request)
rule - the rulerequest - the requestpublic boolean matchUrl(javax.servlet.http.HttpServletRequest request,
String strUrlPatern)
request - the requeststrUrlPatern - the patternCopyright © 2022 City of Paris. All rights reserved.