mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-16 05:20:42 +08:00
RBAC Support
1、RBAC 基于角色的访问控制(Role-Based Access Control )支持 2、修复用户组访问权限删除问题 3、DAO层整合 4、Javascript验证及AJAX提交优化
This commit is contained in:
@@ -1,60 +1,51 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.maxkey.domain.apps;
|
||||
|
||||
/**
|
||||
* UserApps .
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
public class UserApps extends Apps {
|
||||
private static final long serialVersionUID = 3186085827268041549L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3186085827268041549L;
|
||||
|
||||
private String username;
|
||||
|
||||
private String userId;
|
||||
private String username;
|
||||
|
||||
private String displayName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public UserApps() {
|
||||
|
||||
}
|
||||
private String userId;
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
private String displayName;
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
public UserApps() {
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getDisplayName() {
|
||||
return displayName;
|
||||
}
|
||||
|
||||
public void setDisplayName(String displayName) {
|
||||
this.displayName = displayName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UserApplications [username=" + username
|
||||
+ ", userId=" + userId + ", displayName=" + displayName + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "UserApplications [username=" + username + ", userId=" + userId
|
||||
+ ", displayName=" + displayName + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ import org.springframework.web.context.support.WebApplicationContextUtils;
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
public class InitApplicationContext extends HttpServlet {
|
||||
private static final Logger _logger = LoggerFactory.getLogger(InitApplicationContext.class);
|
||||
public class InitializeContext extends HttpServlet {
|
||||
private static final Logger _logger = LoggerFactory.getLogger(InitializeContext.class);
|
||||
private static final long serialVersionUID = -797399138268601444L;
|
||||
ApplicationContext applicationContext;
|
||||
|
||||
@@ -59,12 +59,12 @@ public class InitApplicationContext extends HttpServlet {
|
||||
/**
|
||||
* InitApplicationContext.
|
||||
*/
|
||||
public InitApplicationContext() {
|
||||
public InitializeContext() {
|
||||
this.applicationContext =
|
||||
WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
|
||||
}
|
||||
|
||||
public InitApplicationContext(ConfigurableApplicationContext applicationContext) {
|
||||
public InitializeContext(ConfigurableApplicationContext applicationContext) {
|
||||
this.applicationContext = applicationContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user