Class RowReorderDto

java.lang.Object
sk.iway.iwcm.system.datatable.RowReorderDto

public class RowReorderDto extends Object
DTO for row reordering in DataTables. Used to update entity positions when user drags and drops rows in the table.
  • Constructor Details

    • RowReorderDto

      public RowReorderDto()
  • Method Details

    • getIds

      public List<Long> getIds()
      Get list of entity IDs from the values
      Returns:
      list of entity IDs
    • getNewValueById

      public Integer getNewValueById(Long id)
      Get the new order value for specific entity ID
      Parameters:
      id - entity ID
      Returns:
      new order value or null if not found
    • getDataSrc

      public String getDataSrc()
      Name of the column that stores the order value
    • getValues

      public List<RowReorderDto.RowReorderValue> getValues()
      List of row reorder values containing entity IDs and their old/new values
    • setDataSrc

      public void setDataSrc(String dataSrc)
      Name of the column that stores the order value
    • setValues

      public void setValues(List<RowReorderDto.RowReorderValue> values)
      List of row reorder values containing entity IDs and their old/new values