litesoft
Diff Revisions
954
vs
955
for /trunk/Java/core/Server/src/org/litesoft/security/AbstractCurrentSecurityPOAccessor.java
|
@@ -26,7 +26,7 @@ |
26 |
26 |
|
} |
27 |
27 |
|
|
28 |
28 |
|
protected static <T> T getCurrentInstance( Class<T> pClass ) { |
29 |
|
- |
ServerStore zStore = ServerContext.get().getServerStore(); |
|
29 |
+ |
ServerStore zStore = RequestContext.get().getServerStore(); |
30 |
30 |
|
T zAccessor = zStore.get( pClass ); |
31 |
31 |
|
if ( zAccessor == null ) { |
32 |
32 |
|
try { |
|
@@ -51,7 +51,7 @@ |
51 |
51 |
|
} |
52 |
52 |
|
|
53 |
53 |
|
protected VO getCachedInstance() { |
54 |
|
- |
return ServerContext.get().getServerSession().getAttribute( mClassVO ); |
|
54 |
+ |
return RequestContext.get().getServerSession().getAttribute( mClassVO ); |
55 |
55 |
|
} |
56 |
56 |
|
|
57 |
57 |
|
protected synchronized Pair<PO, VO> createPair(VO pView) { |
|
@@ -69,7 +69,7 @@ |
69 |
69 |
|
PO zOld, zNew; |
70 |
70 |
|
synchronized ( this ) { |
71 |
71 |
|
rv = new Pair<PO, VO>( mViewStale = false, pVO, pPO ); |
72 |
|
- |
ServerContext.get().getServerSession().setAttribute( mClassVO, pVO ); |
|
72 |
+ |
RequestContext.get().getServerSession().setAttribute( mClassVO, pVO ); |
73 |
73 |
|
zOld = mPO; |
74 |
74 |
|
zNew = mPO = pPO; |
75 |
75 |
|
} |