类 com.github.dactiv.showcase.entity.account.Resource
的使用

使用 Resource 的软件包
com.github.dactiv.showcase.common   
com.github.dactiv.showcase.dao.account   
com.github.dactiv.showcase.entity.account   
com.github.dactiv.showcase.service.account   
com.github.dactiv.showcase.web.account   
 

com.github.dactiv.showcase.commonResource 的使用
 

返回变量类型为 Resource 的类型的 com.github.dactiv.showcase.common 中的方法
 List<Resource> SessionVariable.getAuthorizationInfo()
          获取当前用户的所有授权资源集合
 List<Resource> SessionVariable.getMenusList()
          获取当前用户拥有的菜单集合
 

类型变量类型为 Resourcecom.github.dactiv.showcase.common 中的方法参数
 void SessionVariable.setAuthorizationInfo(List<Resource> authorizationInfo)
          设置当前用户的所有授权资源集合
 void SessionVariable.setMenusList(List<Resource> menusList)
          设置当前用户拥有的菜单集合
 

类型变量类型为 Resourcecom.github.dactiv.showcase.common 中的构造方法参数
SessionVariable(User user, List<Resource> authorizationInfo, List<Resource> menusList)
           
SessionVariable(User user, List<Resource> authorizationInfo, List<Resource> menusList)
           
 

com.github.dactiv.showcase.dao.accountResource 的使用
 

返回变量类型为 Resource 的类型的 com.github.dactiv.showcase.dao.account 中的方法
 List<Resource> ResourceDao.getUserResources(String userId)
          通过用户id获取用户所有资源
 List<Resource> ResourceDao.mergeToParent(List<Resource> list, ResourceType ignoreType)
          并合子类资源到父类中,返回一个新的资源集合
 

类型变量类型为 Resourcecom.github.dactiv.showcase.dao.account 中的方法参数
 List<Resource> ResourceDao.mergeToParent(List<Resource> list, ResourceType ignoreType)
          并合子类资源到父类中,返回一个新的资源集合
 

com.github.dactiv.showcase.entity.accountResource 的使用
 

返回 Resourcecom.github.dactiv.showcase.entity.account 中的方法
 Resource Resource.getParent()
          获取父类资源
 

返回变量类型为 Resource 的类型的 com.github.dactiv.showcase.entity.account 中的方法
 List<Resource> Resource.getChildren()
          获取子类资源
 List<Resource> Group.getResourcesList()
          获取拥有资源
 

参数类型为 Resourcecom.github.dactiv.showcase.entity.account 中的方法
 void Resource.setParent(Resource parent)
          设置父类资源
 

类型变量类型为 Resourcecom.github.dactiv.showcase.entity.account 中的方法参数
 void Resource.setChildren(List<Resource> children)
          设置子类资源
 void Group.setResourcesList(List<Resource> resourcesList)
          设置该组的操作资源
 

com.github.dactiv.showcase.service.accountResource 的使用
 

返回 Resourcecom.github.dactiv.showcase.service.account 中的方法
 Resource AccountManager.getResource(String id)
          通过id获取资源实体
 

返回变量类型为 Resource 的类型的 com.github.dactiv.showcase.service.account 中的方法
 List<Resource> AccountManager.getParentResources()
          获取最顶级(父类)的资源集合
 List<Resource> AccountManager.getResources(List<String> ids)
          通过id集合获取资源资源
 List<Resource> AccountManager.getResources(String... ignoreIdValue)
          获取所有资源
 List<Resource> AccountManager.getUserResources(String userId)
          通过用户id获取该用户下的所有资源
 List<Resource> AccountManager.mergeResourcesToParent(List<Resource> list, ResourceType ignoreType)
          并合子类资源到父类中,返回一个新的资源集合
 

参数类型为 Resourcecom.github.dactiv.showcase.service.account 中的方法
 void AccountManager.saveResource(Resource entity)
          保存资源实体
 

类型变量类型为 Resourcecom.github.dactiv.showcase.service.account 中的方法参数
 List<Resource> AccountManager.mergeResourcesToParent(List<Resource> list, ResourceType ignoreType)
          并合子类资源到父类中,返回一个新的资源集合
 

com.github.dactiv.showcase.web.accountResource 的使用
 

返回 Resourcecom.github.dactiv.showcase.web.account 中的方法
 Resource ResourceController.bindingModel(String id)
          绑定实体数据,如果存在id时获取后从数据库获取记录,进入到相对的C后在将数据库获取的记录填充到相应的参数中
 

返回变量类型为 Resource 的类型的 com.github.dactiv.showcase.web.account 中的方法
 List<Resource> ResourceController.view()
          获取资源列表,返回account/resource/view.html页面
 

参数类型为 Resourcecom.github.dactiv.showcase.web.account 中的方法
 void ResourceController.read(String id, org.springframework.ui.Model model, Resource entity)
          读取资源信息,返回account/resource/read.html页面
 String ResourceController.save(Resource entity, String parentId, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
          保存或更新资源,保存成功后重定向到:account/resource/view
 



Copyright © 2014. All rights reserved.