当前位置: 首页>>代码示例>>Java>>正文


Java IElementTagStructureHandler.removeElement方法代码示例

本文整理汇总了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();
	}

}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:17,代码来源:HasRoleElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:HasAnyRolesAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:HasPermissionAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:lacksPermissionAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:11,代码来源:GuestAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:HasAllRolesAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:11,代码来源:UserAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:LacksRoleAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:HasAnyPermissionsAttributeTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:16,代码来源:LacksRoleElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:16,代码来源:HasAllPermissionsElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:16,代码来源:HasAnyPermissionsElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:16,代码来源:HasAllRolesElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:16,代码来源:LacksPermissionElementTagProcessor.java

示例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();
	}
}
 
开发者ID:usydapeng,项目名称:thymeleaf3-shiro,代码行数:12,代码来源:UserElementTagProcessor.java


注:本文中的org.thymeleaf.processor.element.IElementTagStructureHandler.removeElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。