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.void
createGroups
(Collection<Group> groups) Inserts groups into database.protected org.jooq.RecordMapper<UserGroupRecord,
Group> Creates group record mapper.void
deleteGroups
(Collection<String> groupIds) Removes groups by group ids.protected Group
Populates 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.void
updateGroups
(Collection<Group> groups) Updates groups in database.void
updateGroupUpdated
(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:
createRecordMapper
in classBaseDao<UserGroupRecord,
Group> - Returns:
- new record mapper.
-
createEnrichedRecordMapper
Creates group record mapper.- Overrides:
createEnrichedRecordMapper
in classBaseDao<UserGroupRecord,
Group> - Returns:
- new record mapper.
-
enriched
Populates group instance by AccessLevel instance.- Overrides:
enriched
in classBaseDao<UserGroupRecord,
Group> - Parameters:
group
-Group
to 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 ofLoadOptions
type.maxAccessLevel
- maximal level access. Instance ofshort
type.- Returns:
- list of groups. Instance of
List
type.
-
getGroups
Gets groups according to collection of group ids.- Parameters:
groupIds
- group ids of objects to receive. Instance ofCollection
type.- Returns:
- collection of groups. Instance of
Collection
type.
-
createGroups
Inserts groups into database.- Parameters:
groups
- collection of groups to add. Instance ofCollection
type.
-
updateGroups
Updates groups in database.- Parameters:
groups
- collection of groups to update. Instance ofCollection
type.
-
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 ofCollection
type.
-