network
Class Network

java.lang.Object
  extended by softwareprojekt.Connection
      extended by network.Network

public class Network
extends Connection


Field Summary
 
Fields inherited from class softwareprojekt.Connection
user
 
Constructor Summary
Network()
           
 
Method Summary
 boolean changePassword(java.lang.String oldPassword, java.lang.String newPassword)
          Ändern des Passwortes des eingeloggten Benutzers auf ein neues.
 boolean checkReceive()
           
 boolean createForm(Form form)
          In dieser Schnittstelle nicht benötigt.
 boolean createLecture(Lecture lecture)
          In dieser Schnittstelle nicht benötigt.
 boolean createUser(User user)
          In dieser Schnittstelle nicht benötigt.
 boolean deleteForm(Form form)
          In dieser Schnittstelle nicht benötigt.
 boolean deleteLecture(Lecture lecture)
          In dieser Schnittstelle nicht benötigt.
 boolean deleteUser(User user)
          In dieser Schnittstelle nicht benötigt.
 void disCon()
          Verbindungsabbau der vorher mittels initCon() erstellten Verbindung .
 boolean existAnswerForStudy(java.lang.String room, int time)
           
 boolean existFormForStudy(java.lang.String room, int time)
           
 Form getForm(java.lang.String id)
           
 Form getForm(java.lang.String room, int time)
           
 java.lang.String[] getFormList()
           
 java.lang.String[] getFormList(java.lang.String[] lectures)
           
 Lecture getLecture(java.lang.String shortName)
           
 java.lang.String[] getLectureList()
           
 java.lang.String[] getLectureList(User prof)
           
 User getUser(java.lang.String id)
           
 java.lang.String[] getUserList()
           
 boolean initCon()
           
 boolean insertAnswerFromStudy(Form form)
           
 boolean isConnected()
          Testet das Netzwerk-Objekt auf eine vorhandene Verbindung
 boolean Login(java.lang.String userID, java.lang.String password, char userTyp)
          Versucht den übergebenen Benutzer ein zu loggen
 void Logout()
          Loggt den vorher eingeloggten Benutzer wieder aus
 boolean updateForm(Form form)
          In dieser Schnittstelle nicht benötigt.
 boolean updateLecture(Lecture lecture)
          In dieser Schnittstelle nicht benötigt.
 boolean updateUser(User user)
          In dieser Schnittstelle nicht benötigt.
 
Methods inherited from class softwareprojekt.Connection
getLastError, getLoggedUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Network

public Network()
Method Detail

checkReceive

public boolean checkReceive()

initCon

public boolean initCon()
Specified by:
initCon in class Connection

isConnected

public boolean isConnected()
Testet das Netzwerk-Objekt auf eine vorhandene Verbindung

Specified by:
isConnected in class Connection

Login

public boolean Login(java.lang.String userID,
                     java.lang.String password,
                     char userTyp)
Versucht den übergebenen Benutzer ein zu loggen

Specified by:
Login in class Connection

Logout

public void Logout()
Loggt den vorher eingeloggten Benutzer wieder aus

Specified by:
Logout in class Connection

disCon

public void disCon()
Verbindungsabbau der vorher mittels initCon() erstellten Verbindung .

Specified by:
disCon in class Connection

changePassword

public boolean changePassword(java.lang.String oldPassword,
                              java.lang.String newPassword)
Ändern des Passwortes des eingeloggten Benutzers auf ein neues.

Specified by:
changePassword in class Connection

deleteUser

public boolean deleteUser(User user)
In dieser Schnittstelle nicht benötigt.

Specified by:
deleteUser in class Connection

deleteForm

public boolean deleteForm(Form form)
In dieser Schnittstelle nicht benötigt.

Specified by:
deleteForm in class Connection

deleteLecture

public boolean deleteLecture(Lecture lecture)
In dieser Schnittstelle nicht benötigt.

Specified by:
deleteLecture in class Connection

createUser

public boolean createUser(User user)
In dieser Schnittstelle nicht benötigt.

Specified by:
createUser in class Connection

createForm

public boolean createForm(Form form)
In dieser Schnittstelle nicht benötigt.

Specified by:
createForm in class Connection

createLecture

public boolean createLecture(Lecture lecture)
In dieser Schnittstelle nicht benötigt.

Specified by:
createLecture in class Connection

updateLecture

public boolean updateLecture(Lecture lecture)
In dieser Schnittstelle nicht benötigt.

Specified by:
updateLecture in class Connection

updateForm

public boolean updateForm(Form form)
In dieser Schnittstelle nicht benötigt.

Specified by:
updateForm in class Connection

updateUser

public boolean updateUser(User user)
In dieser Schnittstelle nicht benötigt.

Specified by:
updateUser in class Connection

getUserList

public java.lang.String[] getUserList()
Specified by:
getUserList in class Connection

getFormList

public java.lang.String[] getFormList()
Specified by:
getFormList in class Connection

getLectureList

public java.lang.String[] getLectureList()
Specified by:
getLectureList in class Connection

getFormList

public java.lang.String[] getFormList(java.lang.String[] lectures)
Specified by:
getFormList in class Connection

getLectureList

public java.lang.String[] getLectureList(User prof)
Specified by:
getLectureList in class Connection

getUser

public User getUser(java.lang.String id)
Specified by:
getUser in class Connection

getForm

public Form getForm(java.lang.String id)
Specified by:
getForm in class Connection

getForm

public Form getForm(java.lang.String room,
                    int time)
Specified by:
getForm in class Connection

getLecture

public Lecture getLecture(java.lang.String shortName)
Specified by:
getLecture in class Connection

existFormForStudy

public boolean existFormForStudy(java.lang.String room,
                                 int time)
Specified by:
existFormForStudy in class Connection

existAnswerForStudy

public boolean existAnswerForStudy(java.lang.String room,
                                   int time)
Specified by:
existAnswerForStudy in class Connection

insertAnswerFromStudy

public boolean insertAnswerFromStudy(Form form)
Specified by:
insertAnswerFromStudy in class Connection