softwareprojekt
Class Connection
java.lang.Object
softwareprojekt.Connection
- Direct Known Subclasses:
- Network
public abstract class Connection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
user
protected User user
Connection
public Connection()
initCon
public abstract boolean initCon()
isConnected
public abstract boolean isConnected()
Login
public abstract boolean Login(java.lang.String userID,
java.lang.String password,
char userTyp)
Logout
public abstract void Logout()
disCon
public abstract void disCon()
getLastError
public java.lang.String getLastError()
getLoggedUser
public User getLoggedUser()
changePassword
public abstract boolean changePassword(java.lang.String oldPassword,
java.lang.String newPassword)
deleteUser
public abstract boolean deleteUser(User user)
deleteForm
public abstract boolean deleteForm(Form form)
deleteLecture
public abstract boolean deleteLecture(Lecture lecture)
createUser
public abstract boolean createUser(User user)
createForm
public abstract boolean createForm(Form form)
createLecture
public abstract boolean createLecture(Lecture lecture)
updateLecture
public abstract boolean updateLecture(Lecture lecture)
updateForm
public abstract boolean updateForm(Form form)
updateUser
public abstract boolean updateUser(User user)
getUserList
public abstract java.lang.String[] getUserList()
getFormList
public abstract java.lang.String[] getFormList()
getLectureList
public abstract java.lang.String[] getLectureList()
getFormList
public abstract java.lang.String[] getFormList(java.lang.String[] lectures)
getLectureList
public abstract java.lang.String[] getLectureList(User prof)
getUser
public abstract User getUser(java.lang.String id)
getForm
public abstract Form getForm(java.lang.String id)
getForm
public abstract Form getForm(java.lang.String room,
int time)
getLecture
public abstract Lecture getLecture(java.lang.String shortName)
existFormForStudy
public abstract boolean existFormForStudy(java.lang.String room,
int time)
existAnswerForStudy
public abstract boolean existAnswerForStudy(java.lang.String room,
int time)
insertAnswerFromStudy
public abstract boolean insertAnswerFromStudy(Form form)