优化权限控制

This commit is contained in:
zhouhao
2017-08-15 22:30:06 +08:00
parent 0dd2540580
commit 515c8f9155
4 changed files with 22 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ import java.util.Set;
* 权限控制定义,定义权限控制的方式
*
* @author zhouhao
* @see AuthorizeDefinitionParser
* @see AopMethodAuthorizeDefinitionParser
* @since 3.0
*/
public interface AuthorizeDefinition {
@@ -26,7 +26,7 @@ public interface AuthorizeDefinition {
* @return 是否进行数据权限控制
* @see org.hswebframework.web.authorization.access.DataAccessController
*/
boolean isDataAccessControll();
boolean isDataAccessControl();
/**
* @return 要控制的权限
@@ -74,4 +74,6 @@ public interface AuthorizeDefinition {
* @return 当存在多个配置, 如:配置了多个permission或者actions. 进行判断的逻辑(或者,并且)
*/
Logical getLogical();
DataAccessDefinition getDataAccessDefinition();
}

View File

@@ -0,0 +1,17 @@
package org.hswebframework.web.authorization.define;
import java.io.Serializable;
/**
*
* @author zhouhao
* @see org.hswebframework.web.authorization.annotation.RequiresDataAccess
*/
public interface DataAccessDefinition extends Serializable {
String getController();
String getIdParameterName();
}

View File

@@ -1,6 +1,5 @@
package org.hswebframework.web.authorization.define;
import java.util.Map;
/**
* 使用脚本进行权限控制

View File

@@ -16,6 +16,7 @@
<module>hsweb-authorization-oauth2</module>
<module>hsweb-authorization-shiro</module>
<module>hsweb-authorization-security</module>
<module>hsweb-authorization-basic</module>
</modules>