Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-09-08 15:01:41 -0400
committerRyan D. Brooks2011-09-08 15:01:41 -0400
commitf59b22470fb23f97b3a75de44ac52419c04e21de (patch)
tree90aa8b7944bdb156a54788a2b9449dd05184b7f0 /plugins/org.eclipse.osee.framework.core.message/src/org
parentfd418e66265b005de8f3087a3723cd139b798eea (diff)
downloadorg.eclipse.osee-f59b22470fb23f97b3a75de44ac52419c04e21de.tar.gz
org.eclipse.osee-f59b22470fb23f97b3a75de44ac52419c04e21de.tar.xz
org.eclipse.osee-f59b22470fb23f97b3a75de44ac52419c04e21de.zip
refactor: Remove calls to getId for types
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.message/src/org')
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
index 07609a39ad..728eecdbd8 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/RelationTypeCacheUpdateResponse.java
@@ -16,9 +16,9 @@ import java.util.List;
import org.eclipse.osee.framework.core.enums.RelationTypeMultiplicity;
import org.eclipse.osee.framework.core.enums.StorageState;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.model.cache.ArtifactTypeCache;
import org.eclipse.osee.framework.core.model.type.RelationType;
import org.eclipse.osee.framework.core.services.IOseeCachingService;
+import org.eclipse.osee.framework.core.services.IdentityService;
/**
* @author Roberto E. Escobar
@@ -142,12 +142,12 @@ public class RelationTypeCacheUpdateResponse {
public static RelationTypeCacheUpdateResponse fromCache(IOseeCachingService caching) throws OseeCoreException {
Collection<RelationType> relationTypes = caching.getRelationTypeCache().getAll();
- ArtifactTypeCache artifactTypeCache = caching.getArtifactTypeCache();
+ IdentityService identityService = caching.getIdentityService();
List<RelationTypeRow> rows = new ArrayList<RelationTypeRow>();
for (RelationType item : relationTypes) {
- int artifactTypeSideA = artifactTypeCache.get(item.getArtifactTypeSideA()).getId();
- int artifactTypeSideB = artifactTypeCache.get(item.getArtifactTypeSideB()).getId();
+ int artifactTypeSideA = identityService.getLocalId(item.getArtifactTypeSideA());
+ int artifactTypeSideB = identityService.getLocalId(item.getArtifactTypeSideB());
rows.add(new RelationTypeRow(item.getId(), item.getName(), item.getGuid(), item.getStorageState(),
item.getSideAName(), item.getSideBName(), artifactTypeSideA, artifactTypeSideB, item.getMultiplicity(),

Back to the top