Package ru.bgcrm.dao.user
Class UserGroupDAO
java.lang.Object
ru.bgcrm.dao.CommonDAO
ru.bgcrm.dao.user.UserGroupDAO
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.dao.CommonDAO
CommonDAO.ObjectExtractor<T>, CommonDAO.RecordUpdater<T extends Id> -
Field Summary
Fields inherited from class ru.bgcrm.dao.CommonDAO
con, dateFormat_DDMMYYYY, dateFormat_DDMMYYYY_HHMM, log, SQL_AND, SQL_DELETE, SQL_DESC, SQL_FROM, SQL_GROUP_BY, SQL_INNER_JOIN, SQL_INSERT, SQL_INSERT_IGNORE, SQL_LEFT_JOIN, SQL_LEFT_OUTER_JOIN, SQL_LIMIT, SQL_ON_DUP_KEY_UPDATE, SQL_OR, SQL_ORDER_BY, SQL_REPLACE, SQL_SELECT, SQL_SELECT_ALL_FROM, SQL_SELECT_COUNT_ROWS, SQL_SET, SQL_UPDATE, SQL_WHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckGroup(int id, int parentId, String title) true если можно добавить скрипт с таким именем в данный каталогvoiddeleteGroup(int id) findGroupsByQueue(int queueId) getChildGroups(int parentGroupId) intgetDepartmetGroup(String inn, String kpp, String departmentId) Осуществляет поиск группы по коду departmentId в дочерних группах группы, содержащей КПП предприятия;getGroupById(int id) getGroupPermsetIds(int groupId) getGroupQueueIds(int groupId) getOrganizationGroupByDepartmentGroupId(int departmentGroupId) Осуществляет поиск группы, соответствующей организации по id группы дочернего отделаvoidsearchGroup(SearchResult<Group> searchResult, int parentId) voidsearchGroup(SearchResult<Group> searchResult, int parentId, int archive) voidsearchGroup(SearchResult<Group> searchResult, int groupId, int parentId, int archive, String filter) voidsearchGroup(SearchResult<Group> searchResult, int parentId, int archive, String filter) voidsearchGroupByTitle(SearchResult<IdTitle> searchResult, String filter) voidupdateGroup(Group group) Methods inherited from class ru.bgcrm.dao.CommonDAO
buildPlaceholders, deleteById, execute, execute, execute, executeBatch, executeInsert, executeUpdate, getById, getFoundRows, getFoundRows, getGroupedIds, getGroupedIds, getIds, getIds, getLikePattern, getLikePatternEnd, getLikePatternStart, getLikePatternSub, getMySQLLimit, getPeriodSql, lastInsertId, setPeriodParamValue, setRecordCount, sqlToBgException, update, updateColumn, updateIds, updateIds
-
Constructor Details
-
UserGroupDAO
-
-
Method Details
-
searchGroup
- Throws:
BGException
-
searchGroup
public void searchGroup(SearchResult<Group> searchResult, int parentId, int archive) throws BGException - Throws:
BGException
-
searchGroup
public void searchGroup(SearchResult<Group> searchResult, int parentId, int archive, String filter) throws BGException - Throws:
BGException
-
searchGroup
public void searchGroup(SearchResult<Group> searchResult, int groupId, int parentId, int archive, String filter) throws BGException - Throws:
BGException
-
searchGroupByTitle
public void searchGroupByTitle(SearchResult<IdTitle> searchResult, String filter) throws BGException - Throws:
BGException
-
getGroupList
- Throws:
BGException
-
getGroupById
- Throws:
BGException
-
updateGroup
- Throws:
BGException
-
deleteGroup
- Throws:
BGException
-
getGroupQueueIds
- Throws:
BGException
-
getGroupPermsetIds
- Throws:
BGException
-
getAllGroupPermsetIds
- Throws:
BGException
-
getAllGroupQueueIds
- Throws:
BGException
-
checkGroup
true если можно добавить скрипт с таким именем в данный каталог- Parameters:
parentId-name-- Returns:
- Throws:
SQLException
-
getDepartmetGroup
Осуществляет поиск группы по коду departmentId в дочерних группах группы, содержащей КПП предприятия;- Parameters:
inn-kpp-departmentId-- Returns:
-
getOrganizationGroupByDepartmentGroupId
Осуществляет поиск группы, соответствующей организации по id группы дочернего отдела- Parameters:
departmentGroupId-- Returns:
- возвращает null если для данной группы не нашлось родительской группы с инн и кпп в конфигурации
-
getChildGroups
- Throws:
BGException
-
findGroupsByQueue
- Throws:
BGException
-