Class RoleAuthorityDao
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<org.jooq.Record,RoleAuthority>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.RoleAuthorityDao
- 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,
RoleAuthority> Creates role to authority record mapper.void
createRoleAuthorities
(Collection<RoleAuthority> roleAuthorities) Inserts role authority links into database.void
createRoleAuthority
(RoleAuthority roleAuthority) Inserts role authority link into database.void
deleteRoleAuthorities
(Collection<String> roleAuthorityIds) Removes role authority links by collection of links ids.getRoleAuthorities
(Collection<String> roleAuthorityIds) Gets role authority links by collection of link ids.getRoleAuthoritiesByAuthorityId
(LoadOptions options, String authorityId) Gets role authority links by authority id according to load options.Methods inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
createEnrichedRecordMapper, enriched
-
Constructor Details
-
RoleAuthorityDao
public RoleAuthorityDao()
-
-
Method Details
-
createRecordMapper
Creates role to authority record mapper.- Specified by:
createRecordMapper
in classBaseDao<org.jooq.Record,
RoleAuthority> - Returns:
- new record mapper.
-
getRoleAuthorities
Gets role authority links by collection of link ids.- Parameters:
roleAuthorityIds
- ids collection of role authority links to remove. Instance ofList
type.- Returns:
- collection of role authority links. Instance of
Collection
type.
-
getRoleAuthoritiesByAuthorityId
Gets role authority links by authority id according to load options.- Parameters:
options
- indicates load option properties. Instance ofLoadOptions
type.authorityId
- authority id of objects to receive. Instance ofString
type.- Returns:
- list of role authority links. Instance of
List
type.
-
createRoleAuthority
Inserts role authority link into database.- Parameters:
roleAuthority
- role authority link to add. Instance ofRoleAuthority
type.- See Also:
-
createRoleAuthorities
Inserts role authority links into database.- Parameters:
roleAuthorities
- collection of role authority links to add. Instance ofCollection
type.
-
deleteRoleAuthorities
Removes role authority links by collection of links ids.- Parameters:
roleAuthorityIds
- ids collection of role authority links to remove. Instance ofCollection
type.
-