Commit a6abc0f8 authored by Bonita CI's avatar Bonita CI
Browse files

Merge branch 'CoreProduct' into 'master'

parents d7ae8bd6 e6398baf
......@@ -98,7 +98,7 @@ dropBusinessDataDBOnExit=Clean business data database on exit
dropBusinessDataDBOnBDMChanges=Clean business data database on changes
queryExpressionGuidance=Select the Business Object and the corresponding query to execute. Set the value for each parameter required by the query.
bdmCompatibilityTitle=Warning: Impact of changes
bdmCompatibilityMsg=This BDM is available to all processes in your Studio, and to pages using REST API calls. Changing the BDM might cause inconsistencies.\nAfter the BDM update, validate each diagram and check your pages.\nIf you have changed the Mandatory or Multiple setting for an attribute, or if you have changed a unique constraint, you must clear the values of the business data in the database.
bdmCompatibilityMsg=This BDM is available to all processes in your Studio, and to pages using REST API calls. Changing the BDM might cause inconsistencies.\nAfter the BDM update, validate each diagram and check your pages.\nIf you have changed the Mandatory or Multiple setting for an attribute, a unique constraint, or if you have changed a Business Object attribute Type you must clear the values of the business data in the database.
clearExistingBusinessData=Clear data
businessObjectNameAlreadyExists=A Business Object already exists with the same name
installFailedTitle=Deploy failed
......@@ -148,4 +148,4 @@ addBusinessObjectDataWindowTitle=New business variable
defaultValueBusinessDataTooltip=Business data can be initialized with existing Business Objects using a query\nor by creating a new one using a Groovy Script and the provided dao variable (XXXDAO.newInstance()).
cleaningBusinessObjects=Cleaning Business data model...
countQueryInfo=To get paged results from a REST API query on this business object you must create a related count query. For a query named "queryName", create a query named "countForQueryName" that counts the total number of results.
missingCountQuery=You can define a count query {0} to enable paged results from this REST API query.
\ No newline at end of file
missingCountQuery=You can define a count query {0} to enable paged results from this REST API query.
......@@ -101,8 +101,6 @@ public class Repository implements IRepository, IJavaContainer {
private static final String CLASS = "class";
private static final String BONITA_HOME_NAME = "bonita_home";
private final IProject project;
private SortedMap<Class<?>, IRepositoryStore<? extends IRepositoryFileStore>> stores;
......@@ -119,6 +117,8 @@ public class Repository implements IRepository, IJavaContainer {
private final ProjectClasspathFactory bonitaBPMProjectClasspath;
private boolean isLoaded = false;
public Repository(final IWorkspace workspace,
final IProject project,
final ExtensionContextInjectionFactory extensionContextInjectionFactory,
......@@ -286,9 +286,11 @@ public class Repository implements IRepository, IJavaContainer {
stores.clear();
stores = null;
}
isLoaded = false;
}
protected synchronized void initRepositoryStores(final IProgressMonitor monitor) {
isLoaded = false;
if (stores == null || stores.isEmpty()) {
disableBuild();
stores = new TreeMap<Class<?>, IRepositoryStore<? extends IRepositoryFileStore>>(new Comparator<Class<?>>() {
......@@ -317,6 +319,7 @@ public class Repository implements IRepository, IJavaContainer {
}
}
}
isLoaded = true;
}
private boolean migrationEnabled() {
......@@ -423,7 +426,7 @@ public class Repository implements IRepository, IJavaContainer {
@Override
public <T> T getRepositoryStore(final Class<T> repositoryStoreClass) {
if (stores == null || stores.isEmpty()) {
if (!isLoaded()) {
initRepositoryStores(NULL_PROGRESS_MONITOR);
enableBuild();
}
......@@ -731,7 +734,7 @@ public class Repository implements IRepository, IJavaContainer {
@Override
public boolean isLoaded() {
return stores != null && !stores.isEmpty();
return isLoaded;
}
public IScopeContext getScopeContext() {
......
......@@ -228,10 +228,12 @@
<unit id="org.codehaus.groovy24.feature.feature.group" version="2.9.2.xx-201509250011-e44"/>
<unit id="com.google.guava.sdk.feature.feature.group" version="11.0.1"/>
<unit id="com.google.guava.runtime.feature.feature.group" version="11.0.1"/>
<unit id="org.eclipse.m2e.feature.feature.group" version="1.5.1.20150109-1820"/>
<unit id="org.eclipse.m2e.feature.feature.group" version="1.6.2.20150902-0002"/>
<unit id="org.eclipse.m2e.sdk.feature.feature.group" version="1.6.2.20150902-0002"/>
<unit id="com.google.guava" version="15.0.0.v201403281430"/>
<unit id="org.codehaus.groovy.m2eclipse.feature.feature.group" version="2.9.2.xx-201509250011-e44"/>
<unit id="org.eclipse.m2e.jdt" version="1.5.1.20150109-1820"/>
<unit id="org.eclipse.m2e.feature.feature.group" version="1.6.2.20150902-0002"/>
<unit id="org.eclipse.m2e.jdt" version="1.6.2.20150902-0002"/>
<unit id="org.jspresso.contrib.sjsplugin.spock.feature.feature.group" version="2.12.0.201509182051"/>
</location>
</locations>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment