mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 19:02:44 +08:00
优化权限控制
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package org.hswebframework.web.authorization.define;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 使用脚本进行权限控制
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user