public class CustomRoleControllerImpl extends AbstractController implements CustomRoleController
| 构造器和说明 |
|---|
CustomRoleControllerImpl(ControllerSession session) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(CustomRole record)
新增记录
|
java.util.List<CustomRole> |
find(QueryCondition queryCondition)
查找记录
|
java.util.List<CustomRole> |
findByAuthority(java.lang.String authorityId,
AuthorityQueryType queryType,
QueryCondition customRoleCondition)
查找指定权限下的自定义角色
|
java.util.List<CustomRole> |
findByAuthority(java.lang.String authorityId,
java.lang.Class cls,
AuthorityQueryType queryType,
QueryCondition customRoleCondition)
查找指定权限下的自定义角色
|
java.util.List<CustomRole> |
findByUser(java.lang.String userId,
QueryCondition customRoleCondition)
查找指定用户所属的自定义角色
|
CustomRole |
findOne(QueryCondition queryCondition)
查找一条记录,找不到返回null
|
DataList<CustomRole> |
findWithTotalCount(QueryCondition queryCondition)
查找记录,附带返回该查询条件下的数据总条数
|
CustomRole |
getById(java.lang.String id)
通过id获取记录
|
void |
remove(QueryCondition queryCondition)
删除记录,根据查询条件来删除
|
void |
remove(java.lang.String id)
删除记录
|
void |
update(CustomRole record)
更新记录,根据记录id来更新
|
addDepRole, findDepRoleByUser, getSession, removeDepRolepublic CustomRoleControllerImpl(ControllerSession session)
public java.util.List<CustomRole> findByUser(java.lang.String userId, QueryCondition customRoleCondition) throws java.lang.Exception
CustomRoleControllerfindByUser 在接口中 CustomRoleControlleruserId - 用户IDcustomRoleCondition - 自定义角色查询条件java.lang.Exceptionpublic java.util.List<CustomRole> findByAuthority(java.lang.String authorityId, AuthorityQueryType queryType, QueryCondition customRoleCondition) throws java.lang.Exception
CustomRoleControllerfindByAuthority 在接口中 CustomRoleControllerauthorityId - 权限IDqueryType - 权限查询类型customRoleCondition - 自定义角色查询条件java.lang.Exceptionpublic java.util.List<CustomRole> findByAuthority(java.lang.String authorityId, java.lang.Class cls, AuthorityQueryType queryType, QueryCondition customRoleCondition) throws java.lang.Exception
CustomRoleControllerfindByAuthority 在接口中 CustomRoleControllerauthorityId - 权限IDcls - 权限类queryType - 权限查询类型customRoleCondition - 自定义角色查询条件java.lang.Exceptionpublic void add(CustomRole record) throws java.lang.Exception
DataOperatoradd 在接口中 DataOperator<CustomRole>record - 记录对象java.lang.Exceptionpublic CustomRole getById(java.lang.String id) throws java.lang.Exception
DataOperatorgetById 在接口中 DataOperator<CustomRole>id - 记录idjava.lang.Exceptionpublic void update(CustomRole record) throws java.lang.Exception
DataOperatorupdate 在接口中 DataOperator<CustomRole>record - 记录对象java.lang.Exceptionpublic void remove(java.lang.String id)
throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<CustomRole>id - 记录idjava.lang.Exceptionpublic void remove(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorremove 在接口中 DataOperator<CustomRole>queryCondition - 查询条件java.lang.Exceptionpublic java.util.List<CustomRole> find(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfind 在接口中 DataOperator<CustomRole>queryCondition - 查询条件java.lang.Exceptionpublic CustomRole findOne(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindOne 在接口中 DataOperator<CustomRole>queryCondition - 查询条件java.lang.Exceptionpublic DataList<CustomRole> findWithTotalCount(QueryCondition queryCondition) throws java.lang.Exception
DataOperatorfindWithTotalCount 在接口中 DataOperator<CustomRole>queryCondition - 查询条件java.lang.Exception