|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 Group 的软件包 | |
|---|---|
| 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 中 Group 的使用 |
|---|
| 返回变量类型为 Group 的类型的 com.github.dactiv.showcase.common 中的方法 | |
|---|---|
List<Group> |
SessionVariable.getGroupsList()
获取当前用户所在的组集合 |
| 类型变量类型为 Group 的 com.github.dactiv.showcase.common 中的方法参数 | |
|---|---|
void |
SessionVariable.setGroupsList(List<Group> groupsList)
设置当前用户所在的组集合 |
| com.github.dactiv.showcase.entity.account 中 Group 的使用 |
|---|
| 返回 Group 的 com.github.dactiv.showcase.entity.account 中的方法 | |
|---|---|
Group |
Group.getParent()
获取上级组 |
| 返回变量类型为 Group 的类型的 com.github.dactiv.showcase.entity.account 中的方法 | |
|---|---|
List<Group> |
Group.getChildren()
获取下级组集合 |
List<Group> |
User.getGroupsList()
获取该用户所在的组 |
List<Group> |
Resource.getGroupsList()
获取该资源对应的组集合 |
| 参数类型为 Group 的 com.github.dactiv.showcase.entity.account 中的方法 | |
|---|---|
void |
Group.setParent(Group parent)
设置上级组 |
| 类型变量类型为 Group 的 com.github.dactiv.showcase.entity.account 中的方法参数 | |
|---|---|
void |
Group.setChildren(List<Group> children)
设置下级组集合 |
void |
User.setGroupsList(List<Group> groupsList)
设置用户所在的组 |
void |
Resource.setGroupsList(List<Group> groupsList)
设置该资源对应的组集合 |
| com.github.dactiv.showcase.service.account 中 Group 的使用 |
|---|
| 返回 Group 的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
Group |
AccountManager.getGroup(String id)
通过id获取组实体 |
| 返回变量类型为 Group 的类型的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
List<Group> |
AccountManager.getGroups(GroupType groupType,
String... ignoreIdValue)
根据组类型获取所有组信息 |
List<Group> |
AccountManager.getGroups(List<String> ids)
通过组id,获取组集合 |
List<Group> |
AccountManager.getParentGroups(GroupType type)
获取最顶级(父类)的组集合 |
| 参数类型为 Group 的 com.github.dactiv.showcase.service.account 中的方法 | |
|---|---|
void |
AccountManager.saveGroup(Group entity)
保存组实体 |
| com.github.dactiv.showcase.web.account 中 Group 的使用 |
|---|
| 返回 Group 的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
Group |
GroupController.bindingModel(String id)
绑定实体数据,如果存在id时获取后从数据库获取记录,进入到相对的C后在将数据库获取的记录填充到相应的参数中 |
| 返回变量类型为 Group 的类型的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
List<Group> |
GroupController.view()
获取组列表,返回account/group/view.html页面 |
| 参数类型为 Group 的 com.github.dactiv.showcase.web.account 中的方法 | |
|---|---|
String |
GroupController.save(Group entity,
javax.servlet.http.HttpServletRequest request,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
保存或更新组,保存成功后重定向到:account/group/view |
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||