Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2014-03-25 16:11:37 -0400
committerRyan D. Brooks2014-03-25 16:11:37 -0400
commit2abb1fe659ed64a6456af01b04c97f457ab87709 (patch)
treead5a438f12531f0258892740fabb917a9de971fe /plugins/org.eclipse.osee.orcs.account.admin
parent045c0f2cf983ffc9d0521cd2b58565afda14c921 (diff)
downloadorg.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.tar.gz
org.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.tar.xz
org.eclipse.osee-2abb1fe659ed64a6456af01b04c97f457ab87709.zip
refinement: Account access details default to N/A when null
Allow creation of account access even if remote address and access details is null. These values should be marked as N/A when null. Change-Id: Ib8d06c6138dbdfcdfc4bd357c0f46ac454dc1d57
Diffstat (limited to 'plugins/org.eclipse.osee.orcs.account.admin')
-rw-r--r--plugins/org.eclipse.osee.orcs.account.admin/src/org/eclipse/osee/orcs/account/admin/internal/OrcsAccountStorageImpl.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.orcs.account.admin/src/org/eclipse/osee/orcs/account/admin/internal/OrcsAccountStorageImpl.java b/plugins/org.eclipse.osee.orcs.account.admin/src/org/eclipse/osee/orcs/account/admin/internal/OrcsAccountStorageImpl.java
index bf19970a85..85932ef585 100644
--- a/plugins/org.eclipse.osee.orcs.account.admin/src/org/eclipse/osee/orcs/account/admin/internal/OrcsAccountStorageImpl.java
+++ b/plugins/org.eclipse.osee.orcs.account.admin/src/org/eclipse/osee/orcs/account/admin/internal/OrcsAccountStorageImpl.java
@@ -14,7 +14,6 @@ import java.io.StringWriter;
import java.util.Collections;
import java.util.Map;
import java.util.Map.Entry;
-import org.eclipse.osee.account.admin.AccessDetails;
import org.eclipse.osee.account.admin.Account;
import org.eclipse.osee.account.admin.AccountAccess;
import org.eclipse.osee.account.admin.AccountPreferences;
@@ -266,9 +265,8 @@ public class OrcsAccountStorageImpl implements AccountStorage {
}
@Override
- public AccountAccess createAccountAccess(String accessToken, Account account, AccessDetails details) {
- AccountAccess access =
- factory.newAccountAccess(account.getId(), accessToken, details.getRemoteAddress(), details.getAccessDetails());
+ public AccountAccess createAccountAccess(String accessToken, Account account, String remoteAddress, String accessDetails) {
+ AccountAccess access = factory.newAccountAccess(account.getId(), accessToken, remoteAddress, accessDetails);
try {
accessStore.createAccountAccess(Collections.singleton(access)).call();
return access;

Back to the top