Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngel Avila2015-03-19 21:36:42 +0000
committerAngel Avila2015-03-19 21:36:42 +0000
commitf59f6b612e3dead575276cd8d046c73c2222aee6 (patch)
treee25b5861684e0266ca2b690b2478d3023d0ee7ec /plugins/org.eclipse.osee.framework.core.message/src/org/eclipse
parent76f64a5c20ce97c0d6a6cca11d6ea27d8b758e91 (diff)
downloadorg.eclipse.osee-f59f6b612e3dead575276cd8d046c73c2222aee6.tar.gz
org.eclipse.osee-f59f6b612e3dead575276cd8d046c73c2222aee6.tar.xz
org.eclipse.osee-f59f6b612e3dead575276cd8d046c73c2222aee6.zip
feature[ats_ATS146069]: Remove BranchManagerServlet
Change-Id: I2a695f9072755cc71a7a5473456ad27600a56f87 Signed-off-by: Angel Avila <angel.avila2@boeing.com>
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.message/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitRequest.java46
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitResponse.java31
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationRequest.java104
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationResponse.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchArchiveStateRequest.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchStateRequest.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchTypeRequest.java36
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportRequest.java33
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java45
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/PurgeBranchRequest.java33
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java25
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java50
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java43
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java87
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java38
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java42
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java175
-rw-r--r--plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java42
21 files changed, 0 insertions, 1070 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitRequest.java
deleted file mode 100644
index 065cc1ed578..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitRequest.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BranchCommitRequest {
-
- private final int userArtifact;
- private final long sourceBranch;
- private final long destinationBranch;
- private final boolean isArchiveAllowed;
-
- public BranchCommitRequest(int userArtifact, long sourceBranch, long destinationBranch, boolean isArchiveAllowed) {
- super();
- this.userArtifact = userArtifact;
- this.sourceBranch = sourceBranch;
- this.destinationBranch = destinationBranch;
- this.isArchiveAllowed = isArchiveAllowed;
- }
-
- public int getUserArtId() {
- return userArtifact;
- }
-
- public long getSourceBranchId() {
- return sourceBranch;
- }
-
- public long getDestinationBranchId() {
- return destinationBranch;
- }
-
- public boolean isArchiveAllowed() {
- return isArchiveAllowed;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitResponse.java
deleted file mode 100644
index e106f5591a6..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCommitResponse.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-
-/**
- * @author Megumi Telles
- */
-public class BranchCommitResponse {
- private Integer transactionId;
-
- public BranchCommitResponse() {
- this.transactionId = null;
- }
-
- public Integer getTransactionId() {
- return transactionId;
- }
-
- public void setTransactionId(Integer transactionId) {
- this.transactionId = transactionId;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationRequest.java
deleted file mode 100644
index 59563e03ffb..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationRequest.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-import org.eclipse.osee.framework.core.enums.BranchType;
-import org.eclipse.osee.framework.jdk.core.type.OseeArgumentException;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BranchCreationRequest {
- private final String branchName;
- private final long parentBranchId;
- private final int associatedArtifactId;
-
- private final BranchType branchType;
- private final int sourceTransactionId;
-
- private final int authorId;
-
- private final String creationComment;
- private final int mergeAddressingQueryId;
- private final long mergeDestinationBranchId;
- private boolean isTxCopyBranchType;
- private final long branchUuid;
-
- public BranchCreationRequest(BranchType branchType, int sourceTransactionId, long parentBranchId, String branchName, long branchUuid, int associatedArtifactId, int authorId, String creationComment, int mergeAddressingQueryId, long destinationBranchId) {
- this.parentBranchId = parentBranchId;
- this.branchName = branchName;
- if (branchUuid <= 0) {
- throw new OseeArgumentException("branchUuid [%d] uuid must be > 0", branchUuid);
- }
- this.branchUuid = branchUuid;
- this.associatedArtifactId = associatedArtifactId;
- this.branchType = branchType;
- this.sourceTransactionId = sourceTransactionId;
- this.authorId = authorId;
- this.creationComment = creationComment;
- this.mergeAddressingQueryId = mergeAddressingQueryId;
- this.mergeDestinationBranchId = destinationBranchId;
- this.isTxCopyBranchType = false;
- }
-
- public String getBranchName() {
- return branchName;
- }
-
- public long getParentBranchId() {
- return parentBranchId;
- }
-
- public int getAssociatedArtifactId() {
- return associatedArtifactId;
- }
-
- public BranchType getBranchType() {
- return branchType;
- }
-
- public int getSourceTransactionId() {
- return sourceTransactionId;
- }
-
- public int getAuthorId() {
- return authorId;
- }
-
- public String getCreationComment() {
- return creationComment;
- }
-
- public int getMergeAddressingQueryId() {
- return mergeAddressingQueryId;
- }
-
- public long getMergeDestinationBranchId() {
- return mergeDestinationBranchId;
- }
-
- public boolean txIsCopied() {
- return isTxCopyBranchType;
- }
-
- public void setTxIsCopied(boolean value) {
- isTxCopyBranchType = value;
- }
-
- @Override
- public String toString() {
- return "Branch [associatedArtifactId=" + associatedArtifactId + ", branchUuid=" + branchUuid + ", branchType=" + branchType + ", name=" + branchName + ", parentBranchId=" + parentBranchId + ", parentTransactionId=" + sourceTransactionId + "]";
- }
-
- public long getBranchUuid() {
- return branchUuid;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationResponse.java
deleted file mode 100644
index 5c54306c691..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/BranchCreationResponse.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BranchCreationResponse {
-
- private long branchUuid;
-
- public BranchCreationResponse(long branchUuid) {
- this.branchUuid = branchUuid;
- }
-
- public long getBranchId() {
- return branchUuid;
- }
-
- public void setBranchId(long branchUuid) {
- this.branchUuid = branchUuid;
- }
-
- @Override
- public String toString() {
- return "BranchCreationResponse [branchUuid=" + branchUuid + "]";
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchArchiveStateRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchArchiveStateRequest.java
deleted file mode 100644
index e6e98eba1e1..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchArchiveStateRequest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-import org.eclipse.osee.framework.core.enums.BranchArchivedState;
-
-/**
- * @author Megumi Telles
- */
-public class ChangeBranchArchiveStateRequest {
- private final long branchUuid;
- private final BranchArchivedState state;
-
- public ChangeBranchArchiveStateRequest(long branchUuid, BranchArchivedState state) {
- super();
- this.branchUuid = branchUuid;
- this.state = state;
- }
-
- public long getBranchId() {
- return branchUuid;
- }
-
- public BranchArchivedState getState() {
- return state;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchStateRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchStateRequest.java
deleted file mode 100644
index 0302c1ab935..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchStateRequest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-import org.eclipse.osee.framework.core.enums.BranchState;
-
-/**
- * @author Megumi Telles
- */
-public class ChangeBranchStateRequest {
- private final long branchUuid;
- private final BranchState state;
-
- public ChangeBranchStateRequest(long branchUuid, BranchState state) {
- super();
- this.branchUuid = branchUuid;
- this.state = state;
- }
-
- public long getBranchId() {
- return branchUuid;
- }
-
- public BranchState getState() {
- return state;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchTypeRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchTypeRequest.java
deleted file mode 100644
index caf9536f807..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeBranchTypeRequest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2009 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-import org.eclipse.osee.framework.core.enums.BranchType;
-
-/**
- * @author Megumi Telles
- */
-public class ChangeBranchTypeRequest {
- private final long branchUuid;
- private final BranchType type;
-
- public ChangeBranchTypeRequest(long branchUuid, BranchType type) {
- super();
- this.branchUuid = branchUuid;
- this.type = type;
- }
-
- public long getBranchId() {
- return branchUuid;
- }
-
- public BranchType getType() {
- return type;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportRequest.java
deleted file mode 100644
index 3bf8a0b8d40..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportRequest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-/**
- * @author Jeff C. Phillips
- */
-public class ChangeReportRequest {
- private final int srcTx;
- private final int destTx;
-
- public ChangeReportRequest(int srcTx, int destTx) {
- super();
- this.srcTx = srcTx;
- this.destTx = destTx;
- }
-
- public int getSourceTx() {
- return srcTx;
- }
-
- public int getDestinationTx() {
- return destTx;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java
deleted file mode 100644
index 3bd4ef3f3a7..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/ChangeReportResponse.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.eclipse.osee.framework.core.model.change.ChangeItem;
-
-/**
- * @author Jeff C. Phillips
- */
-public class ChangeReportResponse {
-
- private final List<ChangeItem> changeItems;
-
- public ChangeReportResponse() {
- super();
- this.changeItems = new ArrayList<ChangeItem>();
- }
-
- public void setChangeItems(Collection<ChangeItem> items) {
- this.changeItems.addAll(items);
- }
-
- public void addItem(ChangeItem item) {
- this.changeItems.add(item);
- }
-
- public List<ChangeItem> getChangeItems() {
- return changeItems;
- }
-
- public boolean wasSuccessful() {
- return !changeItems.isEmpty();
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/PurgeBranchRequest.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/PurgeBranchRequest.java
deleted file mode 100644
index 977fef72fc1..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/PurgeBranchRequest.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message;
-
-/**
- * @author Jeff C. Phillips
- * @author Megumi Telles
- */
-public class PurgeBranchRequest {
- private final long branchUuid;
- private final boolean recursive;
-
- public PurgeBranchRequest(long branchUuid, boolean recursive) {
- this.branchUuid = branchUuid;
- this.recursive = recursive;
- }
-
- public long getBranchId() {
- return branchUuid;
- }
-
- public boolean isRecursive() {
- return recursive;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
index 02010a69961..d6e70b3381b 100644
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
+++ b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/DataTranslationServiceFactory.java
@@ -13,21 +13,11 @@ package org.eclipse.osee.framework.core.message.internal;
import org.eclipse.osee.framework.core.enums.CoreTranslatorId;
import org.eclipse.osee.framework.core.message.internal.translation.ArtifactTypeCacheUpdateResponseTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.AttributeTypeCacheUpdateResponseTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchChangeArchivedStateRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchChangeStateRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchChangeTypeRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchCommitRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchCommitResponseTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchCreationRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.BranchCreationResponseTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.CacheUpdateRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.ChangeReportRequestTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.ChangeReportResponseTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.DatastoreInitRequestTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.OseeEnumTypeCacheUpdateResponseTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.OseeImportModelRequestTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.OseeImportModelResponseTranslator;
-import org.eclipse.osee.framework.core.message.internal.translation.PurgeBranchRequestTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.RelationTypeCacheUpdateResponseTranslator;
import org.eclipse.osee.framework.core.message.internal.translation.TableDataTranslator;
import org.eclipse.osee.framework.core.model.type.AttributeTypeFactory;
@@ -45,21 +35,6 @@ public class DataTranslationServiceFactory {
}
public void configureService(IDataTranslationService service, AttributeTypeFactory attributeTypeFactory) throws OseeCoreException {
- service.addTranslator(new BranchCreationRequestTranslator(), CoreTranslatorId.BRANCH_CREATION_REQUEST);
- service.addTranslator(new BranchCreationResponseTranslator(), CoreTranslatorId.BRANCH_CREATION_RESPONSE);
-
- service.addTranslator(new BranchCommitRequestTranslator(), CoreTranslatorId.BRANCH_COMMIT_REQUEST);
- service.addTranslator(new BranchCommitResponseTranslator(), CoreTranslatorId.BRANCH_COMMIT_RESPONSE);
-
- service.addTranslator(new BranchChangeTypeRequestTranslator(), CoreTranslatorId.CHANGE_BRANCH_TYPE);
- service.addTranslator(new BranchChangeStateRequestTranslator(), CoreTranslatorId.CHANGE_BRANCH_STATE);
- service.addTranslator(new BranchChangeArchivedStateRequestTranslator(),
- CoreTranslatorId.CHANGE_BRANCH_ARCHIVE_STATE);
-
- service.addTranslator(new ChangeReportRequestTranslator(), CoreTranslatorId.CHANGE_REPORT_REQUEST);
- service.addTranslator(new ChangeReportResponseTranslator(), CoreTranslatorId.CHANGE_REPORT_RESPONSE);
- service.addTranslator(new PurgeBranchRequestTranslator(), CoreTranslatorId.PURGE_BRANCH_REQUEST);
-
service.addTranslator(new CacheUpdateRequestTranslator(), CoreTranslatorId.OSEE_CACHE_UPDATE_REQUEST);
service.addTranslator(new ArtifactTypeCacheUpdateResponseTranslator(),
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java
deleted file mode 100644
index 1a535d2f84b..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeArchivedStateRequestTranslator.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.enums.BranchArchivedState;
-import org.eclipse.osee.framework.core.message.ChangeBranchArchiveStateRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Megumi Telles
- */
-public final class BranchChangeArchivedStateRequestTranslator implements ITranslator<ChangeBranchArchiveStateRequest> {
-
- private static enum Entry {
- BRANCH_ID,
- BRANCH_ARCHIVED_STATE,
- }
-
- @Override
- public ChangeBranchArchiveStateRequest convert(PropertyStore propertyStore) {
- long branchUuid = propertyStore.getLong(Entry.BRANCH_ID.name());
- BranchArchivedState state = BranchArchivedState.valueOf(propertyStore.get(Entry.BRANCH_ARCHIVED_STATE.name()));
- ChangeBranchArchiveStateRequest data = new ChangeBranchArchiveStateRequest(branchUuid, state);
- return data;
- }
-
- @Override
- public PropertyStore convert(ChangeBranchArchiveStateRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.BRANCH_ID.name(), data.getBranchId());
- store.put(Entry.BRANCH_ARCHIVED_STATE.name(), data.getState().name());
- return store;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java
deleted file mode 100644
index 51ea0c219f5..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeStateRequestTranslator.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.enums.BranchState;
-import org.eclipse.osee.framework.core.message.ChangeBranchStateRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Megumi Telles
- */
-public final class BranchChangeStateRequestTranslator implements ITranslator<ChangeBranchStateRequest> {
-
- private static enum Entry {
- BRANCH_ID,
- BRANCH_STATE,
- }
-
- @Override
- public ChangeBranchStateRequest convert(PropertyStore propertyStore) {
- long branchUuid = propertyStore.getLong(Entry.BRANCH_ID.name());
- BranchState state = BranchState.valueOf(propertyStore.get(Entry.BRANCH_STATE.name()));
- ChangeBranchStateRequest data = new ChangeBranchStateRequest(branchUuid, state);
- return data;
- }
-
- @Override
- public PropertyStore convert(ChangeBranchStateRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.BRANCH_ID.name(), data.getBranchId());
- store.put(Entry.BRANCH_STATE.name(), data.getState().name());
- return store;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java
deleted file mode 100644
index 3f4244763ea..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchChangeTypeRequestTranslator.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.enums.BranchType;
-import org.eclipse.osee.framework.core.message.ChangeBranchTypeRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Megumi Telles
- */
-public final class BranchChangeTypeRequestTranslator implements ITranslator<ChangeBranchTypeRequest> {
-
- private static enum Entry {
- BRANCH_ID,
- BRANCH_TYPE,
- }
-
- @Override
- public ChangeBranchTypeRequest convert(PropertyStore propertyStore) {
- long branchUuid = propertyStore.getLong(Entry.BRANCH_ID.name());
- BranchType type = BranchType.valueOf(propertyStore.get(Entry.BRANCH_TYPE.name()));
- ChangeBranchTypeRequest data = new ChangeBranchTypeRequest(branchUuid, type);
- return data;
- }
-
- @Override
- public PropertyStore convert(ChangeBranchTypeRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.BRANCH_ID.name(), data.getBranchId());
- store.put(Entry.BRANCH_TYPE.name(), data.getType().name());
- return store;
- }
-
-}
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
deleted file mode 100644
index d109e98e256..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitRequestTranslator.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.message.BranchCommitRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class BranchCommitRequestTranslator implements ITranslator<BranchCommitRequest> {
-
- private static enum Entry {
- USER_ART_ID,
- SRC_BRANCH_ID,
- DEST_BRANCH_ID,
- IS_ARCHIVE_ALLOWED;
- }
-
- @Override
- public BranchCommitRequest convert(PropertyStore propertyStore) {
- 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());
- BranchCommitRequest data = new BranchCommitRequest(userArtifactId, srcBranchId, destBranchId, isArchiveAllowed);
- return data;
- }
-
- @Override
- public PropertyStore convert(BranchCommitRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.IS_ARCHIVE_ALLOWED.name(), data.isArchiveAllowed());
- store.put(Entry.USER_ART_ID.name(), data.getUserArtId());
- store.put(Entry.SRC_BRANCH_ID.name(), data.getSourceBranchId());
- store.put(Entry.DEST_BRANCH_ID.name(), data.getDestinationBranchId());
- return store;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java
deleted file mode 100644
index 41f77b083f3..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCommitResponseTranslator.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.message.BranchCommitResponse;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Megumi Telles
- */
-public class BranchCommitResponseTranslator implements ITranslator<BranchCommitResponse> {
-
- private static enum Entry {
- TRANSACTION_NUMBER
- }
-
- @Override
- public BranchCommitResponse convert(PropertyStore propertyStore) throws OseeCoreException {
- BranchCommitResponse response = new BranchCommitResponse();
- Integer transactionRecord = propertyStore.getInt(Entry.TRANSACTION_NUMBER.name());
- response.setTransactionId(transactionRecord);
- return response;
- }
-
- @Override
- public PropertyStore convert(BranchCommitResponse data) throws OseeCoreException {
- PropertyStore store = new PropertyStore();
- Integer record = data.getTransactionId();
- store.put(Entry.TRANSACTION_NUMBER.name(), record);
- return store;
- }
-
-} \ No newline at end of file
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
deleted file mode 100644
index 15c83637c9b..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationRequestTranslator.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.enums.BranchType;
-import org.eclipse.osee.framework.core.message.BranchCreationRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BranchCreationRequestTranslator implements ITranslator<BranchCreationRequest> {
-
- private static enum Fields {
- BRANCH_NAME,
- PARENT_BRANCH_ID,
- ASSOCIATED_ART_ID,
-
- BRANCH_TYPE,
- SOURCE_TX_ID,
- BRANCH_UUID,
-
- AUTHOR_ID,
-
- CREATION_COMMENT,
- MERGE_ADDRESSING_QUERY_ID,
- MERGE_DESTINATION_BRANCH_ID,
- TX_COPY_BRANCH_TYPE;
- }
-
- @Override
- public BranchCreationRequest convert(PropertyStore store) {
- String branchName = store.get(Fields.BRANCH_NAME.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()));
- int sourceTransactionId = store.getInt(Fields.SOURCE_TX_ID.name());
-
- int authorId = store.getInt(Fields.AUTHOR_ID.name());
-
- String creationComment = store.get(Fields.CREATION_COMMENT.name());
-
- boolean isTxCopy = store.getBoolean(Fields.TX_COPY_BRANCH_TYPE.name());
-
- int mergeAddressingQueryId = store.getInt(Fields.MERGE_ADDRESSING_QUERY_ID.name());
- long destinationBranchId = store.getLong(Fields.MERGE_DESTINATION_BRANCH_ID.name());
- long branchUuid = store.getLong(Fields.BRANCH_UUID.name());
-
- BranchCreationRequest branchCreationRequest =
- new BranchCreationRequest(branchType, sourceTransactionId, parentBranchId, branchName, branchUuid,
- associatedArtifactId, authorId, creationComment, mergeAddressingQueryId, destinationBranchId);
-
- branchCreationRequest.setTxIsCopied(isTxCopy);
-
- return branchCreationRequest;
- }
-
- @Override
- public PropertyStore convert(BranchCreationRequest object) {
- PropertyStore store = new PropertyStore();
- store.put(Fields.BRANCH_NAME.name(), object.getBranchName());
- store.put(Fields.PARENT_BRANCH_ID.name(), object.getParentBranchId());
- store.put(Fields.ASSOCIATED_ART_ID.name(), object.getAssociatedArtifactId());
- store.put(Fields.BRANCH_TYPE.name(), object.getBranchType().name());
- store.put(Fields.SOURCE_TX_ID.name(), object.getSourceTransactionId());
- store.put(Fields.BRANCH_UUID.name(), object.getBranchUuid());
- store.put(Fields.AUTHOR_ID.name(), object.getAuthorId());
- store.put(Fields.CREATION_COMMENT.name(), object.getCreationComment());
-
- store.put(Fields.MERGE_ADDRESSING_QUERY_ID.name(), object.getMergeAddressingQueryId());
- store.put(Fields.MERGE_DESTINATION_BRANCH_ID.name(), object.getMergeDestinationBranchId());
- store.put(Fields.TX_COPY_BRANCH_TYPE.name(), object.txIsCopied());
-
- return store;
- }
-
-}
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
deleted file mode 100644
index f6e5e61f8bc..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/BranchCreationResponseTranslator.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.message.BranchCreationResponse;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Roberto E. Escobar
- */
-public class BranchCreationResponseTranslator implements ITranslator<BranchCreationResponse> {
-
- private static enum Fields {
- BRANCH_ID;
- }
-
- @Override
- public BranchCreationResponse convert(PropertyStore store) {
- long branchUuid = store.getLong(Fields.BRANCH_ID.name());
- return new BranchCreationResponse(branchUuid);
- }
-
- @Override
- public PropertyStore convert(BranchCreationResponse object) {
- PropertyStore store = new PropertyStore();
- store.put(Fields.BRANCH_ID.name(), object.getBranchId());
- return store;
- }
-}
diff --git a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java b/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java
deleted file mode 100644
index 6a89cbcdd77..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportRequestTranslator.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.message.ChangeReportRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Jeff C. Phillips
- */
-public class ChangeReportRequestTranslator implements ITranslator<ChangeReportRequest> {
- private static enum Entry {
- SRC_TRANSACTION,
- DEST_TRANSACTION,
- }
-
- @Override
- public ChangeReportRequest convert(PropertyStore propertyStore) {
- int srcTx = propertyStore.getInt(Entry.SRC_TRANSACTION.name());
- int destTx = propertyStore.getInt(Entry.DEST_TRANSACTION.name());
-
- ChangeReportRequest data = new ChangeReportRequest(srcTx, destTx);
- return data;
- }
-
- @Override
- public PropertyStore convert(ChangeReportRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.SRC_TRANSACTION.name(), data.getSourceTx());
- store.put(Entry.DEST_TRANSACTION.name(), data.getDestinationTx());
- return store;
- }
-}
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
deleted file mode 100644
index e9cdc59d2fb..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/ChangeReportResponseTranslator.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import java.util.List;
-import org.eclipse.osee.framework.core.enums.ChangeItemType;
-import org.eclipse.osee.framework.core.enums.ModificationType;
-import org.eclipse.osee.framework.core.message.ChangeReportResponse;
-import org.eclipse.osee.framework.core.message.TranslationUtil;
-import org.eclipse.osee.framework.core.model.change.ChangeItem;
-import org.eclipse.osee.framework.core.model.change.ChangeItemUtil;
-import org.eclipse.osee.framework.core.model.change.ChangeVersion;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.OseeArgumentException;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.type.OseeStateException;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Jeff C. Phillips
- */
-public class ChangeReportResponseTranslator implements ITranslator<ChangeReportResponse> {
-
- private enum Fields {
- COUNT,
- ROW,
- CURR,
- BASE,
- FIRST,
- DEST,
- NET;
- }
-
- public ChangeReportResponseTranslator() {
- super();
- }
-
- @Override
- public ChangeReportResponse convert(PropertyStore store) throws OseeCoreException {
- ChangeReportResponse response = new ChangeReportResponse();
-
- int rowCount = store.getInt(Fields.COUNT.name());
- for (int index = 0; index < rowCount; index++) {
- String key = TranslationUtil.createKey(Fields.ROW, index);
- String[] rowData = store.getArray(key);
-
- ChangeItem item = fromArray(rowData);
- load(store, Fields.CURR, index, item.getCurrentVersion());
- load(store, Fields.BASE, index, item.getBaselineVersion());
- load(store, Fields.FIRST, index, item.getFirstNonCurrentChange());
- load(store, Fields.DEST, index, item.getDestinationVersion());
- load(store, Fields.NET, index, item.getNetChange());
-
- response.addItem(item);
- }
- return response;
- }
-
- @Override
- public PropertyStore convert(ChangeReportResponse data) throws OseeCoreException {
- PropertyStore store = new PropertyStore();
-
- List<ChangeItem> items = data.getChangeItems();
- for (int index = 0; index < items.size(); index++) {
- ChangeItem item = items.get(index);
- String key = TranslationUtil.createKey(Fields.ROW, index);
- store.put(key, toArray(item));
-
- store(store, Fields.CURR, index, item.getCurrentVersion());
- store(store, Fields.BASE, index, item.getBaselineVersion());
- store(store, Fields.FIRST, index, item.getFirstNonCurrentChange());
- store(store, Fields.DEST, index, item.getDestinationVersion());
- store(store, Fields.NET, index, item.getNetChange());
- }
- store.put(Fields.COUNT.name(), items.size());
- return store;
- }
-
- private static void load(PropertyStore store, Enum<?> prefix, int index, ChangeVersion version) throws OseeArgumentException, NumberFormatException {
- String key = TranslationUtil.createKey(prefix, index);
- String[] data = store.getArray(key);
- if (data != null && data.length > 0) {
- Long gammaId = Long.parseLong(data[0]);
- ModificationType modificationType = ModificationType.getMod(Integer.parseInt(data[1]));
- String value = data[2];
-
- version.setGammaId(gammaId);
- version.setModType(modificationType);
- version.setValue(value);
- }
- }
-
- private static void store(PropertyStore store, Enum<?> prefix, int index, ChangeVersion version) {
- if (version != null && version.isValid()) {
- String[] row = new String[3];
- row[0] = String.valueOf(version.getGammaId());
- row[1] = String.valueOf(version.getModType().getValue());
- row[2] = version.getValue();
-
- String key = TranslationUtil.createKey(prefix, index);
- store.put(key, row);
- }
- }
-
- private static String[] toArray(ChangeItem item) throws OseeStateException {
- String[] row;
- switch (item.getChangeType()) {
- case ARTIFACT_CHANGE:
- row = new String[4];
- row[0] = ChangeItemType.ARTIFACT.name();
- row[1] = String.valueOf(item.getItemId());
- row[2] = String.valueOf(item.getItemTypeId());
- row[3] = String.valueOf(item.isSynthetic());
- break;
- case ATTRIBUTE_CHANGE:
- row = new String[4];
- row[0] = ChangeItemType.ATTRIBUTE.name();
- row[1] = String.valueOf(item.getItemId());
- row[2] = String.valueOf(item.getItemTypeId());
- row[3] = String.valueOf(item.getArtId());
- break;
- case RELATION_CHANGE:
- row = new String[6];
- row[0] = ChangeItemType.RELATION.name();
- row[1] = String.valueOf(item.getItemId());
- row[2] = String.valueOf(item.getItemTypeId());
- row[3] = String.valueOf(item.getArtId());
- row[4] = String.valueOf(item.getArtIdB());
- row[5] = item.getCurrentVersion().getValue();
- break;
- default:
- throw new OseeStateException("Invalid change item type");
- }
- return row;
-
- }
-
- private static ChangeItem fromArray(String[] row) throws OseeStateException {
- ChangeItem changeItem = null;
-
- ChangeItemType type = ChangeItemType.getType(row[0]);
- int itemId = Integer.parseInt(row[1]);
- long itemTypeId = Long.parseLong(row[2]);
- switch (type) {
- case ARTIFACT:
- boolean synthetic = Boolean.parseBoolean(row[3]);
- changeItem = ChangeItemUtil.newArtifactChange(itemId, itemTypeId, -1, ModificationType.NEW);
- changeItem.setSynthetic(synthetic);
- break;
- case ATTRIBUTE:
- int artId = Integer.parseInt(row[3]);
- changeItem = ChangeItemUtil.newAttributeChange(itemId, itemTypeId, artId, -1, ModificationType.NEW, null);
- break;
- case RELATION:
- int aArtId = Integer.parseInt(row[3]);
- int bArtId = Integer.parseInt(row[4]);
- String rationale = row[5];
-
- changeItem =
- ChangeItemUtil.newRelationChange(itemId, itemTypeId, -1, ModificationType.NEW, aArtId, bArtId, rationale);
- break;
- default:
- throw new OseeStateException("Invalid change item type");
- }
- return changeItem;
- }
-}
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
deleted file mode 100644
index 235ecb19fdb..00000000000
--- a/plugins/org.eclipse.osee.framework.core.message/src/org/eclipse/osee/framework/core/message/internal/translation/PurgeBranchRequestTranslator.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.message.internal.translation;
-
-import org.eclipse.osee.framework.core.message.PurgeBranchRequest;
-import org.eclipse.osee.framework.core.translation.ITranslator;
-import org.eclipse.osee.framework.jdk.core.type.PropertyStore;
-
-/**
- * @author Megumi Telles
- * @author Jeff C. Phillips
- */
-public class PurgeBranchRequestTranslator implements ITranslator<PurgeBranchRequest> {
- private static enum Entry {
- BRANCH_ID,
- RECURSIVE
- }
-
- @Override
- public PurgeBranchRequest convert(PropertyStore propertyStore) {
- long branchUuid = propertyStore.getLong(Entry.BRANCH_ID.name());
- boolean recursive = propertyStore.getBoolean(Entry.RECURSIVE.name());
- PurgeBranchRequest request = new PurgeBranchRequest(branchUuid, recursive);
- return request;
- }
-
- @Override
- public PropertyStore convert(PurgeBranchRequest data) {
- PropertyStore store = new PropertyStore();
- store.put(Entry.BRANCH_ID.name(), data.getBranchId());
- store.put(Entry.RECURSIVE.name(), data.isRecursive());
- return store;
- }
-}

Back to the top