diff options
| author | Simon Rettberg | 2014-07-14 20:58:42 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2014-07-14 20:58:42 +0200 |
| commit | 67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107 (patch) | |
| tree | 82b1d287d0b7304d2c5b8bc4d958694fd8fd2b4d /Dozentenmodul/src/models | |
| parent | Converted DMS to Maven project (1/2) (diff) | |
| download | tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.tar.gz tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.tar.xz tutor-module-67511b8aad6c1162bbd8ba01e1d4cd9a0bb1e107.zip | |
mavenization on its way...
Diffstat (limited to 'Dozentenmodul/src/models')
| -rw-r--r-- | Dozentenmodul/src/models/Client.java | 18 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/Image.java | 172 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/Lecture.java | 141 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/Links.java | 161 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/SessionData.java | 30 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/person.java | 121 | ||||
| -rw-r--r-- | Dozentenmodul/src/models/user.java | 23 |
7 files changed, 0 insertions, 666 deletions
diff --git a/Dozentenmodul/src/models/Client.java b/Dozentenmodul/src/models/Client.java deleted file mode 100644 index 42eccdec..00000000 --- a/Dozentenmodul/src/models/Client.java +++ /dev/null @@ -1,18 +0,0 @@ -package models; - -public class Client { - - private server.Server.Client client; - public static Client clientcon=new Client(); - - public server.Server.Client getClient() { - return client; - } - - public void setClient(server.Server.Client client) { - this.client = client; - } - - - -} diff --git a/Dozentenmodul/src/models/Image.java b/Dozentenmodul/src/models/Image.java deleted file mode 100644 index 86bc1e48..00000000 --- a/Dozentenmodul/src/models/Image.java +++ /dev/null @@ -1,172 +0,0 @@ -package models; - -public class Image { - - - - private String ImageId; - - private String version; - - private String imagename; - - private String newName; - - private String imagepath; - - private int shareMode; - - private boolean licensed; - - private boolean internet; - - private int ram; - - private int cpu; - - private long filesize; - - public static Image image =new Image(); - - - - - - - - public int getShareMode() { - - return shareMode; - - } - - public void setShareMode(int shareMode) { - - this.shareMode = shareMode; - - } - - public String getImagepath() { - - return imagepath; - - } - - public void setImagepath(String imagepath) { - - this.imagepath = imagepath; - - } - - public String getImagename() { - - return imagename; - - } - - public void setImagename(String imagename) { - - this.imagename = imagename; - - } - - public boolean isLicensed() { - - return licensed; - - } - - public void setLicensed(boolean licensed) { - - this.licensed = licensed; - - } - - public boolean isInternet() { - - return internet; - - } - - public void setInternet(boolean internet) { - - this.internet = internet; - - } - - public int getRam() { - - return ram; - - } - - public void setRam(int ram) { - - this.ram = ram; - - } - - public int getCpu() { - - return cpu; - - } - - public void setCpu(int cpu) { - - this.cpu = cpu; - - } - - public String getNewName() { - - return newName; - - } - - public void setNewName(String newName) { - - this.newName = newName; - - } - - public String getImageId() { - - return ImageId; - - } - - public void setImageId(String imageId) { - - ImageId = imageId; - - } - - public String getVersion() { - - return version; - - } - - public void setVersion(String version) { - - this.version = version; - - } - - public long getFilesize() { - - return filesize; - - } - - public void setFilesize(long filesize) { - - this.filesize = filesize; - - } - - - -} - diff --git a/Dozentenmodul/src/models/Lecture.java b/Dozentenmodul/src/models/Lecture.java deleted file mode 100644 index 8f67baba..00000000 --- a/Dozentenmodul/src/models/Lecture.java +++ /dev/null @@ -1,141 +0,0 @@ -package models; - -import java.util.Date; - -public class Lecture { - - private String name; - - private String newName; - - private String shortDesc; - - private String desc; - - private Date startdate; - - private Date enddate; - - private boolean active; - - private String id; - - private String linkedImagename; - - public static Lecture lecture =new Lecture(); - - - - public String getNewName() { - - return newName; - - } - - public void setNewName(String newName) { - - this.newName = newName; - - } - - public String getLinkedImagename() { - - return linkedImagename; - - } - - public void setLinkedImagename(String linkedImagename) { - - this.linkedImagename = linkedImagename; - - } - - public String getid() { - - return id; - - } - - public void setid(String id) { - - this.id = id; - - } - - public String getName() { - - return name; - - } - - public void setName(String name) { - - this.name = name; - - } - - public String getShortDesc() { - - return shortDesc; - - } - - public void setShortDesc(String shortDesc) { - - this.shortDesc = shortDesc; - - } - - public String getDesc() { - - return desc; - - } - - public void setDesc(String desc) { - - this.desc = desc; - - } - - public Date getStartdate() { - - return startdate; - - } - - public void setStartdate(Date startdate) { - - this.startdate = startdate; - - } - - public Date getEnddate() { - - return enddate; - - } - - public void setEnddate(Date enddate) { - - this.enddate = enddate; - - } - - public boolean isActive() { - - return active; - - } - - public void setActive(boolean active) { - - this.active = active; - - } - - - - - -} diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java deleted file mode 100644 index 693fbb3e..00000000 --- a/Dozentenmodul/src/models/Links.java +++ /dev/null @@ -1,161 +0,0 @@ -package models; - -import java.awt.Desktop; -import java.io.IOException; -import java.net.URISyntaxException; -import java.net.URL; - -public class Links { - - private static String FAQ = "http://bwlehrpool.hs-offenburg.de/"; - private static String OTRS = "https://bwlehrpool-otrs.rz.hs-offenburg.de/otrs/customer.pl"; - private static String uriWindows = "https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; - private static String uriLinux = "https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_player/6_0"; - - public static String getFAQ() { - return FAQ; - } - - public static String getOTRS() { - return OTRS; - } - - public static void openFAQ() { - - String faq = FAQ; - Runtime rt = Runtime.getRuntime(); - String os = System.getProperty("os.name"); - - try { - - - if (os.indexOf( "Win" ) >= 0) { - - rt.exec( "rundll32 url.dll,FileProtocolHandler " + faq); - - } else if (os.indexOf( "Mac" ) >= 0) { - - rt.exec( "open " + faq); - - } else if (os.indexOf( "nix") >=0 || os.indexOf( "nux") >=0) { - - // Do a best guess on unix until we get a platform independent way - // Build a list of browsers to try, in this order. - String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror", - "netscape","opera","links","lynx"}; - - StringBuffer cmd = new StringBuffer(); - for (int i=0; i<browsers.length; i++) - cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + faq + "\" "); - - rt.exec(new String[] { "sh", "-c", cmd.toString() }); - } - - if (os.indexOf("Win") >= 0) { - - // this doesn't support showing urls in the form of - // "page.html#nameLink" - rt.exec("rundll32 url.dll,FileProtocolHandler " + faq); - - } else if (os.indexOf("Mac") >= 0) { - - rt.exec("open " + faq); - - } else if (os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0) { - - // Do a best guess on unix until we get a platform independent - // way - // Build a list of browsers to try, in this order. - String[] browsers = { "epiphany", "firefox", "mozilla", - "konqueror", "netscape", "opera", "links", "lynx" }; - - // Build a command string which looks like - // "browser1 "url" || browser2 "url" ||..." - StringBuffer cmd = new StringBuffer(); - for (int i = 0; i < browsers.length; i++) - cmd.append((i == 0 ? "" : " || ") + browsers[i] + " \"" - + faq + "\" "); - - rt.exec(new String[] { "sh", "-c", cmd.toString() }); - } - - - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - - public static void openOTRS() { - - String otrs = OTRS; - Runtime rt = Runtime.getRuntime(); - String os = System.getProperty("os.name"); - - try { - - if (os.indexOf( "Win" ) >= 0) { - - rt.exec( "rundll32 url.dll,FileProtocolHandler " + otrs); - - } else if (os.indexOf( "Mac" ) >= 0) { - - rt.exec( "open " + otrs); - - } else if (os.indexOf( "nix") >=0 || os.indexOf( "nux") >=0) { - - String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror", - "netscape","opera","links","lynx"}; - - StringBuffer cmd = new StringBuffer(); - for (int i=0; i<browsers.length; i++) - cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + otrs + "\" "); - - rt.exec(new String[] { "sh", "-c", cmd.toString() }); - } - - if (os.indexOf("Win") >= 0) { - - // this doesn't support showing urls in the form of - // "page.html#nameLink" - rt.exec("rundll32 url.dll,FileProtocolHandler " + otrs); - - } else if (os.indexOf("Mac") >= 0) { - - rt.exec("open " + otrs); - - } else if (os.indexOf("nix") >= 0 || os.indexOf("nux") >= 0) { - - // Do a best guess on unix until we get a platform independent - // way - // Build a list of browsers to try, in this order. - String[] browsers = { "epiphany", "firefox", "mozilla", - "konqueror", "netscape", "opera", "links", "lynx" }; - - // Build a command string which looks like - // "browser1 "url" || browser2 "url" ||..." - StringBuffer cmd = new StringBuffer(); - for (int i = 0; i < browsers.length; i++) - cmd.append((i == 0 ? "" : " || ") + browsers[i] + " \"" - + otrs + "\" "); - - rt.exec(new String[] { "sh", "-c", cmd.toString() }); - } - - } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - } - - public static String getUriWindows() { - return uriWindows; - } - - public static String getUriLinux() { - return uriLinux; - } - -} diff --git a/Dozentenmodul/src/models/SessionData.java b/Dozentenmodul/src/models/SessionData.java deleted file mode 100644 index 187dc59f..00000000 --- a/Dozentenmodul/src/models/SessionData.java +++ /dev/null @@ -1,30 +0,0 @@ -package models; - -public class SessionData { - - private String sessionID; - private String authToken; - private String serverAdress; - public static SessionData session =new SessionData(); - - public String getSessionID() { - return sessionID; - } - public void setSessionID(String sessionID) { - this.sessionID = sessionID; - } - public String getAuthToken() { - return authToken; - } - public void setAuthToken(String authToken) { - this.authToken = authToken; - } - public String getServerAdress() { - return serverAdress; - } - public void setServerAdress(String serverAdress) { - this.serverAdress = serverAdress; - } - - -} diff --git a/Dozentenmodul/src/models/person.java b/Dozentenmodul/src/models/person.java deleted file mode 100644 index 6e066730..00000000 --- a/Dozentenmodul/src/models/person.java +++ /dev/null @@ -1,121 +0,0 @@ -package models; - -public class person{ - - private String username; - - private String Name; - - private String Vorname; - - private String Hochschule; - - private String EMail; - - private String Tel; - - private String Fakultaet; - - private boolean ischecked; - - public static person verantwortlicher=new person(); - - - - public String getUsername() { - - return username; - - } - - public void setUsername(String username) { - - this.username = username; - - } - - public String getName() { - - return Name; - - } - - public void setName(String name) { - - Name = name; - - } - - public String getVorname() { - - return Vorname; - - } - - public void setVorname(String vorname) { - - Vorname = vorname; - - } - - public String getHochschule() { - - return Hochschule; - - } - - public void setHochschule(String hochschule) { - - Hochschule = hochschule; - - } - - public String getEMail() { - - return EMail; - - } - - public void setEMail(String eMail) { - - EMail = eMail; - - } - - public String getTel() { - - return Tel; - - } - - public void setTel(String tel) { - - Tel = tel; - - } - - public String getFakultaet() { - - return Fakultaet; - - } - - public void setFakultaet(String fakultaet) { - - Fakultaet = fakultaet; - - } - - public boolean isIschecked() { - - return ischecked; - - } - - public void setIschecked(boolean ischecked) { - - this.ischecked = ischecked; - - } - -} diff --git a/Dozentenmodul/src/models/user.java b/Dozentenmodul/src/models/user.java deleted file mode 100644 index 9aa958a4..00000000 --- a/Dozentenmodul/src/models/user.java +++ /dev/null @@ -1,23 +0,0 @@ -package models; - -public class user { - - private String userName; - private String Password; - - public String getUserName() { - return userName; - } - public void setUserName(String userName) { - this.userName = userName; - } - public String getPassword() { - return Password; - } - public void setPassword(String password) { - Password = password; - } - - - -} |
