+
+ @Override
+ public BasicAuthCredentials getBasicAuthCredentialsById(long id) throws Exception {
+ try {
+ @SuppressWarnings("unchecked")
+ List<BasicAuthCredentials> list = (List<BasicAuthCredentials>) dataAccessService
+ .getList(BasicAuthCredentials.class, null);
+ for (BasicAuthCredentials auth : list) {
+ if (auth != null && auth.getId() == id)
+ return auth;
+ }
+ } catch (Exception e) {
+ logger.error(EELFLoggerDelegate.errorLogger, "getBasicAuthCredentialsDataById failed", e);
+ throw e;
+ }
+ return null;
+
+ }