Revision 8:1982e43e6686 src/my/com/upass/services/DisableTacService.java
src/my/com/upass/services/DisableTacService.java | ||
---|---|---|
47 | 47 |
|
48 | 48 |
int rc = Constants.ERR_SYSTEM_NOT_READY; |
49 | 49 |
|
50 |
if (rc != Constants.ERR_SUCCESS) { |
|
51 |
return rc; |
|
52 |
} |
|
53 | 50 |
try { |
54 | 51 |
UserTacDAO tacDao = DAOFactoryProvider.getDAOFactory().getUserTacDAO(); |
55 | 52 |
final Map<Integer, ConfigBean> configsMap = upc.getConfigurationsMap(); |
... | ... | |
57 | 54 |
|
58 | 55 |
TacBean tb = tacDao.getTacFromStore(userAlias, appId); |
59 | 56 |
if (tb == null) { |
60 |
return Constants.ERR_USERALIAS_NOT_FOUND;
|
|
57 |
continue;
|
|
61 | 58 |
} |
62 | 59 |
// reset TAC |
63 | 60 |
final ConfigBean config = configsMap.get(appId); |
... | ... | |
66 | 63 |
tc.getUpdatedObject(); |
67 | 64 |
|
68 | 65 |
if (tacDao.updateTacToStore(tb)) { |
69 |
rc = Constants.ERR_SUCCESS;
|
|
66 |
return Constants.ERR_SUCCESS;
|
|
70 | 67 |
|
71 | 68 |
} else { |
72 |
rc = Constants.ERR_UNKNOWN;
|
|
69 |
return Constants.ERR_UNKNOWN;
|
|
73 | 70 |
} |
74 | 71 |
} |
72 |
|
|
73 |
rc = Constants.ERR_USERALIAS_NOT_FOUND; |
|
74 |
|
|
75 | 75 |
} catch (Exception e) { |
76 | 76 |
e.printStackTrace(); |
77 | 77 |
} |
Also available in: Unified diff