Giter Club home page Giter Club logo

nutzwx's Introduction

1)create database weixin

2)mvn clean

3)mvn eclipse:eclipse -Dwtpversion=1.0

4)mvn package -Dmaven.test.skip=true

5)mvn dependency:tree 可以查看依赖树

NutzWx

基于Nutz、Nutzwx 开源微信后台开发框架。

前台采用 jQuery、EasyUI-Tab、zDialog;

后端采用 Velocity 模板语言、Druid 连接池、Quartz 定时任务等。

0.1 beta:实现微信帐号的接入;

在 velocity 模板文件中,实现 shiro 权限验证

使用方法:

一、$shiro.isAuthenticated()
	功能说明:验证是否为已认证通过的用户,不包含已记住的用户,这是与 isUser 标签方法的区别所在。
	参数:无
	返回值:Boolean

二、$shiro.isNotAuthenticated()
	功能说明:验证是否为未认证通过用户,与 isAuthenticated 标签相对应,与 isGuest 标签的区别是,该标签包含已记住用户。
	参数:无
	返回值:Boolean

三、$shiro.isGuest()
	功能说明:验证当前用户是否为“访客”,即未认证(包含未记住)的用户。
	参数:无
	返回值:Boolean

四、$shiro.isUser()
	功能说明:验证当前用户是否认证通过或已记住的用户。
	参数:无
	返回值:Boolean

五、$shiro.getPrincipal()
	功能说明:获取当前用户 Principal。
	参数:无
	返回值:Object

六、$shiro.getPrincipalProperty(String property)
	功能说明:获取当前用户 Principal。
	参数:String property 用户属性
	返回值:Object

七、$shiro.hasRole(String role)
	功能说明:验证当前用户是否属于该角色 。
	参数:String role 角色名称
	返回值:Boolean

八、$shiro.lacksRole(String role)
	功能说明:验证当前用户是否不属于该角色,与 hasRole 标签逻辑相反。
	参数:String role 角色名称
	返回值:Boolean

九、$shiro.hasAnyRoles(String roleNames, String delimeter)
	功能说明:验证当前用户是否属于以下任意一个角色。
	参数:String roleNames 用户角色列表,以 delimeter 分割
		  String delimeter 用户角色分隔符
	返回值:Boolean

十、$shiro.hasAnyRoles(String roleNames)
	功能说明:验证当前用户是否属于以下任意一个角色。
	参数:String roleNames 用户角色列表,以 “," 分割
	返回值:Boolean

十一、$shiro.hasAnyRoles(Collection<String> roleNames)
	功能说明:验证当前用户是否属于以下任意一个角色。
	参数:Collection<String> roleNames 用户权限角色
	返回值:Boolean

十二、$shiro.hasAnyRoles(String[] roleNames)
	功能说明:验证当前用户是否属于以下任意一个角色。
	参数:String[] roleNames 用户权限角色
	返回值:Boolean

十三、$shiro.hasPermission(String permission)
	功能说明:验证当前用户是否拥有指定权限
	参数:String permission 权限名称
	返回值:Boolean

十四、$shiro.lacksPermission(String permission)
	功能说明:验证当前用户是否不拥有指定权限,与 hasPermission 逻辑相反。
	参数:String permission 权限名称
	返回值:Boolean

十五、$shiro.hasAnyPermissions(String permissions, String delimeter)
	功能说明:验证当前用户是否拥有以下任意一个权限。
	参数:String permissions 权限名称列表,以 delimeter 分割
		  String delimeter 用户权限分隔符
	返回值:Boolean

十六、$shiro.hasAnyPermissions(String permissions)
	功能说明:验证当前用户是否拥有以下任意一个权限。
	参数:String permissions 权限名称列表,以 “," 分割
	返回值:Boolean

十七、$shiro.hasAnyPermissions(Collection<String> permissions)
	功能说明:验证当前用户是否拥有以下任意一个权限。
	参数:Collection<String> 权限名称列表
	返回值:Boolean

十八、$shiro.hasAnyPermissions(String[] permissions)
	功能说明:验证当前用户是否拥有以下任意一个权限。
	参数:String[] 权限名称列表
	返回值:Boolean

=======

nutzwx's People

Contributors

rekoe avatar wizzercn avatar unhappydepig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.