Revision 5374
Added by berkley almost 14 years ago
CartManager.java | ||
---|---|---|
56 | 56 |
} |
57 | 57 |
|
58 | 58 |
private void init() { |
59 |
documentCart = SessionService.getRegisteredSession(sessionId).getDocumentCart(); |
|
59 |
documentCart = SessionService.getInstance().getRegisteredSession(sessionId).getDocumentCart();
|
|
60 | 60 |
if (documentCart == null) { |
61 | 61 |
documentCart = new DocumentCart(); |
62 | 62 |
} |
... | ... | |
95 | 95 |
} |
96 | 96 |
} |
97 | 97 |
|
98 |
SessionService.getRegisteredSession(sessionId).setDocumentCart(documentCart); |
|
98 |
SessionService.getInstance().getRegisteredSession(sessionId).setDocumentCart(documentCart);
|
|
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
} |
Also available in: Unified diff
refactored the sessionService to use a correct singleton initialization scheme. Added true authentication to ResourceHandler.