Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2013-11-20 14:21:29 -0500
committerjmisinco2013-11-20 14:21:34 -0500
commit33e7bf2d56ce398c5b64b82b389e4e87aee75ed1 (patch)
treecf3b75ff599d0b23fe49e918a4393ad8b7e1e8b4 /plugins/org.eclipse.osee.framework.core.message/src/org
parent1cdc16e87f213b46f3ee4443d8a5e347c1c8ab1e (diff)
downloadorg.eclipse.osee-33e7bf2d56ce398c5b64b82b389e4e87aee75ed1.tar.gz
org.eclipse.osee-33e7bf2d56ce398c5b64b82b389e4e87aee75ed1.tar.xz
org.eclipse.osee-33e7bf2d56ce398c5b64b82b389e4e87aee75ed1.zip
feature[ats_ZQZZF]: Change identity service to return longs for local ids
Missed a few int to long conversions in translation messages. Change-Id: I5a1490aa20eb7d6e8d6fb5b713891e4fe6821c0a
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/internal/translation/BranchCommitRequestTranslator.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java2
7 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
index df888f3886..d109e98e25 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
@@ -28,8 +28,8 @@ public final class BranchCommitRequestTranslator implements ITranslator<BranchCo
@Override
public BranchCommitRequest convert(PropertyStore propertyStore) {
- int srcBranchId = propertyStore.getInt(Entry.SRC_BRANCH_ID.name());
- int destBranchId = propertyStore.getInt(Entry.DEST_BRANCH_ID.name());
+ long srcBranchId = propertyStore.getLong(Entry.SRC_BRANCH_ID.name());
+ long destBranchId = propertyStore.getLong(Entry.DEST_BRANCH_ID.name());
int userArtifactId = propertyStore.getInt(Entry.USER_ART_ID.name());
boolean isArchiveAllowed = propertyStore.getBoolean(Entry.IS_ARCHIVE_ALLOWED.name());
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
index b974f3f8b5..56429ae8a9 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
@@ -40,7 +40,7 @@ public class BranchCreationRequestTranslator implements ITranslator<BranchCreati
@Override
public BranchCreationRequest convert(PropertyStore store) {
String branchName = store.get(Fields.BRANCH_NAME.name());
- int parentBranchId = store.getInt(Fields.PARENT_BRANCH_ID.name());
+ long parentBranchId = store.getLong(Fields.PARENT_BRANCH_ID.name());
int associatedArtifactId = store.getInt(Fields.ASSOCIATED_ART_ID.name());
BranchType branchType = BranchType.valueOf(store.get(Fields.BRANCH_TYPE.name()));
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java
index 1d2b7a275a..bab7f29c4d 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java
@@ -25,7 +25,7 @@ public class BranchCreationResponseTranslator implements ITranslator<BranchCreat
@Override
public BranchCreationResponse convert(PropertyStore store) {
- int branchId = store.getInt(Fields.BRANCH_ID.name());
+ long branchId = store.getLong(Fields.BRANCH_ID.name());
return new BranchCreationResponse(branchId);
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java
index 84894b8b29..813112ee6c 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java
@@ -147,7 +147,7 @@ public class ChangeReportResponseTranslator implements ITranslator<ChangeReportR
ChangeItemType type = ChangeItemType.getType(row[0]);
int itemId = Integer.parseInt(row[1]);
- int itemTypeId = Integer.parseInt(row[2]);
+ long itemTypeId = Long.parseLong(row[2]);
switch (type) {
case ARTIFACT:
boolean synthetic = Boolean.parseBoolean(row[3]);
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java
index 068cc497b0..69ef66b04b 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java
@@ -26,7 +26,7 @@ public class PurgeBranchRequestTranslator implements ITranslator<PurgeBranchRequ
@Override
public PurgeBranchRequest convert(PropertyStore propertyStore) {
- int branchId = propertyStore.getInt(Entry.BRANCH_ID.name());
+ long branchId = propertyStore.getLong(Entry.BRANCH_ID.name());
boolean recursive = propertyStore.getBoolean(Entry.RECURSIVE.name());
PurgeBranchRequest request = new PurgeBranchRequest(branchId, recursive);
return request;
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
index 495016408b..73dded007c 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionCacheUpdateResponseTranslator.java
@@ -93,7 +93,7 @@ public class TransactionCacheUpdateResponseTranslator implements ITranslator<Tra
Date timeStamp = new Date(Long.valueOf(data[index++]));
int authorArtId = Integer.valueOf(data[index++]);
int commitArtId = Integer.valueOf(data[index++]);
- int branchId = Integer.valueOf(data[index++]);
+ long branchId = Long.valueOf(data[index++]);
return factory.create(txId, branchId, comment, timeStamp, authorArtId, commitArtId, txType, branchCache);
}
}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
index 3f74cb429d..15f474c28e 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/TransactionRecordTranslator.java
@@ -51,7 +51,7 @@ public final class TransactionRecordTranslator implements ITranslator<Transactio
Date time = new Timestamp(store.getLong(Entry.TRANSACTION_TIMESTAMP.name()));
int authorArtId = store.getInt(Entry.TRANSACTION_AUTHOR_ART_ID.name());
int commitArtId = store.getInt(Entry.TRANSACTION_COMMIT_ART_ID.name());
- int branchId = store.getInt(Entry.TRANSACTION_BRANCH.name());
+ long branchId = store.getLong(Entry.TRANSACTION_BRANCH.name());
return txRecordFactory.create(transactionNumber, branchId, comment, time, authorArtId, commitArtId, txType,
branchCache);
}

Back to the top