Interface UserService
public interface UserService
-
Method Summary
Modifier and TypeMethodDescriptionbgsQueryLog(BGSQueryLogParam bgsQueryLogParam, Period period, Page page) org.json.JSONObjectcontractParameters(int parameterTypeId) voiddeleteUser(int userId) getUser(int userId) getUserRightRules(int rightGroupId) groupMenuRestriction(int groupId) voidgroupMenuRestrictionSet(int groupId, List<String> menuIds) loadUserActions(int userId) Загрузка списка действий пользователя.voidupdateUser(User user, List<Integer> groups) updateUserRightRule(UserRightRule userRightRule) userInfoGet(int userId) Получение ид-имя пользователя, можно не боясь по каждому чиху его тянуть, так как реализован через DirectoryItem.userMenuDataGet(int userMenuId) voiduserMenuDataUpdate(int userMenuId, String data) voiduserMenuDelete(int userMenuId) userMenuList(boolean addDefault) userMenuRestriction(int userId) voiduserMenuRestrictionSet(int userId, List<String> menuIds) userMenuUpdate(MenuItem menuItem)
-
Method Details
-
getCurrentUserEmail
- Throws:
ru.bitel.bgbilling.common.BGException
-
findUsers
SearchResult<User> findUsers(String field, String value, int status, int group, Page page, int roleId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
deleteUser
void deleteUser(int userId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getUser
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateUser
- Throws:
ru.bitel.bgbilling.common.BGException
-
listUsers
- Throws:
ru.bitel.bgbilling.common.BGException
-
loadUserActions
Загрузка списка действий пользователя.- Parameters:
userId- код пользователя.- Returns:
- список действий пользователя.
- Throws:
ru.bitel.bgbilling.common.BGException
-
userInfoGet
Получение ид-имя пользователя, можно не боясь по каждому чиху его тянуть, так как реализован через DirectoryItem.
но, при условии что достается только так :getContext().getDirectory( UserInfo.class ). ... иначе если напрямую, то никакого кеширования не будет.- Parameters:
userId- - код пользователя.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
userInfoList
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuRestriction
- Throws:
ru.bitel.bgbilling.common.BGException
-
groupMenuRestriction
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuRestrictionSet
void userMenuRestrictionSet(int userId, List<String> menuIds) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
groupMenuRestrictionSet
void groupMenuRestrictionSet(int groupId, List<String> menuIds) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuList
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuDelete
void userMenuDelete(int userMenuId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuDataDefault
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuDataGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
userMenuDataUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
contractParameters
org.json.JSONObject contractParameters(int parameterTypeId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
groupRightTree
- Throws:
ru.bitel.bgbilling.common.BGException
-
getUserRightRules
List<UserRightRule> getUserRightRules(int rightGroupId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
updateUserRightRule
UserRightRule updateUserRightRule(UserRightRule userRightRule) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
bgsQueryLog
SearchResult<BGSQueryLogEntry> bgsQueryLog(BGSQueryLogParam bgsQueryLogParam, Period period, Page page) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-