Class UserManager
- 
Field SummaryFields inherited from class ru.bitel.bgbilling.common.dao.AbstractDaocon, moduleId, orderByPattern, tableNameFields inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstantERROR, fields, SQL_ALL, SQL_AND, SQL_CALC_FOUND_ROWS, SQL_DELETE, SQL_DISTINCT, SQL_EQ, SQL_EQCS, SQL_FROM, SQL_GROUP, SQL_IN, SQL_INSERT, SQL_JOIN, SQL_LEFT_JOIN, SQL_LIMIT, SQL_NOT_IN, SQL_ON, SQL_ON_DUPLICATE_KEY_UPDATE, SQL_ORDER, SQL_SELECT, SQL_SET, SQL_UPDATE, SQL_VALUES, SQL_WHERE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancheckLogin(String login, int userID) Проверка на уникальность логина пользователя с учетом кода пользователя.voidfindSearchResult(SearchResult<User> searchResult) protected UsergetUserByLogin(String login) Возвращает пользователя биллинга по его логину.Возвращает карту пользователей и их кодовlist()protected voidupdateImpl(User user) Methods inherited from class ru.bitel.bgbilling.common.dao.AbstractIdDaodelete, executeUpdate, get, getAndDelete, getAndUpdate, opt, prepareStatement, sqlCommand, sqlCommandAndTable, sqlQuery, sqlWhereIdMethods inherited from class ru.bitel.bgbilling.common.dao.AbstractDaodelete, deleteImpl, eq, get, getById, getImpl, getListFromRS, getPeriod, getQueryById, getSQLOrder, getTableName, list, list, listImpl, listImpl, listImplPS, listImplPS, ormFromResultSet, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, ormUpdateImpl, psSetPeriod, queryPeriod, setStatementParam, updateMethods inherited from class ru.bitel.bgbilling.common.dao.AbstarctDaoConstantgetSQLOrder, sqlLimitMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLoggererror, error, error, getLogger, logError, logError, warn
- 
Constructor Details- 
UserManager
 
- 
- 
Method Details- 
updateImpl- Specified by:
- updateImplin class- ru.bitel.bgbilling.common.dao.AbstractDao<User>
- Throws:
- SQLException
 
- 
getFromRS- Specified by:
- getFromRSin class- ru.bitel.bgbilling.common.dao.AbstractDao<User>
- Throws:
- SQLException
 
- 
getUsersMapВозвращает карту пользователей и их кодов- Returns:
- Throws:
- SQLException
 
- 
findSearchResultpublic void findSearchResult(SearchResult<User> searchResult) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
- ru.bitel.bgbilling.common.BGException
- ru.bitel.bgbilling.common.BGMessageException
 
- 
checkLoginПроверка на уникальность логина пользователя с учетом кода пользователя. Если есть пользователь с проверяемым логином, но с другим кодом (в т.ч. 0), значит происходит попытка изменить существующего пользователя, либо создать нового и назначить ему логин другого пользователя - в этом случае вернется true.- Parameters:
- login- логин
- userID- код пользователя
- Returns:
- true - если в БД уже есть такой логин, false - в противном случае.
- Throws:
- ru.bitel.bgbilling.common.BGException
- SQLException
 
- 
list- Throws:
- SQLException
 
- 
getUserByLoginВозвращает пользователя биллинга по его логину.- Parameters:
- login- логин пользователя.
- Returns:
- объект "юзер", либо null если не найдено.
- Throws:
- ru.bitel.bgbilling.common.BGException
- SQLException
 
 
-