com.centit.framework.system.service.SysUserRoleManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of framework-system-module Show documentation
Show all versions of framework-system-module Show documentation
定义了一组和core兼容的表结构,并用mybatis实现了表的增删改查
The newest version!
package com.centit.framework.system.service;
import com.alibaba.fastjson.JSONArray;
import com.centit.framework.system.po.FVUserRoles;
import com.centit.framework.system.po.UserInfo;
import com.centit.framework.system.po.UserRole;
import com.centit.framework.system.po.UserRoleId;
import com.centit.support.database.utils.PageDesc;
import java.util.List;
import java.util.Map;
/**
* Created with IntelliJ IDEA.
* User: sx
* Date: 14-10-28
* Time: 下午3:05
* To change this template use File | Settings | File Templates.
*/
public interface SysUserRoleManager{
JSONArray listObjects(Map filterMap, PageDesc pageDesc);
UserRole getObjectById(UserRoleId id);
void mergeObject(UserRole dbUserRole);
void deleteObjectById(UserRoleId id);
void mergeObject(UserRole dbUserRole, UserRole userRole);
List listUsersByRole(String roleCode);
/**
* 查询全部
* @param userCode 用户编码
* @return List < UserRole >
*/
List listUserRoles(String userCode);
/**
* 查询全部
* @param roleCode 角色编码
* @return List < UserRole >
*/
List listRoleUsers(String roleCode);
/**
* List roleInfos = new ArrayList();
//所有的用户 都要添加这个角色
roleInfos.add(new RoleInfo("G-", "general ","G",
"G","T", "general "));
final String sSqlsen = "from FVUserRoles v where userCode = ?";
* @param userCode usid
* @return List FVUserRoles
*/
List listUserRolesByUserCode(String userCode);
/**
* List roleInfos = new ArrayList();
//所有的用户 都要添加这个角色
roleInfos.add(new RoleInfo("G-", "general ","G",
"G","T", "general "));
final String sSqlsen = "from FVUserRoles v where v.id.roleCode = ? "
* @param roleCode 角色代码
* @return 拥有该角色的用户
*/
List listRoleUsersByRoleCode(String roleCode);
/**
* 获取角色对应的人
* @param filterMap 条件参数 只能是 roleCode userCode obtainType
* @param pageDesc 分页信息
* @return 角色列表
*/
JSONArray pageQueryUserRole( Map filterMap, PageDesc pageDesc);
}