Class UserGroupDao
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<org.jooq.Record,UserGroup>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.UserGroupDao
- Author:
- m.popov
-
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,
UserGroup> Creates user to group record mapper.void
createUserGroup
(UserGroup userGroup) Inserts user group link into databases.void
createUserGroups
(Collection<UserGroup> userGroups) Inserts user group links into databases.void
deleteUserGroup
(String userId, String groupsId) Removes user group links by user account id and group id.void
deleteUserGroups
(String userId, Collection<String> groupsIds) Removes user group links by user account id and group ids collection.getUserGroupsByGroupId
(String groupId) Return list of user group links by group idgetUserGroupsByUserId
(LoadOptions options, String userId) Gets user group links by user account id according to load options.getUserGroupsByUserId
(LoadOptions options, String userId, short maxAccessLevel) Gets user group links by user account id according to load options and less than passed maximal level access.Methods inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
createEnrichedRecordMapper, enriched
-
Constructor Details
-
UserGroupDao
public UserGroupDao()
-
-
Method Details
-
createRecordMapper
Creates user to group record mapper.- Specified by:
createRecordMapper
in classBaseDao<org.jooq.Record,
UserGroup> - Returns:
- new record mapper.
-
getUserGroupsByUserId
Gets user group links by user account id according to load options.- Parameters:
options
- indicates load option properties. Instance ofLoadOptions
type.userId
- user account id of objects to receive. Instance ofString
type.- Returns:
- list of user group links. Instance of
List
type.
-
getUserGroupsByUserId
public List<UserGroup> getUserGroupsByUserId(LoadOptions options, String userId, short maxAccessLevel) Gets user group links by user account id according to load options and less than passed maximal level access.- Parameters:
userId
- user account id of objects to receive. Instance ofString
type.options
- indicates load options properties. Instance ofLoadOptions
type.maxAccessLevel
- maximal level access. Instance ofshort
type.- Returns:
- list of user group links. Instance of
List
type.
-
getUserGroupsByGroupId
Return list of user group links by group id- Parameters:
groupId
- group id- Returns:
- list of user group links
-
createUserGroup
Inserts user group link into databases.- Parameters:
userGroup
- user group link to add. Instance ofUserGroup
type.- See Also:
-
createUserGroups
Inserts user group links into databases.- Parameters:
userGroups
- collection of user group links to add. Instance ofCollection
type.
-
deleteUserGroup
Removes user group links by user account id and group id. -
deleteUserGroups
Removes user group links by user account id and group ids collection.- Parameters:
userId
- user account id of objects to remove. Instance ofString
type.groupsIds
- group ids of objects to remove. Instance ofCollection
type.
-