Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-07-27 17:41:33 -0400
committerrescobar2010-07-27 17:41:33 -0400
commit8e71561d0f314b642dd02352c3523b2e1ed7b1b0 (patch)
tree6a46e06aabfccd2f2f4a515a3ed428192f0d225c /plugins/org.eclipse.osee.framework.core.datastore
parentdefe2a43547888b0b39961ad305daf1afba21816 (diff)
downloadorg.eclipse.osee-8e71561d0f314b642dd02352c3523b2e1ed7b1b0.tar.gz
org.eclipse.osee-8e71561d0f314b642dd02352c3523b2e1ed7b1b0.tar.xz
org.eclipse.osee-8e71561d0f314b642dd02352c3523b2e1ed7b1b0.zip
"Team Workflow" - YGHW1 - "Block changes to requirements unless done under an appropriate action."
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.datastore')
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
index 2ec7fd505a..9038411806 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
@@ -22,6 +22,7 @@ import org.eclipse.osee.framework.core.operation.AbstractOperation;
import org.eclipse.osee.framework.core.operation.IOperation;
import org.eclipse.osee.framework.core.server.IApplicationServerManager;
import org.eclipse.osee.framework.core.server.OseeServerProperties;
+import org.eclipse.osee.framework.core.services.IOseeCachingService;
import org.eclipse.osee.framework.core.util.Conditions;
import org.eclipse.osee.framework.database.IOseeDatabaseService;
import org.eclipse.osee.framework.database.core.OseeInfo;
@@ -37,16 +38,18 @@ public class DatastoreInitOperation extends AbstractOperation {
private static final String ADD_PERMISSION =
"INSERT INTO OSEE_PERMISSION (PERMISSION_ID, PERMISSION_NAME) VALUES (?,?)";
+ private final IOseeCachingService cachingService;
private final IOseeBranchService branchService;
private final IOseeDatabaseService dbService;
private final IOseeSchemaProvider schemaProvider;
private final SchemaCreationOptions options;
private final IApplicationServerManager appServerManager;
- public DatastoreInitOperation(IApplicationServerManager appServerManager, IOseeDatabaseService dbService, IOseeBranchService branchService, IOseeSchemaProvider schemaProvider, SchemaCreationOptions options) {
+ public DatastoreInitOperation(IApplicationServerManager appServerManager, IOseeDatabaseService dbService, IOseeCachingService cachingService, IOseeBranchService branchService, IOseeSchemaProvider schemaProvider, SchemaCreationOptions options) {
super("Datastore Initialization", Activator.PLUGIN_ID);
this.appServerManager = appServerManager;
this.dbService = dbService;
+ this.cachingService = cachingService;
this.branchService = branchService;
this.schemaProvider = schemaProvider;
this.options = options;
@@ -71,6 +74,8 @@ public class DatastoreInitOperation extends AbstractOperation {
OseeInfo.putValue(OseeInfo.DB_ID_KEY, GUID.create());
addDefaultPermissions();
+ cachingService.clearAll();
+
subOp = branchService.createSystemRootBranch(monitor);
doSubWork(subOp, monitor, 0.30);
}

Back to the top