Class GroupDao
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<UserGroupRecord,Group>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.GroupDao
- Author:
- latypov
-
Field Summary
Fields inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
dslContext, enrichedRecordMapper, recordMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jooq.RecordMapper<org.jooq.Record,Group> Creates group record mapper.voidcreateGroups(Collection<Group> groups) Inserts groups into database.protected org.jooq.RecordMapper<UserGroupRecord,Group> Creates group record mapper.voiddeleteGroups(Collection<String> groupIds) Removes groups by group ids.protected GroupPopulates group instance by AccessLevel instance.Gets group by group id.getGroupByName(String groupName) Gets group by group name.getGroups(Collection<String> groupIds) Gets groups according to collection of group ids.getGroups(LoadOptions options, short maxAccessLevel) Gets groups according to load options and less than passed maximal level access.voidupdateGroups(Collection<Group> groups) Updates groups in database.voidupdateGroupUpdated(String groupId, Timestamp timestamp) Updates group "updated" column value according to timestamp and user account id.
-
Constructor Details
-
GroupDao
-
-
Method Details
-
createRecordMapper
Creates group record mapper.- Specified by:
createRecordMapperin classBaseDao<UserGroupRecord,Group> - Returns:
- new record mapper.
-
createEnrichedRecordMapper
Creates group record mapper.- Overrides:
createEnrichedRecordMapperin classBaseDao<UserGroupRecord,Group> - Returns:
- new record mapper.
-
enriched
Populates group instance by AccessLevel instance.- Overrides:
enrichedin classBaseDao<UserGroupRecord,Group> - Parameters:
group-Groupto populate by instance ofAccessLevel.- Returns:
- the same populated object or null.
-
getGroup
Gets group by group id. -
getGroupByName
Gets group by group name. -
getGroups
Gets groups according to load options and less than passed maximal level access.- Parameters:
options- indicates load option properties. Instance ofLoadOptionstype.maxAccessLevel- maximal level access. Instance ofshorttype.- Returns:
- list of groups. Instance of
Listtype.
-
getGroups
Gets groups according to collection of group ids.- Parameters:
groupIds- group ids of objects to receive. Instance ofCollectiontype.- Returns:
- collection of groups. Instance of
Collectiontype.
-
createGroups
Inserts groups into database.- Parameters:
groups- collection of groups to add. Instance ofCollectiontype.
-
updateGroups
Updates groups in database.- Parameters:
groups- collection of groups to update. Instance ofCollectiontype.
-
updateGroupUpdated
Updates group "updated" column value according to timestamp and user account id. -
deleteGroups
Removes groups by group ids.- Parameters:
groupIds- collection of group ids to remove. Instance ofCollectiontype.
-