Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2017-02-24 12:47:47 -0500
committerRyan D. Brooks2017-02-27 12:49:42 -0500
commitaac55875c6c0d426738421c0a345812f17df237d (patch)
tree402b4efa4459904c5219aadeb5640937cce355c7
parentec0536b0957f8538d14bc0996e3dc6e5f5c5906f (diff)
downloadorg.eclipse.osee-aac55875c6c0d426738421c0a345812f17df237d.tar.gz
org.eclipse.osee-aac55875c6c0d426738421c0a345812f17df237d.tar.xz
org.eclipse.osee-aac55875c6c0d426738421c0a345812f17df237d.zip
refinement: Support anonymous applicability REST calls0.24.4.v201702271559-NRB
-rw-r--r--plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/BranchesResource.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/BranchesResource.java b/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/BranchesResource.java
index 044082e63b..f4b0a65a21 100644
--- a/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/BranchesResource.java
+++ b/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/BranchesResource.java
@@ -22,6 +22,7 @@ import javax.ws.rs.core.UriInfo;
import org.eclipse.osee.framework.core.data.ArtifactId;
import org.eclipse.osee.framework.core.data.BranchId;
import org.eclipse.osee.framework.core.enums.BranchType;
+import org.eclipse.osee.framework.core.enums.SystemUser;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.type.ResultSet;
import org.eclipse.osee.orcs.data.BranchReadable;
@@ -63,6 +64,7 @@ public class BranchesResource {
@Path("{branch}/applic")
public ApplicabilityEndpoint getApplicability(@PathParam("branch") BranchId branch, @HeaderParam("osee.account.id") String accountId) {
- return new ApplicabilityEndpointImpl(OrcsApplication.getOrcsApi(), branch, ArtifactId.valueOf(accountId));
+ ArtifactId account = accountId == null ? SystemUser.Anonymous : ArtifactId.valueOf(accountId);
+ return new ApplicabilityEndpointImpl(OrcsApplication.getOrcsApi(), branch, account);
}
-} \ No newline at end of file
+}

Back to the top