Search in sources :

Example 1 with QueueListOutDto

use of org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutDto in project jaffa-framework by jaffa-projects.

the class QueueListForm method populateRows.

/**
 * This will populate the input GridModel with the data in the finderOutDto of the Component.
 * @param rows The GridModel object to populate.
 */
public void populateRows(GridModel rows) {
    rows.clearRows();
    QueueListOutDto outputDto = (QueueListOutDto) ((QueueListComponent) getComponent()).getFinderOutDto();
    if (outputDto != null && outputDto.getRows() != null) {
        GridModelRow row;
        for (QueueListOutRowDto rowDto : outputDto.getRows()) {
            row = rows.newRow();
            row.addElement("queue", rowDto.getQueue());
            row.addElement("pending", rowDto.getPending());
            row.addElement("error", rowDto.getError());
            row.addElement("inProcess", rowDto.getInProcess());
            row.addElement("activeConsumer", rowDto.getActiveConsumer());
            row.addElement("started", rowDto.getStarted());
            row.addElement("stopped", rowDto.getStopped());
        }
    }
}
Also used : QueueListOutDto(org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutDto) QueueListOutRowDto(org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutRowDto) GridModelRow(org.jaffa.presentation.portlet.widgets.model.GridModelRow)

Aggregations

QueueListOutDto (org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutDto)1 QueueListOutRowDto (org.jaffa.modules.messaging.components.queuelist.dto.QueueListOutRowDto)1 GridModelRow (org.jaffa.presentation.portlet.widgets.model.GridModelRow)1