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.voidcreateRoleAuthorities(Collection<RoleAuthority> roleAuthorities) Inserts role authority links into database.voidcreateRoleAuthority(RoleAuthority roleAuthority) Inserts role authority link into database.voiddeleteRoleAuthorities(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:
createRecordMapperin 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 ofListtype.- Returns:
- collection of role authority links. Instance of
Collectiontype.
-
getRoleAuthoritiesByAuthorityId
Gets role authority links by authority id according to load options.- Parameters:
options- indicates load option properties. Instance ofLoadOptionstype.authorityId- authority id of objects to receive. Instance ofStringtype.- Returns:
- list of role authority links. Instance of
Listtype.
-
createRoleAuthority
Inserts role authority link into database.- Parameters:
roleAuthority- role authority link to add. Instance ofRoleAuthoritytype.- See Also:
-
createRoleAuthorities
Inserts role authority links into database.- Parameters:
roleAuthorities- collection of role authority links to add. Instance ofCollectiontype.
-
deleteRoleAuthorities
Removes role authority links by collection of links ids.- Parameters:
roleAuthorityIds- ids collection of role authority links to remove. Instance ofCollectiontype.
-