Class AuthorizeUrlAttrProcessor
Object
org.thymeleaf.processor.AbstractProcessor
org.thymeleaf.processor.element.AbstractElementTagProcessor
org.thymeleaf.processor.element.AbstractAttributeTagProcessor
org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
org.thymeleaf.extras.springsecurity6.dialect.processor.AuthorizeUrlAttrProcessor
- All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor,org.thymeleaf.processor.element.IElementTagProcessor,org.thymeleaf.processor.IProcessor
public final class AuthorizeUrlAttrProcessor
extends org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
Renders the element children (*tag content*) if the authenticated user is
authorized to see the specified URL.
- Author:
- Daniel Fernández
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthorizeUrlAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix) -
Method Summary
Methods inherited from class org.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractAttributeTagProcessor
doProcessMethods inherited from class org.thymeleaf.processor.element.AbstractElementTagProcessor
getDialectPrefix, getMatchingAttributeName, getMatchingElementName, processMethods inherited from class org.thymeleaf.processor.AbstractProcessor
getPrecedence, getTemplateModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.thymeleaf.processor.IProcessor
getPrecedence, getTemplateMode
-
Field Details
-
ATTR_PRECEDENCE
public static final int ATTR_PRECEDENCE- See Also:
-
ATTR_NAME
- See Also:
-
-
Constructor Details
-
AuthorizeUrlAttrProcessor
public AuthorizeUrlAttrProcessor(org.thymeleaf.templatemode.TemplateMode templateMode, String dialectPrefix)
-
-
Method Details
-
isVisible
protected boolean isVisible(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.engine.AttributeName attributeName, String attributeValue) - Specified by:
isVisiblein classorg.thymeleaf.standard.processor.AbstractStandardConditionalVisibilityTagProcessor
-