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

@Repository public class RoleAuthorityDao extends BaseDao<org.jooq.Record,RoleAuthority>
Author:
latypov
  • Constructor Details

    • RoleAuthorityDao

      public RoleAuthorityDao()
  • Method Details

    • createRecordMapper

      protected org.jooq.RecordMapper<org.jooq.Record,RoleAuthority> createRecordMapper()
      Creates role to authority record mapper.
      Specified by:
      createRecordMapper in class BaseDao<org.jooq.Record,RoleAuthority>
      Returns:
      new record mapper.
    • getRoleAuthorities

      public Collection<RoleAuthority> getRoleAuthorities(Collection<String> roleAuthorityIds)
      Gets role authority links by collection of link ids.
      Parameters:
      roleAuthorityIds - ids collection of role authority links to remove. Instance of List type.
      Returns:
      collection of role authority links. Instance of Collection type.
    • getRoleAuthoritiesByAuthorityId

      public List<RoleAuthority> getRoleAuthoritiesByAuthorityId(LoadOptions options, String authorityId)
      Gets role authority links by authority id according to load options.
      Parameters:
      options - indicates load option properties. Instance of LoadOptions type.
      authorityId - authority id of objects to receive. Instance of String type.
      Returns:
      list of role authority links. Instance of List type.
    • createRoleAuthority

      public void createRoleAuthority(RoleAuthority roleAuthority)
      Inserts role authority link into database.
      Parameters:
      roleAuthority - role authority link to add. Instance of RoleAuthority type.
      See Also:
    • createRoleAuthorities

      public void createRoleAuthorities(Collection<RoleAuthority> roleAuthorities)
      Inserts role authority links into database.
      Parameters:
      roleAuthorities - collection of role authority links to add. Instance of Collection type.
    • deleteRoleAuthorities

      public void deleteRoleAuthorities(Collection<String> roleAuthorityIds)
      Removes role authority links by collection of links ids.
      Parameters:
      roleAuthorityIds - ids collection of role authority links to remove. Instance of Collection type.