diff options
author | donald.g.dunne | 2016-05-11 15:09:07 +0000 |
---|---|---|
committer | Angel Avila | 2016-05-11 15:09:07 +0000 |
commit | 4b3627fc33af06223f0eb43a22bac7dff5232a4a (patch) | |
tree | c84532889ddb6a843329cfcb1aac776b9dc4f851 /plugins/org.eclipse.osee.ats.api/src/org/eclipse | |
parent | 51d7c6fed275a2f60b7bbd43ff6de6283b3eb64a (diff) | |
download | org.eclipse.osee-4b3627fc33af06223f0eb43a22bac7dff5232a4a.tar.gz org.eclipse.osee-4b3627fc33af06223f0eb43a22bac7dff5232a4a.tar.xz org.eclipse.osee-4b3627fc33af06223f0eb43a22bac7dff5232a4a.zip |
feature[ats_UFM31]: Provide XWidget validators via OSGI
Change-Id: Ibda567eabcfcbd4882e8b7fad53abce64ff6366a
Diffstat (limited to 'plugins/org.eclipse.osee.ats.api/src/org/eclipse')
4 files changed, 55 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/IAtsServices.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/IAtsServices.java index 66baef8521e..1ea276c8329 100644 --- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/IAtsServices.java +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/IAtsServices.java @@ -29,11 +29,10 @@ import org.eclipse.osee.ats.api.util.IAtsStoreService; import org.eclipse.osee.ats.api.util.IAtsUtilService; import org.eclipse.osee.ats.api.util.ISequenceProvider; import org.eclipse.osee.ats.api.version.IAtsVersionService; -import org.eclipse.osee.ats.api.workdef.IAtsStateDefinition; +import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinitionAdmin; import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinitionService; import org.eclipse.osee.ats.api.workdef.IAttributeResolver; import org.eclipse.osee.ats.api.workdef.IRelationResolver; -import org.eclipse.osee.ats.api.workdef.WidgetResult; import org.eclipse.osee.ats.api.workflow.IAtsAction; import org.eclipse.osee.ats.api.workflow.IAtsActionFactory; import org.eclipse.osee.ats.api.workflow.IAtsBranchService; @@ -96,8 +95,6 @@ public interface IAtsServices { Collection<ITransitionListener> getTransitionListeners(); - Collection<WidgetResult> validateWidgetTransition(IAtsWorkItem workItem, IAtsStateDefinition toStateDef); - void clearImplementersCache(IAtsWorkItem workItem); IArtifactResolver getArtifactResolver(); @@ -121,6 +118,8 @@ public interface IAtsServices { IAtsImplementerService getImplementerService(); IAtsColumnService getColumnService(); + + IAtsWorkDefinitionAdmin getWorkDefinitionAdmin(); IAtsUtilService getUtilService(); diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/IAtsStoreService.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/IAtsStoreService.java index f660c1d042d..226267e5d8e 100644 --- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/IAtsStoreService.java +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/IAtsStoreService.java @@ -48,5 +48,7 @@ public interface IAtsStoreService { IAttributeType getAttributeType(String attrTypeName); IArtifactType getArtifactType(ArtifactId artifact); + + boolean isDateType(IAttributeType attributeType); } diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidator.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidator.java new file mode 100644 index 00000000000..9174657a48f --- /dev/null +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidator.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2011 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.workflow.transition; + +import org.eclipse.osee.ats.api.IAtsServices; +import org.eclipse.osee.ats.api.util.IValueProvider; +import org.eclipse.osee.ats.api.workdef.IAtsStateDefinition; +import org.eclipse.osee.ats.api.workdef.IAtsWidgetDefinition; +import org.eclipse.osee.ats.api.workdef.WidgetResult; +import org.eclipse.osee.framework.jdk.core.type.OseeCoreException; + +/** + * Provider to validate XWidget/IAttributeWidget entry against workitem store model without use of XWidget UI + * + * @author Donald G. Dunne + */ +public interface IAtsXWidgetValidator { + + public WidgetResult validateTransition(IValueProvider provider, IAtsWidgetDefinition widgetDef, IAtsStateDefinition fromStateDef, IAtsStateDefinition toStateDef, IAtsServices atsServices) throws OseeCoreException; + +} diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidatorProvider.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidatorProvider.java new file mode 100644 index 00000000000..2a748bafcda --- /dev/null +++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/workflow/transition/IAtsXWidgetValidatorProvider.java @@ -0,0 +1,21 @@ +/******************************************************************************* + * 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.workflow.transition; + +import java.util.Collection; + +/** + * @author Donald G. Dunne + */ +public interface IAtsXWidgetValidatorProvider { + + public Collection<IAtsXWidgetValidator> getValidators(); +} |