Class GroupRoleDao
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<org.jooq.Record,GroupRole>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.GroupRoleDao
- 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 TypeMethodDescriptionvoid
createGroupRole
(GroupRole groupRole) Inserts group role link into database.void
createGroupRoles
(Collection<GroupRole> groupRoles) Inserts group role links into database.protected org.jooq.RecordMapper<org.jooq.Record,
GroupRole> Creates group to role record mapper.void
deleteGroupRoles
(String groupId, Collection<String> roleIds) Removes group role links by group id and role ids collection.getGroupRolesByGroupId
(LoadOptions options, String groupId) Gets group role links by group id according to load options.getGroupRolesByRoleId
(LoadOptions options, String roleId) Gets group role links by passed role id according to load options.Methods inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
createEnrichedRecordMapper, enriched
-
Constructor Details
-
GroupRoleDao
public GroupRoleDao()
-
-
Method Details
-
createRecordMapper
Creates group to role record mapper.- Specified by:
createRecordMapper
in classBaseDao<org.jooq.Record,
GroupRole> - Returns:
- new record mapper.
-
getGroupRolesByGroupId
Gets group role links by group id according to load options.- Parameters:
options
- indicates load option properties. Instance ofLoadOptions
type.groupId
- group id of objects to receive. Instance ofString
type.- Returns:
- list of group role links. Instance of
List
type.
-
getGroupRolesByRoleId
Gets group role links by passed role id according to load options.- Parameters:
options
- indicates load option properties. Instance ofLoadOptions
type.roleId
- role id of objects to receive. Instance ofString
type.- Returns:
- list of group role links. Instance of
List
type.
-
createGroupRole
Inserts group role link into database.- Parameters:
groupRole
- group role link to add. Instance ofGroupRole
type.- See Also:
-
createGroupRoles
Inserts group role links into database.- Parameters:
groupRoles
- collection of group role links to add. Instance ofCollection
type.
-
deleteGroupRoles
Removes group role links by group id and role ids collection.- Parameters:
groupId
- group id to remove. Instance ofString
type.roleIds
- collection of role ids to remove. Instance ofCollection
type.
-