Class RoleDao
java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<UserRoleRecord,Role>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.RoleDao
- 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<UserRoleRecord,
Role> Creates role record mapper.void
createRoles
(Collection<Role> roles) Inserts roles into database.void
deleteRoles
(Collection<String> roleIds) Removes roles by collection of role ids.Gets role by role id.getRoleByName
(String roleName) Gets role by role name.getRoles
(Collection<String> roleIds) Gets roles by collection of role ids.getRoles
(LoadOptions options) Gets roles according to load options.void
updateRoles
(Collection<Role> roles) Updates roles in database.void
updateRolesUpdated
(Collection<String> roleIds, Timestamp timestamp) Updates roles "updated" column value according to timestamp and collection of role ids.void
updateRoleUpdated
(String roleId, Timestamp timestamp) Updates role "updated" column value according to timestamp and role id.Methods inherited from class ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao
createEnrichedRecordMapper, enriched
-
Constructor Details
-
RoleDao
public RoleDao()
-
-
Method Details
-
createRecordMapper
Creates role record mapper.- Specified by:
createRecordMapper
in classBaseDao<UserRoleRecord,
Role> - Returns:
- record mapper.
-
getRole
Gets role by role id. -
getRoleByName
Gets role by role name. -
getRoles
Gets roles according to load options.- Parameters:
options
- indicates load option properties. Instance ofLoadOptions
type.- Returns:
- list of roles. Instance of
List
type.
-
getRoles
Gets roles by collection of role ids.- Parameters:
roleIds
- role ids of objects to receive. Instance ofCollection
type.- Returns:
- collection of roles. Instance of
Collection
type.
-
createRoles
Inserts roles into database.- Parameters:
roles
- collection of roles to add. Instance ofCollection
type.
-
updateRoles
Updates roles in database.- Parameters:
roles
- collection of roles to update. Instance ofCollection
type.
-
updateRoleUpdated
Updates role "updated" column value according to timestamp and role id. -
updateRolesUpdated
Updates roles "updated" column value according to timestamp and collection of role ids.- Parameters:
roleIds
- ids collection of roles to update. Instance ofCollection
type.timestamp
- timestamp. Instance ofTimestamp
type.
-
deleteRoles
Removes roles by collection of role ids.- Parameters:
roleIds
- ids collection of roles to remove. Instance ofCollection
type.
-