diff options
author | Simon Rettberg | 2018-06-14 16:18:42 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-14 16:18:42 +0200 |
commit | ade450e19527dbf377d945ca7bae7a145cf44196 (patch) | |
tree | aa6098a0a6b907fd39b3ca7591b9fe8670b08567 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table | |
parent | [server] Don't wipe network shares if client didn't set field (diff) | |
download | tutor-module-ade450e19527dbf377d945ca7bae7a145cf44196.tar.gz tutor-module-ade450e19527dbf377d945ca7bae7a145cf44196.tar.xz tutor-module-ade450e19527dbf377d945ca7bae7a145cf44196.zip |
Add support for LDAP lecture filters
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java new file mode 100644 index 00000000..ac5e8e0f --- /dev/null +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/table/LectureLdapFilterTable.java @@ -0,0 +1,24 @@ +package org.openslx.dozmod.gui.control.table; + +import org.openslx.bwlp.thrift.iface.LdapFilter; + +@SuppressWarnings("serial") +public class LectureLdapFilterTable extends ListTable<LdapFilter> { + + public static final ListTableColumn COL_ATTRIBUTE = new ListTableColumn("Attribut"); + public static final ListTableColumn COL_VALUE = new ListTableColumn("Wert"); + + public LectureLdapFilterTable() { + super(COL_ATTRIBUTE, COL_VALUE); + } + + @Override + protected Object getValueAtInternal(LdapFilter item, ListTableColumn columnIndex) { + if (columnIndex == COL_ATTRIBUTE) + return item.attribute; + if (columnIndex == COL_VALUE) + return item.value; + throw new IndexOutOfBoundsException(); + } + +} |