blob: e5d658225f833c827a1de4e017b647e84b3b9e2f [file] [log] [blame]
/*******************************************************************************
* 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;
import java.util.Collection;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.ai.IAtsActionableItemService;
import org.eclipse.osee.ats.api.review.IAtsAbstractReview;
import org.eclipse.osee.ats.api.workdef.IAtsStateDefinition;
import org.eclipse.osee.ats.api.workdef.IStateToken;
import org.eclipse.osee.ats.api.workdef.WidgetResult;
import org.eclipse.osee.ats.api.workflow.transition.ITransitionListener;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.type.OseeStateException;
/**
* @author Donald G. Dunne
*/
public interface IAtsWorkItemService {
IStateToken getCurrentState(IAtsWorkItem workItem) throws OseeCoreException;
Collection<IAtsAbstractReview> getReviews(IAtsTeamWorkflow teamWf) throws OseeCoreException;
Collection<IAtsAbstractReview> getReviews(IAtsTeamWorkflow teamWf, IStateToken state) throws OseeCoreException;
IAtsTeamWorkflow getFirstTeam(IAtsAction action) throws OseeCoreException;
void clearImplementersCache(IAtsWorkItem workItem);
Collection<WidgetResult> validateWidgetTransition(IAtsWorkItem workItem, IAtsStateDefinition toStateDef) throws OseeStateException;
Collection<ITransitionListener> getTransitionListeners();
String getTargetedVersionStr(IAtsTeamWorkflow teamWf) throws OseeCoreException;
String getArtifactTypeShortName(IAtsTeamWorkflow teamWf);
Collection<IAtsTeamWorkflow> getTeams(IAtsAction action);
IAtsActionableItemService getActionableItemService();
}