RRRRHHHH_Code
7bf57b2f0f2b3cf0ae9489a8204918762e64648e
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
package domain; import java.util.LinkedList; import configuration.ConfigXML; import dataAccess.DB4oManager; public class Administrator { private static Administrator admin = null; private static LinkedList<RuralHouse> addRequest; private static LinkedList<RuralHouse> removeRequest; private static LinkedList<Account> newOwnerRequest; static ConfigXML c; private Administrator() { addRequest = new LinkedList<RuralHouse>(); removeRequest = new LinkedList<RuralHouse>(); newOwnerRequest = new LinkedList<Account>(); } public static Administrator getInstance() { c = ConfigXML.getInstance(); if (admin == null) { if (c.getDataBaseOpenMode().equals("initialize")) { admin = new Administrator(); } else { DB4oManager db4o; try { db4o = DB4oManager.getInstance(); admin = db4o.getAdminData(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } } return admin; } public static void saveInstance() { try { DB4oManager.getInstance().storeAdmin(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } public LinkedList<RuralHouse> getAddRequest() { return addRequest; } public LinkedList<RuralHouse> getRemoveRequest() { return removeRequest; } public void setAddRequest(LinkedList<RuralHouse> addRequest) { Administrator.addRequest = addRequest; } public void setRemoveRequest(LinkedList<RuralHouse> removeRequest) { Administrator.removeRequest = removeRequest; } public LinkedList<Account> getNewOwnerRequest() { return newOwnerRequest; } public void setNewOwnerRequest(LinkedList<Account> newOwnerRequest) { Administrator.newOwnerRequest = newOwnerRequest; } } |
Commits for RRRRHHHH_CoderuralHouses/src/domain/Administrator.java
Revision | Author | Commited | Message |
---|---|---|---|
7bf57b ... Diff | camjan | Sun 17 May, 2015 11:59:22 +0000 | Possibility of registering new owners added |
0f75b2 ... Diff | camjan | Sat 16 May, 2015 14:34:49 +0000 | Username is saved hashed and password hashed and salted |
2ac167 ... Diff | Eneko Pinzolas Murua | Wed 15 Apr, 2015 13:53:44 +0000 | admin completed |
66f0c8 ... Diff | Eneko Pinzolas Murua | Sun 12 Apr, 2015 18:11:42 +0000 | Model modified so that owners now request for a new house insetion or a house removal. Furthermore, all Administrator GUI and bussines logic create. However, Login GUI and BussinesLogic are to be modified so that they integrate Admin identification. |
704edc ... | camjan | Tue 10 Mar, 2015 13:07:25 +0000 | Administrator class created |