java.lang.Object
ru.cg.webbpm.modules.security.api.impl.dao.jooq.BaseDao<org.jooq.Record,UserRole>
ru.cg.webbpm.modules.security.api.impl.dao.jooq.UserRoleDao

@Repository public class UserRoleDao extends BaseDao<org.jooq.Record,UserRole>
Author:
m.popov
  • Constructor Details

    • UserRoleDao

      public UserRoleDao()
  • Method Details

    • createRecordMapper

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

      public List<UserRole> getUserRolesByUserId(LoadOptions options, String userId)
      Gets user role links by user account id according to load options.
      Parameters:
      userId - user account id of objects to receive. Instance of String type.
      options - indicates load options properties. Instance of LoadOptions type.
      Returns:
      list of user role links. Instance of List type.
    • getUserRolesByUserId

      public List<UserRole> getUserRolesByUserId(LoadOptions options, String userId, short maxAccessLevel)
      Gets user role links by user account id according to load options and less than passed maximal level access.
      Parameters:
      userId - user account id of objects to receive. Instance of String type.
      options - indicates load options properties. Instance of LoadOptions type.
      maxAccessLevel - maximal level access. Instance of short type.
      Returns:
      list of user role links. Instance of List type.