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
String getCurrentUserEmail() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
findUsers
SearchResult<User> findUsers(String field, String value, int status, int group, Page page, int roleId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
deleteUser
void deleteUser(int userId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
getUser
User getUser(int userId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
updateUser
void updateUser(User user, List<Integer> groups) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
listUsers
List<User> listUsers() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
loadUserActions
List<BGSAction> loadUserActions(int userId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Загрузка списка действий пользователя.- Parameters:
userId- код пользователя.- Returns:
- список действий пользователя.
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userInfoGet
UserInfo userInfoGet(int userId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Получение ид-имя пользователя, можно не боясь по каждому чиху его тянуть, так как реализован через DirectoryItem.
но, при условии что достается только так :getContext().getDirectory( UserInfo.class ). ... иначе если напрямую, то никакого кеширования не будет.- Parameters:
userId- - код пользователя.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userInfoList
List<UserInfo> userInfoList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuRestriction
String userMenuRestriction(int userId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
groupMenuRestriction
String groupMenuRestriction(int groupId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuRestrictionSet
void userMenuRestrictionSet(int userId, List<String> menuIds) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
groupMenuRestrictionSet
void groupMenuRestrictionSet(int groupId, List<String> menuIds) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuList
List<MenuItem> userMenuList(boolean addDefault) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuUpdate
MenuItem userMenuUpdate(MenuItem menuItem) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuDelete
void userMenuDelete(int userMenuId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuDataDefault
String userMenuDataDefault() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuDataGet
String userMenuDataGet(int userMenuId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
userMenuDataUpdate
void userMenuDataUpdate(int userMenuId, String data) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
contractParameters
org.json.JSONObject contractParameters(int parameterTypeId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
groupRightTree
GroupRight groupRightTree() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
getUserRightRules
List<UserRightRule> getUserRightRules(int rightGroupId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
updateUserRightRule
UserRightRule updateUserRightRule(UserRightRule userRightRule) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
bgsQueryLog
SearchResult<BGSQueryLogEntry> bgsQueryLog(BGSQueryLogParam bgsQueryLogParam, Period period, Page page) throws Exception, ru.bitel.bgbilling.common.BGMessageException - Throws:
Exceptionru.bitel.bgbilling.common.BGMessageException
-