Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2013-05-22 20:54:52 -0400
committerGerrit Code Review @ Eclipse.org2013-06-03 19:21:35 -0400
commit74e5fc7e33ec4f8b30a69046e631f9e87aad8452 (patch)
tree25fb8769a0944777b34df0f9032ae5c6865573fc /plugins/org.eclipse.osee.framework.core.message/src/org
parent2b9e44136a1187f818d94badd3e598b4f0e50776 (diff)
downloadorg.eclipse.osee-74e5fc7e33ec4f8b30a69046e631f9e87aad8452.tar.gz
org.eclipse.osee-74e5fc7e33ec4f8b30a69046e631f9e87aad8452.tar.xz
org.eclipse.osee-74e5fc7e33ec4f8b30a69046e631f9e87aad8452.zip
feature[ats_U3BQK]: Add mediaType to AttributeType
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/AttributeTypeCacheUpdateResponse.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java6
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
index e85d79c3d0..62f4bd324c 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/AttributeTypeCacheUpdateResponse.java
@@ -47,7 +47,8 @@ public class AttributeTypeCacheUpdateResponse {
AttributeType type =
factory.create(item.getGuid(), item.getName(), item.getBaseAttributeTypeId(),
item.getAttributeProviderId(), item.getFileTypeExtension(), item.getDefaultValue(),
- item.getMinOccurrences(), item.getMaxOccurrences(), item.getDescription(), item.getTaggerId());
+ item.getMinOccurrences(), item.getMaxOccurrences(), item.getDescription(), item.getTaggerId(),
+ item.getMediaType());
type.setId(item.getId());
type.setStorageState(item.getStorageState());
rows.add(type);
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
index 6d9dbd6c02..92c9ba5f89 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/AttributeTypeCacheUpdateResponseTranslator.java
@@ -89,7 +89,8 @@ public class AttributeTypeCacheUpdateResponseTranslator implements ITranslator<A
String.valueOf(type.getMinOccurrences()),
type.getStorageState().name(),
type.getName(),
- type.getTaggerId()};
+ type.getTaggerId(),
+ type.getMediaType()};
}
private AttributeType createfromArray(AttributeTypeFactory factory, String[] data) throws OseeCoreException {
@@ -105,10 +106,11 @@ public class AttributeTypeCacheUpdateResponseTranslator implements ITranslator<A
StorageState storageState = StorageState.valueOf(data[9]);
String name = data[10];
String taggerId = data[11];
+ String mediaType = data[12];
AttributeType type =
factory.create(remoteId, name, baseAttributeTypeId, attributeProviderId, fileTypeExtension, defaultValue,
- minOccurrences, maxOccurrences, description, taggerId);
+ minOccurrences, maxOccurrences, description, taggerId, mediaType);
type.setId(uniqueId);
type.setStorageState(storageState);
return type;

Back to the top