diff options
author | donald.g.dunne | 2014-05-29 15:22:32 +0000 |
---|---|---|
committer | donald.g.dunne | 2014-05-29 15:22:32 +0000 |
commit | db2b38e2ab879018762f8d8b939ea3ddd45f4e55 (patch) | |
tree | d26210e4254cfce4e4127d62aa0b3e2bb15f82cc /plugins/org.eclipse.osee.ats.core.client | |
parent | d23a7384e096594c27bccac69fc0091e17bdf4f4 (diff) | |
download | org.eclipse.osee-db2b38e2ab879018762f8d8b939ea3ddd45f4e55.tar.gz org.eclipse.osee-db2b38e2ab879018762f8d8b939ea3ddd45f4e55.tar.xz org.eclipse.osee-db2b38e2ab879018762f8d8b939ea3ddd45f4e55.zip |
feature[ats_ATS34674]: Improve Ats User Service
Change-Id: Ifed43eb95d56074d4f83192c8a3d0618b12b0c66
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.client')
-rw-r--r-- | plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/internal/AtsClientImpl.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/internal/AtsClientImpl.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/internal/AtsClientImpl.java index 004423ead24..86b0b42a243 100644 --- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/internal/AtsClientImpl.java +++ b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/internal/AtsClientImpl.java @@ -100,7 +100,6 @@ public class AtsClientImpl implements IAtsClient { private IAtsReviewService reviewService; private IAttributeResolver attributeResolverService; private ITeamWorkflowProviders teamWorkflowProvider; - private static Boolean started = null; public void setAtsWorkDefinitionService(IAtsWorkDefinitionService workDefService) { this.workDefService = workDefService; @@ -154,7 +153,6 @@ public class AtsClientImpl implements IAtsClient { attributeResolverService); branchService = new AtsBranchServiceImpl(); reviewService = new AtsReviewServiceImpl(this); - started = true; } public void stop() { @@ -178,13 +176,6 @@ public class AtsClientImpl implements IAtsClient { teamDefFactory = null; versionFactory = null; - started = false; - } - - private static void checkStarted() throws OseeStateException { - if (started == null) { - throw new OseeStateException("AtsCore did not start"); - } } @Override @@ -289,31 +280,26 @@ public class AtsClientImpl implements IAtsClient { @Override public IAtsWorkDefinitionAdmin getWorkDefinitionAdmin() throws OseeStateException { - checkStarted(); return workDefAdmin; } @Override public IAtsConfig getAtsConfig() throws OseeStateException { - checkStarted(); return configProxy; } @Override public IAtsVersionAdmin getAtsVersionService() throws OseeStateException { - checkStarted(); return versionService; } @Override public IAtsUserServiceClient getUserServiceClient() throws OseeStateException { - checkStarted(); return userServiceClient; } @Override public IAtsUserService getUserService() throws OseeStateException { - checkStarted(); return userService; } @@ -323,7 +309,6 @@ public class AtsClientImpl implements IAtsClient { } private AtsArtifactConfigCache getConfigCache() throws OseeCoreException { - checkStarted(); return configCacheProvider.get(); } @@ -390,25 +375,21 @@ public class AtsClientImpl implements IAtsClient { @Override public IAtsWorkItemService getWorkItemService() throws OseeStateException { - checkStarted(); return workItemService; } @Override public IAtsEarnedValueService getEarnedValueService() throws OseeStateException { - checkStarted(); return earnedValueService; } @Override public IAtsWorkItemArtifactService getWorkItemArtifactService() throws OseeStateException { - checkStarted(); return workItemArtifactProvider; } @Override public IAtsBranchService getBranchService() throws OseeCoreException { - checkStarted(); return branchService; } @@ -419,7 +400,6 @@ public class AtsClientImpl implements IAtsClient { @Override public IAtsReviewService getReviewService() throws OseeCoreException { - checkStarted(); return reviewService; } |