diff options
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java')
-rw-r--r-- | dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java index 40956d88..ab53c43d 100644 --- a/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/PermissionEditLecture_GUI.java @@ -1,6 +1,5 @@ package gui.lecture; -import gui.image.PermissionCreateImage_GUI; import gui.intro.About_GUI; import gui.intro.MainMenue_GUI; @@ -24,9 +23,7 @@ import java.util.Iterator; import java.util.List; import javax.swing.AbstractButton; -import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; -import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JMenu; @@ -38,7 +35,6 @@ import javax.swing.JRadioButton; import javax.swing.JScrollPane; import javax.swing.JSeparator; import javax.swing.JTable; -import javax.swing.JTextField; import javax.swing.JTextPane; import javax.swing.ScrollPaneConstants; import javax.swing.UIManager; @@ -49,32 +45,27 @@ import javax.swing.table.DefaultTableModel; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumn; -import models.Image; import models.Lecture; import models.Links; import models.RightsManagement; import models.SessionData; import models.person; -import server.generated.Person; -import server.generated.Server.Client; + +import org.apache.thrift.TException; +import org.openslx.sat.thrift.iface.Person; +import org.openslx.sat.thrift.iface.Server.Client; + import util.CheckIntegrity; import util.ListAllOtherUsers_GUI; import util.OpenLinks; -import javax.swing.JCheckBox; - -import org.apache.log4j.Logger; -import org.apache.thrift.TException; @SuppressWarnings("serial") public class PermissionEditLecture_GUI extends JFrame { - private final static Logger LOGGER = Logger - .getLogger(PermissionCreateImage_GUI.class); Client client = models.Client.clientcon.getClient(); private final JPanel contentPanel = new JPanel(); String[] result; private JTable table; - private Class[] classes; Object[] titles = { "Name", "Lesen", "Schreiben", "Admin", "userID" }; private List<Person> map = null; // List of people who have rights Component c = null; @@ -93,7 +84,7 @@ public class PermissionEditLecture_GUI extends JFrame { return false; } - public Class getColumnClass(int c) { + public Class<?> getColumnClass(int c) { switch (c) { case 0: return String.class; @@ -241,7 +232,7 @@ public class PermissionEditLecture_GUI extends JFrame { map = client.getPermissionForUserAndLecture( SessionData.session.getAuthToken(),Lecture.lecture.getid(),person.verantwortlicher.getUserID() ); - Iterator<server.generated.Person> i = map.iterator(); + Iterator<Person> i = map.iterator(); int x = 0; |