diff options
| author | Michael Wilson | 2014-08-25 09:36:09 +0200 |
|---|---|---|
| committer | Michael Wilson | 2014-08-25 09:36:09 +0200 |
| commit | 8738f915c390235f96c6a2e543e280a872e9031f (patch) | |
| tree | 6dc731fd78333d2182045c3a60f79fb71150647f /Dozentenmodul/src/gui/intro/MainMenue_GUI.java | |
| parent | Model für Rechte hinzugefügt (diff) | |
| download | tutor-module-8738f915c390235f96c6a2e543e280a872e9031f.tar.gz tutor-module-8738f915c390235f96c6a2e543e280a872e9031f.tar.xz tutor-module-8738f915c390235f96c6a2e543e280a872e9031f.zip | |
Test-Rechte für Benutzer festlegen
Diffstat (limited to 'Dozentenmodul/src/gui/intro/MainMenue_GUI.java')
| -rw-r--r-- | Dozentenmodul/src/gui/intro/MainMenue_GUI.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java index 52632ee5..56d66c66 100644 --- a/Dozentenmodul/src/gui/intro/MainMenue_GUI.java +++ b/Dozentenmodul/src/gui/intro/MainMenue_GUI.java @@ -42,6 +42,7 @@ import javax.swing.UnsupportedLookAndFeelException; import javax.swing.border.EmptyBorder; import javax.swing.border.TitledBorder; +import models.ImageRights; import models.Links; import models.SessionData; import util.GuiOrganizer; @@ -65,6 +66,9 @@ public class MainMenue_GUI extends JFrame { JRadioButton rdbtnLectureSearch; private final ButtonGroup buttonGroup = new ButtonGroup(); private JMenuItem mntmAbout; + + //for testing + ImageRights imageRights = new ImageRights(); /** @@ -75,6 +79,37 @@ public class MainMenue_GUI extends JFrame { //Leerzeile auf Konsole bei Rueckkehr ins Hauptmenue fuer leichteres Lesen System.out.println("\n"); + //for testing + System.out.println("Setze Rechte für Student"); + imageRights.setRead(1); + imageRights.setWrite(0); + imageRights.setChangePermission(0); + imageRights.setAdmin(0); + imageRights.setLinkAllowed(0); + System.out.println("Rechte (r,w,cp,a,la): "+imageRights.getRead()+","+imageRights.getWrite()+","+imageRights.getChangePermission()+","+imageRights.getAdmin()+","+imageRights.getAdmin()); + + /*//for testing + System.out.println("Setze Rechte für Dozent"); + imageRights.setRead(1); + imageRights.setWrite(1); + imageRights.setChangePermission(0); + imageRights.setAdmin(0); + imageRights.setLinkAllowed(1); + System.out.println("Rechte (r,w,cp,a,la): "+imageRights.getRead()+","+imageRights.getWrite()+","+imageRights.getChangePermission()+","+imageRights.getAdmin()+","+imageRights.getAdmin()); + */ + + /*//for testing + System.out.println("Setze Rechte für Admin"); + imageRights.setRead(1); + imageRights.setWrite(1); + imageRights.setChangePermission(1); + imageRights.setAdmin(1); + imageRights.setLinkAllowed(1); + System.out.println("Rechte (r,w,cp,a,la): "+imageRights.getRead()+","+imageRights.getWrite()+","+imageRights.getChangePermission()+","+imageRights.getAdmin()+","+imageRights.getAdmin()); + */ + + + addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent arg0) { |
