Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-05-16 16:26:10 -0400
committerDonald Dunne2017-05-16 17:33:43 -0400
commit75ad6385ba9e36058569f4484a3541f413fb0210 (patch)
tree8c5a5d9fc3a4fb8e0aa3501d2c9e5dd5f5be8aeb
parent6bed688cc22304861f614d7a63b959c57a43b21a (diff)
downloadorg.eclipse.osee-75ad6385ba9e36058569f4484a3541f413fb0210.tar.gz
org.eclipse.osee-75ad6385ba9e36058569f4484a3541f413fb0210.tar.xz
org.eclipse.osee-75ad6385ba9e36058569f4484a3541f413fb0210.zip
refinement: Add default methods for ITeamWorkflowProvider
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/ITeamWorkflowProvider.java27
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/TeamWorkflowProviderAdapter.java47
-rw-r--r--plugins/org.eclipse.osee.ats.client.demo/src/org/eclipse/osee/ats/client/demo/artifact/DemoTeamWorkflows.java4
3 files changed, 21 insertions, 57 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/ITeamWorkflowProvider.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/ITeamWorkflowProvider.java
index 90d8c71d27..781c5a127b 100644
--- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/ITeamWorkflowProvider.java
+++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/ITeamWorkflowProvider.java
@@ -1,7 +1,7 @@
/*******************************************************************************
* 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
+ * are made available under the terms of the Eclipse public default License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
@@ -12,28 +12,39 @@ package org.eclipse.osee.ats.api.team;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
/**
* @author Donald G. Dunne
*/
-public interface ITeamWorkflowProvider {
+public
- public String getWorkflowDefinitionId(IAtsWorkItem workItem) throws OseeCoreException;
+interface ITeamWorkflowProvider {
- public String getRelatedTaskWorkflowDefinitionId(IAtsTeamWorkflow teamWf) throws OseeCoreException;
+ public default String getWorkflowDefinitionId(IAtsWorkItem workItem) {
+ return null;
+ }
+
+ public default String getRelatedTaskWorkflowDefinitionId(IAtsTeamWorkflow teamWf) {
+ return null;
+ }
/**
* Assigned or computed Id that will show at the top of the editor. Default is <ATS Id> - <Legacy PCR Id (if any)>
*/
- public String getComputedPcrId(IAtsWorkItem workItem) throws OseeCoreException;
+ public default String getComputedPcrId(IAtsWorkItem workItem) {
+ return null;
+ }
/**
* 5-9 character short name for UI and display purposes
*/
- public String getArtifactTypeShortName(IAtsTeamWorkflow teamWf);
+ public default String getArtifactTypeShortName(IAtsTeamWorkflow teamWf) {
+ return null;
+ }
- public String getBranchName(IAtsTeamWorkflow teamWf, String defaultBranchName);
+ public default String getBranchName(IAtsTeamWorkflow teamWf, String defaultBranchName) {
+ return null;
+ }
public boolean isResponsibleFor(IAtsWorkItem workItem);
}
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/TeamWorkflowProviderAdapter.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/TeamWorkflowProviderAdapter.java
deleted file mode 100644
index 67ca3efd4d..0000000000
--- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/team/TeamWorkflowProviderAdapter.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.IAtsWorkItem;
-import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-
-/**
- * @author Donald G. Dunne
- */
-public abstract class TeamWorkflowProviderAdapter implements ITeamWorkflowProvider {
-
- @Override
- public String getWorkflowDefinitionId(IAtsWorkItem workItem) throws OseeCoreException {
- return null;
- }
-
- @Override
- public String getRelatedTaskWorkflowDefinitionId(IAtsTeamWorkflow teamWf) throws OseeCoreException {
- return null;
- }
-
- @Override
- public String getComputedPcrId(IAtsWorkItem workItem) throws OseeCoreException {
- return null;
- }
-
- @Override
- public String getArtifactTypeShortName(IAtsTeamWorkflow teamWf) {
- return null;
- }
-
- @Override
- public String getBranchName(IAtsTeamWorkflow teamWf, String defaultBranchName) {
- return null;
- }
-
-}
diff --git a/plugins/org.eclipse.osee.ats.client.demo/src/org/eclipse/osee/ats/client/demo/artifact/DemoTeamWorkflows.java b/plugins/org.eclipse.osee.ats.client.demo/src/org/eclipse/osee/ats/client/demo/artifact/DemoTeamWorkflows.java
index 27867331ea..fce85abbc5 100644
--- a/plugins/org.eclipse.osee.ats.client.demo/src/org/eclipse/osee/ats/client/demo/artifact/DemoTeamWorkflows.java
+++ b/plugins/org.eclipse.osee.ats.client.demo/src/org/eclipse/osee/ats/client/demo/artifact/DemoTeamWorkflows.java
@@ -12,7 +12,7 @@ package org.eclipse.osee.ats.client.demo.artifact;
import java.util.logging.Level;
import org.eclipse.osee.ats.api.IAtsWorkItem;
-import org.eclipse.osee.ats.api.team.TeamWorkflowProviderAdapter;
+import org.eclipse.osee.ats.api.team.ITeamWorkflowProvider;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
import org.eclipse.osee.ats.client.demo.internal.Activator;
import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact;
@@ -23,7 +23,7 @@ import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Donald G. Dunne
*/
-public class DemoTeamWorkflows extends TeamWorkflowProviderAdapter {
+public class DemoTeamWorkflows implements ITeamWorkflowProvider {
@Override
public boolean isResponsibleFor(IAtsWorkItem workItem) {

Back to the top