RM-4159 Ensure there's exactly one RMRestWrapper.

Use @PostConstruct to fix the hierarchy after initialisation.
This commit is contained in:
Tom Page
2017-03-13 08:14:48 +00:00
parent 80235541fc
commit 03b8e4d4e7
2 changed files with 11 additions and 6 deletions

View File

@@ -67,6 +67,11 @@ public class RestAPIFactory
return this.rmRestWrapper;
}
public void setRmRestWrapper(RMRestWrapper rmRestWrapper)
{
this.rmRestWrapper = rmRestWrapper;
}
private RestIGCoreAPI getRestIGCoreAPI(UserModel userModel)
{
getRmRestWrapper().authenticateUser(userModel != null ? userModel : dataUser.getAdminUser());