Skip to content

Commit

Permalink
Merge pull request #7315 from davidradl/git7229
Browse files Browse the repository at this point in the history
git7229 revert change
  • Loading branch information
davidradl authored Jan 12, 2023
2 parents b16150f + 7a575ff commit a06a205
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2776,7 +2776,7 @@ public VoidResponse addAuditLogDestination(String userId,
{
OMRSConfigurationFactory configurationFactory = new OMRSConfigurationFactory();

repositoryServicesConfig = configurationFactory.getDefaultRepositoryServicesConfig(false);
repositoryServicesConfig = configurationFactory.getDefaultRepositoryServicesConfig();
}

List<Connection> auditLogDestinations = repositoryServicesConfig.getAuditLogConnections();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,31 +353,18 @@ public CohortConfig getDefaultCohortConfig(String localServerName,
/**
* Returns a repository services config with the audit log set up.
*
* @param addDefaultAuditLog when set add a default audit log.
* @return minimally configured repository services config
*/
public RepositoryServicesConfig getDefaultRepositoryServicesConfig(boolean addDefaultAuditLog)
public RepositoryServicesConfig getDefaultRepositoryServicesConfig()
{
RepositoryServicesConfig repositoryServicesConfig = new RepositoryServicesConfig();

if (addDefaultAuditLog)
{
List<Connection> auditLogStoreConnections = new ArrayList<>();
auditLogStoreConnections.add(connectorConfigurationFactory.getDefaultAuditLogConnection());
repositoryServicesConfig.setAuditLogConnections(auditLogStoreConnections);
}
List<Connection> auditLogStoreConnections = new ArrayList<>();

return repositoryServicesConfig;
}
auditLogStoreConnections.add(connectorConfigurationFactory.getDefaultAuditLogConnection());

repositoryServicesConfig.setAuditLogConnections(auditLogStoreConnections);

/**
* Returns a repository services config with the audit log set up.
*
* @return minimally configured repository services config
*/
public RepositoryServicesConfig getDefaultRepositoryServicesConfig()
{
return getDefaultRepositoryServicesConfig(true);
return repositoryServicesConfig;
}
}

0 comments on commit a06a205

Please sign in to comment.