|
@@ -32,22 +32,22 @@ |
32 |
32 |
|
{ |
33 |
33 |
|
getCScomm().requestFunctionFetchRow( this, null, // |
34 |
34 |
|
new VOCSrequestFunctionFetchRow( UserView.class, // |
35 |
|
- |
UserViewAbstractServerFunctionFetchCurrentLoginUser.REG_ID, // |
36 |
|
- |
null ), new FetchRowDataProviderCallBack<UserView>() |
37 |
|
- |
{ |
38 |
|
- |
@Override |
39 |
|
- |
public void success( UserView pRow ) |
40 |
|
- |
{ |
41 |
|
- |
updateContext( pRow ); |
42 |
|
- |
pCallBack.error( null ); |
43 |
|
- |
} |
44 |
|
- |
|
45 |
|
- |
@Override |
46 |
|
- |
public void error( String pError ) |
47 |
|
- |
{ |
48 |
|
- |
pCallBack.error( pError ); |
49 |
|
- |
} |
50 |
|
- |
} ); |
|
35 |
+ |
UserViewAbstractServerFunctionFetchCurrentLoginUser.REG_ID ), // |
|
36 |
+ |
new FetchRowDataProviderCallBack<UserView>() |
|
37 |
+ |
{ |
|
38 |
+ |
@Override |
|
39 |
+ |
public void success( UserView pRow ) |
|
40 |
+ |
{ |
|
41 |
+ |
updateContext( pRow ); |
|
42 |
+ |
pCallBack.error( null ); |
|
43 |
+ |
} |
|
44 |
+ |
|
|
45 |
+ |
@Override |
|
46 |
+ |
public void error( String pError ) |
|
47 |
+ |
{ |
|
48 |
+ |
pCallBack.error( pError ); |
|
49 |
+ |
} |
|
50 |
+ |
} ); |
51 |
51 |
|
} |
52 |
52 |
|
|
53 |
53 |
|
public void changePassword( UserView pUserView, final SimpleDataProviderCallBack pCallBack ) |
|
@@ -62,20 +62,20 @@ |
62 |
62 |
|
new VOCSrequestFunctionFetchRow( UserView.class, // |
63 |
63 |
|
UserViewAbstractServerFunctionChangePassword.REG_ID, // |
64 |
64 |
|
pUserView ), new FetchRowDataProviderCallBack<UserView>() |
65 |
|
- |
{ |
66 |
|
- |
@Override |
67 |
|
- |
public void success( UserView pRow ) |
68 |
|
- |
{ |
69 |
|
- |
updateContext( pRow ); |
70 |
|
- |
pCallBack.error( null ); |
71 |
|
- |
} |
72 |
|
- |
|
73 |
|
- |
@Override |
74 |
|
- |
public void error( String pError ) |
75 |
|
- |
{ |
76 |
|
- |
pCallBack.error( pError ); |
77 |
|
- |
} |
78 |
|
- |
} ); |
|
65 |
+ |
{ |
|
66 |
+ |
@Override |
|
67 |
+ |
public void success( UserView pRow ) |
|
68 |
+ |
{ |
|
69 |
+ |
updateContext( pRow ); |
|
70 |
+ |
pCallBack.error( null ); |
|
71 |
+ |
} |
|
72 |
+ |
|
|
73 |
+ |
@Override |
|
74 |
+ |
public void error( String pError ) |
|
75 |
+ |
{ |
|
76 |
+ |
pCallBack.error( pError ); |
|
77 |
+ |
} |
|
78 |
+ |
} ); |
79 |
79 |
|
} |
80 |
80 |
|
} |
81 |
81 |
|
} |
|
@@ -101,37 +101,6 @@ |
101 |
101 |
|
new VOCSrequestFunctionFetchRow( UserView.class, // |
102 |
102 |
|
UserViewAbstractServerFunctionLogin.REG_ID, // |
103 |
103 |
|
pUserView ), new FetchRowDataProviderCallBack<UserView>() |
104 |
|
- |
{ |
105 |
|
- |
@Override |
106 |
|
- |
public void success( UserView pRow ) |
107 |
|
- |
{ |
108 |
|
- |
updateContext( pRow ); |
109 |
|
- |
pCallBack.error( null ); |
110 |
|
- |
} |
111 |
|
- |
|
112 |
|
- |
@Override |
113 |
|
- |
public void error( String pError ) |
114 |
|
- |
{ |
115 |
|
- |
pCallBack.error( pError ); |
116 |
|
- |
} |
117 |
|
- |
} ); |
118 |
|
- |
} |
119 |
|
- |
} |
120 |
|
- |
} |
121 |
|
- |
|
122 |
|
- |
public void logoutUser() |
123 |
|
- |
{ |
124 |
|
- |
ClientContext.get().get( CurrentUserViewAccessor.class ).setUser( null ); |
125 |
|
- |
getCScomm().requestFunctionSimple( new VOCSrequestFunctionSimple( UserView.class.getName(), UserViewAbstractServerFunctionLogout.REG_ID, // |
126 |
|
- |
null ), null ); |
127 |
|
- |
} |
128 |
|
- |
|
129 |
|
- |
public void nextDemoUser( final SimpleDataProviderCallBack pCallBack ) |
130 |
|
- |
{ |
131 |
|
- |
getCScomm().requestFunctionFetchRow( this, null, // |
132 |
|
- |
new VOCSrequestFunctionFetchRow( UserView.class, // |
133 |
|
- |
UserViewAbstractServerFunctionNextDemoLoginUser.REG_ID, // |
134 |
|
- |
null ), new FetchRowDataProviderCallBack<UserView>() |
135 |
104 |
|
{ |
136 |
105 |
|
@Override |
137 |
106 |
|
public void success( UserView pRow ) |
|
@@ -146,6 +115,36 @@ |
146 |
115 |
|
pCallBack.error( pError ); |
147 |
116 |
|
} |
148 |
117 |
|
} ); |
|
118 |
+ |
} |
|
119 |
+ |
} |
|
120 |
+ |
} |
|
121 |
+ |
|
|
122 |
+ |
public void logoutUser() |
|
123 |
+ |
{ |
|
124 |
+ |
ClientContext.get().get( CurrentUserViewAccessor.class ).setUser( null ); |
|
125 |
+ |
getCScomm().requestFunctionSimple( new VOCSrequestFunctionSimple( UserView.class.getName(), UserViewAbstractServerFunctionLogout.REG_ID ), null ); |
|
126 |
+ |
} |
|
127 |
+ |
|
|
128 |
+ |
public void nextDemoUser( final SimpleDataProviderCallBack pCallBack ) |
|
129 |
+ |
{ |
|
130 |
+ |
getCScomm().requestFunctionFetchRow( this, null, // |
|
131 |
+ |
new VOCSrequestFunctionFetchRow( UserView.class, // |
|
132 |
+ |
UserViewAbstractServerFunctionNextDemoLoginUser.REG_ID ), // |
|
133 |
+ |
new FetchRowDataProviderCallBack<UserView>() |
|
134 |
+ |
{ |
|
135 |
+ |
@Override |
|
136 |
+ |
public void success( UserView pRow ) |
|
137 |
+ |
{ |
|
138 |
+ |
updateContext( pRow ); |
|
139 |
+ |
pCallBack.error( null ); |
|
140 |
+ |
} |
|
141 |
+ |
|
|
142 |
+ |
@Override |
|
143 |
+ |
public void error( String pError ) |
|
144 |
+ |
{ |
|
145 |
+ |
pCallBack.error( pError ); |
|
146 |
+ |
} |
|
147 |
+ |
} ); |
149 |
148 |
|
} |
150 |
149 |
|
|
151 |
150 |
|
public void attemptSwitchToRestrictedResource( RestrictedResourceView pRestrictedResourceView, final SimpleDataProviderCallBack pCallBack ) |
|
@@ -163,20 +162,20 @@ |
163 |
162 |
|
new VOCSrequestFunctionFetchRow( UserView.class, // |
164 |
163 |
|
UserViewAbstractServerFunctionSwitchRestrictedResources.REG_ID, // |
165 |
164 |
|
zUser ), new FetchRowDataProviderCallBack<UserView>() |
166 |
|
- |
{ |
167 |
|
- |
@Override |
168 |
|
- |
public void success( UserView pRow ) |
169 |
|
- |
{ |
170 |
|
- |
updateContext( pRow ); |
171 |
|
- |
pCallBack.error( null ); |
172 |
|
- |
} |
|
165 |
+ |
{ |
|
166 |
+ |
@Override |
|
167 |
+ |
public void success( UserView pRow ) |
|
168 |
+ |
{ |
|
169 |
+ |
updateContext( pRow ); |
|
170 |
+ |
pCallBack.error( null ); |
|
171 |
+ |
} |
173 |
172 |
|
|
174 |
|
- |
@Override |
175 |
|
- |
public void error( String pError ) |
176 |
|
- |
{ |
177 |
|
- |
pCallBack.error( pError ); |
178 |
|
- |
} |
179 |
|
- |
} ); |
|
173 |
+ |
@Override |
|
174 |
+ |
public void error( String pError ) |
|
175 |
+ |
{ |
|
176 |
+ |
pCallBack.error( pError ); |
|
177 |
+ |
} |
|
178 |
+ |
} ); |
180 |
179 |
|
} |
181 |
180 |
|
|
182 |
181 |
|
public void validateLogonEmailAvailable( String pLogonEmail, FetchRowDataProviderCallBack<UserView> pCallBack ) |