diff options
author | Angel Avila | 2012-12-12 19:54:15 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2012-12-12 19:54:15 +0000 |
commit | b794a7ead7ae7b9c3dd4885e0be3a8ac7f6453e0 (patch) | |
tree | f8356b6d2bce3ea338839204d85df64b6f040400 | |
parent | 9816ba58748c4738a04d8123e4ac0036af8e218c (diff) | |
download | org.eclipse.osee-b794a7ead7ae7b9c3dd4885e0be3a8ac7f6453e0.tar.gz org.eclipse.osee-b794a7ead7ae7b9c3dd4885e0be3a8ac7f6453e0.tar.xz org.eclipse.osee-b794a7ead7ae7b9c3dd4885e0be3a8ac7f6453e0.zip |
bug[bgz_396444]: ArtifactQuery.getArtifactByTypeAndName does not support query options
Bug: 396444
Change-Id: I4b4e66ccd48a3dddd4f4dae4fbee3829cf81dc67
-rw-r--r-- | plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQuery.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQuery.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQuery.java index 5f7a0dcb76b..7389460b1cc 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQuery.java +++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/artifact/search/ArtifactQuery.java @@ -10,9 +10,10 @@ *******************************************************************************/ package org.eclipse.osee.framework.skynet.core.artifact.search; -import static org.eclipse.osee.framework.core.enums.DeletionFlag.*; -import static org.eclipse.osee.framework.core.enums.LoadLevel.*; -import static org.eclipse.osee.framework.skynet.core.artifact.LoadType.*; +import static org.eclipse.osee.framework.core.enums.DeletionFlag.EXCLUDE_DELETED; +import static org.eclipse.osee.framework.core.enums.DeletionFlag.INCLUDE_DELETED; +import static org.eclipse.osee.framework.core.enums.LoadLevel.FULL; +import static org.eclipse.osee.framework.skynet.core.artifact.LoadType.INCLUDE_CACHE; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -176,8 +177,8 @@ public class ArtifactQuery { * @throws ArtifactDoesNotExist if no artifacts are found * @throws MultipleArtifactsExist if more than one artifact is found */ - public static Artifact getArtifactFromTypeAndName(IArtifactType artifactType, String artifactName, IOseeBranch branch) throws OseeCoreException { - return queryFromTypeAndAttribute(artifactType, CoreAttributeTypes.Name, artifactName, branch).getOrCheckArtifact( + public static Artifact getArtifactFromTypeAndName(IArtifactType artifactType, String artifactName, IOseeBranch branch, QueryOption... options) throws OseeCoreException { + return queryFromTypeAndAttribute(artifactType, CoreAttributeTypes.Name, artifactName, branch, options).getOrCheckArtifact( QueryType.GET); } @@ -441,8 +442,9 @@ public class ArtifactQuery { 300, null); } - private static ArtifactQueryBuilder queryFromTypeAndAttribute(IArtifactType artifactType, IAttributeType attributeType, String attributeValue, IOseeBranch branch) { - return new ArtifactQueryBuilder(artifactType, branch, FULL, new AttributeCriteria(attributeType, attributeValue)); + private static ArtifactQueryBuilder queryFromTypeAndAttribute(IArtifactType artifactType, IAttributeType attributeType, String attributeValue, IOseeBranch branch, QueryOption... options) { + return new ArtifactQueryBuilder(artifactType, branch, FULL, new AttributeCriteria(attributeType, attributeValue, + options)); } public static List<Artifact> getArtifactListFromTypeAndAttribute(IArtifactType artifactType, IAttributeType attributeType, Collection<String> attributeValues, IOseeBranch branch, int artifactCountEstimate) throws OseeCoreException { |