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

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

    • GroupRoleDao

      public GroupRoleDao()
  • Method Details

    • createRecordMapper

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

      public List<GroupRole> getGroupRolesByGroupId(LoadOptions options, String groupId)
      Gets group role links by group id according to load options.
      Parameters:
      options - indicates load option properties. Instance of LoadOptions type.
      groupId - group id of objects to receive. Instance of String type.
      Returns:
      list of group role links. Instance of List type.
    • getGroupRolesByRoleId

      public List<GroupRole> getGroupRolesByRoleId(LoadOptions options, String roleId)
      Gets group role links by passed role id according to load options.
      Parameters:
      options - indicates load option properties. Instance of LoadOptions type.
      roleId - role id of objects to receive. Instance of String type.
      Returns:
      list of group role links. Instance of List type.
    • createGroupRole

      public void createGroupRole(GroupRole groupRole)
      Inserts group role link into database.
      Parameters:
      groupRole - group role link to add. Instance of GroupRole type.
      See Also:
    • createGroupRoles

      public void createGroupRoles(Collection<GroupRole> groupRoles)
      Inserts group role links into database.
      Parameters:
      groupRoles - collection of group role links to add. Instance of Collection type.
    • deleteGroupRoles

      public void deleteGroupRoles(String groupId, Collection<String> roleIds)
      Removes group role links by group id and role ids collection.
      Parameters:
      groupId - group id to remove. Instance of String type.
      roleIds - collection of role ids to remove. Instance of Collection type.