diff options
author | donald.g.dunne | 2014-01-10 14:09:50 +0000 |
---|---|---|
committer | Roberto E. Escobar | 2014-03-04 19:41:57 +0000 |
commit | 1e4c0cfe5b565a1b28518de80879cf650d57e511 (patch) | |
tree | 49ceef22f1efc76243be37de9742c06a6e3f7974 /plugins/org.eclipse.osee.ats.api | |
parent | 90fd32a166c709b0e389d339b3ec5c8cfc4cd7ce (diff) | |
download | org.eclipse.osee-1e4c0cfe5b565a1b28518de80879cf650d57e511.tar.gz org.eclipse.osee-1e4c0cfe5b565a1b28518de80879cf650d57e511.tar.xz org.eclipse.osee-1e4c0cfe5b565a1b28518de80879cf650d57e511.zip |
refactor[ats_ATS3017]: Create ConfigItemFactory
Change-Id: I44a7eb1beb0871dad803bf4eb98e3f30e1d7b761
Diffstat (limited to 'plugins/org.eclipse.osee.ats.api')
3 files changed, 50 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactory.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactory.java new file mode 100644 index 00000000000..1d12907db7a --- /dev/null +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactory.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2013 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.ats.api.team; + +import org.eclipse.osee.ats.api.IAtsConfigObject; +import org.eclipse.osee.ats.api.ai.IAtsActionableItem; +import org.eclipse.osee.ats.api.version.IAtsVersion; +import org.eclipse.osee.framework.jdk.core.type.OseeCoreException; + +/** + * @author Donald G. Dunne + */ +public interface IAtsConfigItemFactory { + + IAtsTeamDefinition getTeamDef(Object artifact) throws OseeCoreException; + + IAtsActionableItem getActionableItem(Object aiArt) throws OseeCoreException; + + IAtsConfigObject getConfigObject(Object artifact) throws OseeCoreException; + + IAtsVersion getVersion(Object artifact) throws OseeCoreException; + +} diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactoryProvider.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactoryProvider.java new file mode 100644 index 00000000000..23712c6b5c2 --- /dev/null +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsConfigItemFactoryProvider.java @@ -0,0 +1,19 @@ +/******************************************************************************* + * Copyright (c) 2013 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.ats.api.team; + +/** + * @author Donald G Dunne + */ +public interface IAtsConfigItemFactoryProvider { + + IAtsConfigItemFactory getConfigItemFactory(); +} diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsWorkItemFactory.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsWorkItemFactory.java index 3e44b9a0f39..0a0798b4bef 100644 --- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsWorkItemFactory.java +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/IAtsWorkItemFactory.java @@ -10,11 +10,8 @@ *******************************************************************************/ package org.eclipse.osee.ats.api.team; -import org.eclipse.osee.ats.api.IAtsConfigObject; import org.eclipse.osee.ats.api.IAtsWorkItem; -import org.eclipse.osee.ats.api.ai.IAtsActionableItem; import org.eclipse.osee.ats.api.review.IAtsAbstractReview; -import org.eclipse.osee.ats.api.version.IAtsVersion; import org.eclipse.osee.ats.api.workflow.IAtsGoal; import org.eclipse.osee.ats.api.workflow.IAtsTask; import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow; @@ -35,12 +32,4 @@ public interface IAtsWorkItemFactory { IAtsGoal getGoal(Object artifact) throws OseeCoreException; - IAtsTeamDefinition getTeamDef(Object artifact) throws OseeCoreException; - - IAtsActionableItem getActionableItem(Object aiArt) throws OseeCoreException; - - IAtsConfigObject getConfigObject(Object artifact) throws OseeCoreException; - - IAtsVersion getVersion(Object artifact) throws OseeCoreException; - } |