diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java')
-rw-r--r-- | plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java index ec1d78f4048..9cccdcc0677 100644 --- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java +++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/artifact/DecisionReviewArtifact.java @@ -1,80 +1,80 @@ -/*******************************************************************************
- * Copyright (c) 2004, 2007 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.artifact;
-
-import java.util.Collection;
-import org.eclipse.osee.ats.util.widgets.XDecisionOptions;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.exception.OseeDataStoreException;
-import org.eclipse.osee.framework.core.model.Branch;
-import org.eclipse.osee.framework.core.model.type.ArtifactType;
-import org.eclipse.osee.framework.skynet.core.User;
-import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory;
-import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact;
-import org.eclipse.osee.framework.skynet.core.utility.Artifacts;
-
-/**
- * @author Donald G. Dunne
- */
-public class DecisionReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact {
-
- public XDecisionOptions decisionOptions;
- public static enum DecisionReviewState {
- Prepare,
- Decision,
- Followup,
- Completed
- };
-
- public DecisionReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException {
- super(parentFactory, guid, humanReadableId, branch, artifactType);
- decisionOptions = new XDecisionOptions(this);
- }
-
- @Override
- public String getHelpContext() {
- return "decisionReview";
- }
-
- @Override
- public String getHyperName() {
- return getName();
- }
-
- @Override
- public String getWorldViewDecision() throws OseeCoreException {
+/******************************************************************************* + * Copyright (c) 2004, 2007 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.artifact; + +import java.util.Collection; +import org.eclipse.osee.ats.util.widgets.XDecisionOptions; +import org.eclipse.osee.framework.core.exception.OseeCoreException; +import org.eclipse.osee.framework.core.exception.OseeDataStoreException; +import org.eclipse.osee.framework.core.model.Branch; +import org.eclipse.osee.framework.core.model.type.ArtifactType; +import org.eclipse.osee.framework.skynet.core.User; +import org.eclipse.osee.framework.skynet.core.artifact.ArtifactFactory; +import org.eclipse.osee.framework.skynet.core.artifact.IATSStateMachineArtifact; +import org.eclipse.osee.framework.skynet.core.utility.Artifacts; + +/** + * @author Donald G. Dunne + */ +public class DecisionReviewArtifact extends ReviewSMArtifact implements IReviewArtifact, IATSStateMachineArtifact { + + public XDecisionOptions decisionOptions; + public static enum DecisionReviewState { + Prepare, + Decision, + Followup, + Completed + }; + + public DecisionReviewArtifact(ArtifactFactory parentFactory, String guid, String humanReadableId, Branch branch, ArtifactType artifactType) throws OseeDataStoreException { + super(parentFactory, guid, humanReadableId, branch, artifactType); + decisionOptions = new XDecisionOptions(this); + } + + @Override + public String getHelpContext() { + return "decisionReview"; + } + + @Override + public String getHyperName() { + return getName(); + } + + @Override + public String getWorldViewDecision() throws OseeCoreException { return getSoleAttributeValue(AtsAttributeTypes.Decision, ""); - }
-
- @Override
- public String getWorldViewDescription() throws OseeCoreException {
+ } + + @Override + public String getWorldViewDescription() throws OseeCoreException { return getSoleAttributeValue(AtsAttributeTypes.Description, ""); - }
-
- @Override
- public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException {
- if (getParentSMA() == null) {
- return null;
- }
- return getParentSMA().getWorldViewTargetedVersion();
- }
-
- @Override
- public Collection<User> getImplementers() throws OseeCoreException {
- return getImplementersByState(DecisionReviewState.Decision.name());
- }
-
- @Override
- public String getWorldViewReviewDecider() throws OseeCoreException {
- return Artifacts.toString("; ", getStateMgr().getAssignees(DecisionReviewState.Decision.name()));
- }
-
+ } + + @Override + public VersionArtifact getWorldViewTargetedVersion() throws OseeCoreException { + if (getParentSMA() == null) { + return null; + } + return getParentSMA().getWorldViewTargetedVersion(); + } + + @Override + public Collection<User> getImplementers() throws OseeCoreException { + return getImplementersByState(DecisionReviewState.Decision.name()); + } + + @Override + public String getWorldViewReviewDecider() throws OseeCoreException { + return Artifacts.toString("; ", getStateMgr().getAssignees(DecisionReviewState.Decision.name())); + } + }
\ No newline at end of file |