本文整理汇总了Java中org.thymeleaf.processor.element.IElementTagStructureHandler.removeElement方法的典型用法代码示例。如果您正苦于以下问题:Java IElementTagStructureHandler.removeElement方法的具体用法?Java IElementTagStructureHandler.removeElement怎么用?Java IElementTagStructureHandler.removeElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.thymeleaf.processor.element.IElementTagStructureHandler
的用法示例。
在下文中一共展示了IElementTagStructureHandler.removeElement方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allRolesStr = tag.getAttributeValue("name");
final String[] roles = StringUtils.split(allRolesStr, DELIMITER);
if(ShiroFacade.hasAllRoles(roles)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例2: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] roles = StringUtils.split(attributeValue, DELIMITER);
if(!ShiroFacade.hasAnyRoles(roles)){
structureHandler.removeElement();
}
}
示例3: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] permissions = StringUtils.split(attributeValue, DELIMITER);
if(!ShiroFacade.hasAllPermissions(permissions)){
structureHandler.removeElement();
}
}
示例4: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] permissions = StringUtils.split(attributeValue, DELIMITER);
if(ShiroFacade.hasAnyPermissions(permissions)){
structureHandler.removeElement();
}
}
示例5: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
if(!ShiroFacade.isGuest()){
structureHandler.removeElement();
}
}
示例6: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] roles = StringUtils.split(attributeValue, DELIMITER);
if(!ShiroFacade.hasAllRoles(roles)){
structureHandler.removeElement();
}
}
示例7: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
if(!ShiroFacade.isUser()){
structureHandler.removeElement();
}
}
示例8: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] roles = StringUtils.split(attributeValue, DELIMITER);
if(ShiroFacade.hasAnyRoles(roles)){
structureHandler.removeElement();
}
}
示例9: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final AttributeName attributeName, final String attributeValue,
final IElementTagStructureHandler structureHandler) {
final String[] permissions = StringUtils.split(attributeValue, DELIMITER);
if(!ShiroFacade.hasAnyPermissions(permissions)){
structureHandler.removeElement();
}
}
示例10: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allRolesStr = tag.getAttributeValue("name");
final String[] roles = StringUtils.split(allRolesStr, DELIMITER);
if(!ShiroFacade.hasAnyRoles(roles)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例11: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allPermissionsStr = tag.getAttributeValue("name");
final String[] permissions = StringUtils.split(allPermissionsStr, DELIMITER);
if(ShiroFacade.hasAllPermissions(permissions)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例12: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allPermissionsStr = tag.getAttributeValue("name");
final String[] permissions = StringUtils.split(allPermissionsStr, DELIMITER);
if(ShiroFacade.hasAnyPermissions(permissions)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例13: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allRolesStr = tag.getAttributeValue("name");
final String[] roles = StringUtils.split(allRolesStr, DELIMITER);
if(ShiroFacade.hasAllRoles(roles)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例14: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
final String allPermissionsStr = tag.getAttributeValue("name");
final String[] permissions = StringUtils.split(allPermissionsStr, DELIMITER);
if(!ShiroFacade.hasAnyPermissions(permissions)){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}
示例15: doProcess
import org.thymeleaf.processor.element.IElementTagStructureHandler; //导入方法依赖的package包/类
@Override
protected void doProcess(
final ITemplateContext context, final IProcessableElementTag tag,
final IElementTagStructureHandler structureHandler) {
if(ShiroFacade.isUser()){
structureHandler.removeTags();
} else {
structureHandler.removeElement();
}
}