|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 User 的软件包 | |
|---|---|
| com.github.dactiv.showcase.common | |
| com.github.dactiv.showcase.entity.account | |
| com.github.dactiv.showcase.service.account | |
| com.github.dactiv.showcase.web.account | |
| com.github.dactiv.showcase.common 中 User 的使用 |
|---|
| 返回 User 的 com.github.dactiv.showcase.common 中的方法 | |
|---|---|
User |
SessionVariable.getUser()
获取当前用户 |
| 参数类型为 User 的 com.github.dactiv.showcase.common 中的方法 | |
|---|---|
void |
SessionVariable.setUser(User user)
设置当前用户 |
| 参数类型为 User 的 com.github.dactiv.showcase.common 中的构造方法 | |
|---|---|
SessionVariable(User user)
|
|
SessionVariable(User user,
List<Resource> authorizationInfo,
List<Resource> menusList)
|
|
| com.github.dactiv.showcase.entity.account 中 User 的使用 |
|---|
| 返回变量类型为 User 的类型的 com.github.dactiv.showcase.entity.account 中的方法 | |
|---|---|
List<User> |
Group.getMembersList()
获取组成员 |
| 类型变量类型为 User 的 com.github.dactiv.showcase.entity.account 中的方法参数 | |
|---|---|
void |
Group.setMembersList(List<User> membersList)
设置组成员 |
| com.github.dactiv.showcase.service.account 中 User 的使用 |
|---|
| 返回 User 的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
User |
AccountManager.getUser(String id)
通过id获取用户实体 |
User |
AccountManager.getUserByUsername(String username)
通过登录帐号获取用户实体 |
| 返回变量类型为 User 的类型的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
Page<User> |
AccountManager.searchUserPage(PageRequest request,
List<PropertyFilter> filters)
通过属性过滤器查询用户分页 |
| 参数类型为 User 的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
void |
AccountManager.deleteUser(User entity)
通过用户实体删除用户 |
void |
AccountManager.insertUser(User entity)
新增用户 |
void |
AccountManager.updateUser(User entity)
更新用户 |
| com.github.dactiv.showcase.web.account 中 User 的使用 |
|---|
| 返回 User 的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
User |
UserController.bindingModel(String id)
绑定实体数据,如果存在id时获取后从数据库获取记录,进入到相对的C后在将数据库获取的记录填充到相应的参数中 |
| 返回变量类型为 User 的类型的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
Page<User> |
UserController.view(PageRequest pageRequest,
javax.servlet.http.HttpServletRequest request)
获取用户列表,返回account/user/view.html页面 |
| 参数类型为 User 的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
String |
UserController.insert(User entity,
List<String> groupId,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
创建用户,创建成功后重定向到:account/user/view |
String |
UserController.update(User entity,
List<String> groupId,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
更新用户,更新成功后重定向到:account/user/view |
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||