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.voidcreateUserGroup(UserGroup userGroup) Inserts user group link into databases.voidcreateUserGroups(Collection<UserGroup> userGroups) Inserts user group links into databases.voiddeleteUserGroup(String userId, String groupsId) Removes user group links by user account id and group id.voiddeleteUserGroups(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:
createRecordMapperin 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 ofLoadOptionstype.userId- user account id of objects to receive. Instance ofStringtype.- Returns:
- list of user group links. Instance of
Listtype.
-
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 ofStringtype.options- indicates load options properties. Instance ofLoadOptionstype.maxAccessLevel- maximal level access. Instance ofshorttype.- Returns:
- list of user group links. Instance of
Listtype.
-
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 ofUserGrouptype.- See Also:
-
createUserGroups
Inserts user group links into databases.- Parameters:
userGroups- collection of user group links to add. Instance ofCollectiontype.
-
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 ofStringtype.groupsIds- group ids of objects to remove. Instance ofCollectiontype.
-