|
@@ -1,67 +1,67 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.eventbus.client; |
3 |
|
- |
|
4 |
|
- |
import java.io.*; |
5 |
|
- |
|
6 |
|
- |
public class AuthenticationData implements Serializable { |
7 |
|
- |
private String mAuthenticationError; |
8 |
|
- |
private String mLoginUser; |
9 |
|
- |
private String mUserKeyAsOpaqueString; |
10 |
|
- |
private String mUserDisplayName; |
11 |
|
- |
private String mThemeCode; |
12 |
|
- |
private AppXtraLoginData mAppXtraLoginData; |
13 |
|
- |
|
14 |
|
- |
/** |
15 |
|
- |
* @deprecated GWT ONLY |
16 |
|
- |
*/ |
17 |
|
- |
public AuthenticationData() { |
18 |
|
- |
} |
19 |
|
- |
|
20 |
|
- |
public AuthenticationData( String pAuthenticationError ) { |
21 |
|
- |
mAuthenticationError = pAuthenticationError; |
22 |
|
- |
} |
23 |
|
- |
|
24 |
|
- |
public AuthenticationData( String pLoginUser, String pUserKeyAsOpaqueString, String pUserDisplayName, |
25 |
|
- |
String pThemeCode, AppXtraLoginData pAppXtraLoginData ) { |
26 |
|
- |
this( null ); |
27 |
|
- |
mLoginUser = pLoginUser; |
28 |
|
- |
mUserKeyAsOpaqueString = pUserKeyAsOpaqueString; |
29 |
|
- |
mUserDisplayName = pUserDisplayName; |
30 |
|
- |
mThemeCode = pThemeCode; |
31 |
|
- |
mAppXtraLoginData = pAppXtraLoginData; |
32 |
|
- |
} |
33 |
|
- |
|
34 |
|
- |
public String getAuthenticationError() { |
35 |
|
- |
return mAuthenticationError; |
36 |
|
- |
} |
37 |
|
- |
|
38 |
|
- |
public String getLoginUser() { |
39 |
|
- |
return mLoginUser; |
40 |
|
- |
} |
41 |
|
- |
|
42 |
|
- |
public String getUserKeyAsOpaqueString() { |
43 |
|
- |
return mUserKeyAsOpaqueString; |
44 |
|
- |
} |
45 |
|
- |
|
46 |
|
- |
public String getUserDisplayName() { |
47 |
|
- |
return mUserDisplayName; |
48 |
|
- |
} |
49 |
|
- |
|
50 |
|
- |
public String getThemeCode() { |
51 |
|
- |
return mThemeCode; |
52 |
|
- |
} |
53 |
|
- |
|
54 |
|
- |
public AppXtraLoginData getAppSpecificAuthData() { |
55 |
|
- |
return mAppXtraLoginData; |
56 |
|
- |
} |
57 |
|
- |
|
58 |
|
- |
public boolean hasUserKeyAsOpaqueString() { |
59 |
|
- |
return (getUserKeyAsOpaqueString() != null); |
60 |
|
- |
} |
61 |
|
- |
|
62 |
|
- |
public static final AuthenticationData NULL = new AuthenticationData( null ); |
63 |
|
- |
|
64 |
|
- |
public static AuthenticationData deNull( AuthenticationData pAuthenticationData ) { |
65 |
|
- |
return (pAuthenticationData != null) ? pAuthenticationData : NULL; |
66 |
|
- |
} |
67 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.eventbus.client; |
|
3 |
+ |
|
|
4 |
+ |
import java.io.*; |
|
5 |
+ |
|
|
6 |
+ |
public class AuthenticationData implements Serializable { |
|
7 |
+ |
private String mAuthenticationError; |
|
8 |
+ |
private String mLoginUser; |
|
9 |
+ |
private String mUserKeyAsOpaqueString; |
|
10 |
+ |
private String mUserDisplayName; |
|
11 |
+ |
private String mThemeCode; |
|
12 |
+ |
private AppXtraLoginData mAppXtraLoginData; |
|
13 |
+ |
|
|
14 |
+ |
/** |
|
15 |
+ |
* @deprecated GWT ONLY |
|
16 |
+ |
*/ |
|
17 |
+ |
public AuthenticationData() { |
|
18 |
+ |
} |
|
19 |
+ |
|
|
20 |
+ |
public AuthenticationData( String pAuthenticationError ) { |
|
21 |
+ |
mAuthenticationError = pAuthenticationError; |
|
22 |
+ |
} |
|
23 |
+ |
|
|
24 |
+ |
public AuthenticationData( String pLoginUser, String pUserKeyAsOpaqueString, String pUserDisplayName, |
|
25 |
+ |
String pThemeCode, AppXtraLoginData pAppXtraLoginData ) { |
|
26 |
+ |
this( null ); |
|
27 |
+ |
mLoginUser = pLoginUser; |
|
28 |
+ |
mUserKeyAsOpaqueString = pUserKeyAsOpaqueString; |
|
29 |
+ |
mUserDisplayName = pUserDisplayName; |
|
30 |
+ |
mThemeCode = pThemeCode; |
|
31 |
+ |
mAppXtraLoginData = pAppXtraLoginData; |
|
32 |
+ |
} |
|
33 |
+ |
|
|
34 |
+ |
public String getAuthenticationError() { |
|
35 |
+ |
return mAuthenticationError; |
|
36 |
+ |
} |
|
37 |
+ |
|
|
38 |
+ |
public String getLoginUser() { |
|
39 |
+ |
return mLoginUser; |
|
40 |
+ |
} |
|
41 |
+ |
|
|
42 |
+ |
public String getUserKeyAsOpaqueString() { |
|
43 |
+ |
return mUserKeyAsOpaqueString; |
|
44 |
+ |
} |
|
45 |
+ |
|
|
46 |
+ |
public String getUserDisplayName() { |
|
47 |
+ |
return mUserDisplayName; |
|
48 |
+ |
} |
|
49 |
+ |
|
|
50 |
+ |
public String getThemeCode() { |
|
51 |
+ |
return mThemeCode; |
|
52 |
+ |
} |
|
53 |
+ |
|
|
54 |
+ |
public AppXtraLoginData getAppSpecificAuthData() { |
|
55 |
+ |
return mAppXtraLoginData; |
|
56 |
+ |
} |
|
57 |
+ |
|
|
58 |
+ |
public boolean hasUserKeyAsOpaqueString() { |
|
59 |
+ |
return (getUserKeyAsOpaqueString() != null); |
|
60 |
+ |
} |
|
61 |
+ |
|
|
62 |
+ |
public static final AuthenticationData NULL = new AuthenticationData( null ); |
|
63 |
+ |
|
|
64 |
+ |
public static AuthenticationData deNull( AuthenticationData pAuthenticationData ) { |
|
65 |
+ |
return (pAuthenticationData != null) ? pAuthenticationData : NULL; |
|
66 |
+ |
} |
|
67 |
+ |
} |