use of dna.renderer.DocumentTableModel in project dna by leifeld.
the class DocumentPanel method documentFilter.
public void documentFilter() {
RowFilter<DocumentTableModel, Integer> documentFilter = new RowFilter<DocumentTableModel, Integer>() {
public boolean include(Entry<? extends DocumentTableModel, ? extends Integer> entry) {
DocumentTableModel dtm = entry.getModel();
Document d = dtm.get(entry.getIdentifier());
int documentId = d.getId();
boolean[] b = Dna.data.getActiveDocumentPermissions(documentId);
if (b[0] == true) {
return true;
}
return false;
}
};
sorter.setRowFilter(documentFilter);
}
Aggregations