litesoft
Diff Revisions
949
vs
950
for /trunk/GWT_Sandbox/Prioritizer/src/org/litesoft/prioritizer/server/CurrentUserAccessor.java
|
@@ -1,19 +1,19 @@ |
1 |
|
- |
package org.litesoft.prioritizer.server; |
2 |
|
- |
|
3 |
|
- |
import org.litesoft.bo.views.*; |
4 |
|
- |
import org.litesoft.core.*; |
5 |
|
- |
import org.litesoft.prioritizer.client.boviews.*; |
6 |
|
- |
import org.litesoft.prioritizer.server.boviews.podataproviders.*; |
7 |
|
- |
import org.litesoft.prioritizer.server.pos.*; |
8 |
|
- |
import org.litesoft.security.*; |
9 |
|
- |
|
10 |
|
- |
public class CurrentUserAccessor extends AbstractCurrentSecurityUserAccessor<User, UserView, RestrictedResource> { |
11 |
|
- |
private CurrentUserAccessor() { |
12 |
|
- |
super( User.class, UserView.class, |
13 |
|
- |
(UserViewPoServerVoDataProvider) ServerContext.getMasterServerStore().get( ServerVoDataProviderMap.class ).get( UserView.class ) ); |
14 |
|
- |
} |
15 |
|
- |
|
16 |
|
- |
public static synchronized CurrentUserAccessor get() { |
17 |
|
- |
return getCurrentInstance( CurrentUserAccessor.class ); |
18 |
|
- |
} |
19 |
|
- |
} |
|
1 |
+ |
package org.litesoft.prioritizer.server; |
|
2 |
+ |
|
|
3 |
+ |
import org.litesoft.bo.views.*; |
|
4 |
+ |
import org.litesoft.core.*; |
|
5 |
+ |
import org.litesoft.prioritizer.client.boviews.*; |
|
6 |
+ |
import org.litesoft.prioritizer.server.boviews.podataproviders.*; |
|
7 |
+ |
import org.litesoft.prioritizer.server.pos.*; |
|
8 |
+ |
import org.litesoft.security.*; |
|
9 |
+ |
|
|
10 |
+ |
public class CurrentUserAccessor extends AbstractCurrentSecurityUserAccessor<User, UserView, RestrictedResource> { |
|
11 |
+ |
private CurrentUserAccessor() { |
|
12 |
+ |
super( User.class, UserView.class, |
|
13 |
+ |
(UserViewPoServerVoDataProvider) ServerContext.getMasterServerStore().get( ServerVoDataProviderMap.class ).get( UserView.class ) ); |
|
14 |
+ |
} |
|
15 |
+ |
|
|
16 |
+ |
public static synchronized CurrentUserAccessor get() { |
|
17 |
+ |
return getCurrentInstance( CurrentUserAccessor.class ); |
|
18 |
+ |
} |
|
19 |
+ |
} |