diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java')
-rw-r--r-- | plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java index c10b1e0c4dd..f6d944c8a18 100644 --- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java +++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsUserServiceServerImpl.java @@ -45,7 +45,6 @@ public class AtsUserServiceServerImpl extends AbstractAtsUserService { return SystemUser.OseeSystem.getUserId(); } - @SuppressWarnings("unchecked") @Override public boolean isAtsAdmin(IAtsUser user) { if (atsAdminArt == null) { @@ -83,7 +82,7 @@ public class AtsUserServiceServerImpl extends AbstractAtsUserService { atsUser.setUserId(userArt.getSoleAttributeValue(CoreAttributeTypes.UserId, "")); atsUser.setEmail(userArt.getSoleAttributeValue(CoreAttributeTypes.Email, "")); atsUser.setActive(userArt.getSoleAttributeValue(CoreAttributeTypes.Active, true)); - atsUser.setUuid(userArt.getUuid()); + atsUser.setUuid(userArt.getId()); return atsUser; } @@ -125,4 +124,10 @@ public class AtsUserServiceServerImpl extends AbstractAtsUserService { return user; } + @Override + public IAtsUser getUserByArtifactId(ArtifactId id) { + ArtifactReadable userArt = + orcsApi.getQueryFactory().fromBranch(AtsUtilCore.getAtsBranch()).andId(id).getResults().getExactlyOne(); + return createFromArtifact(userArt); + } } |