summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid W. Miller2012-06-21 19:51:17 (EDT)
committerRoberto E. Escobar2012-06-21 19:51:17 (EDT)
commit7c060c6101484502458793b483a71845b6e9e2f5 (patch)
tree65462150c8b9906b40fd159a9127ffd319dfdcc7
parentc325cb8d02e65960d45ba576b941c8d4e1c2130a (diff)
downloadorg.eclipse.osee-7c060c6101484502458793b483a71845b6e9e2f5.zip
org.eclipse.osee-7c060c6101484502458793b483a71845b6e9e2f5.tar.gz
org.eclipse.osee-7c060c6101484502458793b483a71845b6e9e2f5.tar.bz2
refactor: Remove obsolete method purgeArtifactTypesWithConversionReportOnly
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTypeManager.java27
1 files changed, 2 insertions, 25 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTypeManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTypeManager.java
index dbb75f1..ef50949 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTypeManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTypeManager.java
@@ -17,6 +17,7 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.osee.framework.core.data.IArtifactToken;
import org.eclipse.osee.framework.core.data.IArtifactType;
import org.eclipse.osee.framework.core.data.IAttributeType;
@@ -24,7 +25,6 @@ import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.enums.DeletionFlag;
import org.eclipse.osee.framework.core.exception.OseeArgumentException;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeExceptions;
import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.core.exception.OseeTypeDoesNotExist;
import org.eclipse.osee.framework.core.model.Branch;
@@ -196,7 +196,7 @@ public class ArtifactTypeManager {
* @param purgeArtifactTypes types to be converted and purged
* @param newArtifactType new type to convert any existing artifacts of the old type
*/
- public static void purgeArtifactTypesWithCheck(Collection<? extends IArtifactType> purgeArtifactTypes, IArtifactType newArtifactType) throws OseeCoreException {
+ public static void purgeArtifactTypesWithCheck(Collection<? extends IArtifactType> purgeArtifactTypes, IArtifactType newArtifactType) throws CoreException {
for (IArtifactType purgeArtifactType : purgeArtifactTypes) {
// find all artifact of this type on all branches and make a unique list for type change (since it is not by branch)
List<Artifact> artifacts =
@@ -221,29 +221,6 @@ public class ArtifactTypeManager {
}
}
- /**
- * Run code that will be run during purge with convert and report on what relations, attributes will be deleted as
- * part of the conversion.
- */
- public static void purgeArtifactTypesWithConversionReportOnly(StringBuffer results, Collection<IArtifactType> purgeArtifactTypes, IArtifactType newArtifactType) throws OseeCoreException {
- try {
- for (IArtifactType purgeArtifactType : purgeArtifactTypes) {
- // find all artifact of this type on all branches and make a unique list for type change (since it is not by branch)
- List<Artifact> artifacts =
- ArtifactQuery.getArtifactListFromType(purgeArtifactType, DeletionFlag.INCLUDE_DELETED);
- if (artifacts.size() > 0) {
- HashMap<Integer, Artifact> artifactMap = new HashMap<Integer, Artifact>();
- for (Artifact artifact : artifacts) {
- artifactMap.put(artifact.getArtId(), artifact);
- }
- ChangeArtifactType.changeArtifactTypeReportOnly(results, artifactMap.values(), newArtifactType);
- }
- }
- } catch (Exception ex) {
- OseeExceptions.wrapAndThrow(ex);
- }
- }
-
public static void persist() throws OseeCoreException {
getCache().storeAllModified();
}