diff options
author | donald.g.dunne | 2016-06-27 21:12:34 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2016-07-29 06:18:28 +0000 |
commit | 0ff6aba5036081c457be0ecff42f3c4f3feb543f (patch) | |
tree | 8b13d7a05cf3fbdb64247cd69040b47e940cb471 /plugins/org.eclipse.osee.account.rest.client | |
parent | 318b5413f15d3e014e23a790043e8b9b1202ac73 (diff) | |
download | org.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.tar.gz org.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.tar.xz org.eclipse.osee-0ff6aba5036081c457be0ecff42f3c4f3feb543f.zip |
feature[ats_ATS286643]: HLR - Implement Types Versioning
Change-Id: I9d68d8b17295bbb6986917db495811cc6eae25cc
Diffstat (limited to 'plugins/org.eclipse.osee.account.rest.client')
2 files changed, 14 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/AccountClient.java b/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/AccountClient.java index bb5969a83ce..0202921f139 100644 --- a/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/AccountClient.java +++ b/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/AccountClient.java @@ -68,4 +68,8 @@ public interface AccountClient { AccountWebPreferences getAccountWebPreferencesByUniqueField(Long accountId); + boolean isLocalHost(); + + String getBaseUri(); + } diff --git a/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/internal/AccountClientImpl.java b/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/internal/AccountClientImpl.java index 7e5033efc1a..98cfda85c87 100644 --- a/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/internal/AccountClientImpl.java +++ b/plugins/org.eclipse.osee.account.rest.client/src/org/eclipse/osee/account/rest/client/internal/AccountClientImpl.java @@ -290,4 +290,14 @@ public class AccountClientImpl implements AccountClient { } }; } + + @Override + public boolean isLocalHost() { + return baseUri.toString().contains("localhost"); + } + + @Override + public String getBaseUri() { + return baseUri.toString(); + } } |