Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

80110: Merged V4.2-BUG-FIX (4.2.4) to HEAD-BUG-FIX (5.0/Cloud)
      79475: Merged DEV to V4.2-BUG-FIX (4.2.4)
         79324: MNT-11023 Admin Console:Search service. After enable noindex not possible to change search service.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-09-03 15:22:43 +00:00
parent c717551907
commit 33334fef52
5 changed files with 26 additions and 4 deletions

View File

@@ -91,9 +91,9 @@ public abstract class AbstractPropertyBackedBean implements PropertyBackedBean,
private DefaultResolver defaultResolver = new DefaultResolver();
/** The lifecycle states. */
private enum RuntimeState {UNINITIALIZED, STOPPED, PENDING_BROADCAST_START, STARTED};
protected enum RuntimeState {UNINITIALIZED, STOPPED, PENDING_BROADCAST_START, STARTED};
private RuntimeState runtimeState = RuntimeState.UNINITIALIZED;
protected RuntimeState runtimeState = RuntimeState.UNINITIALIZED;
/** The state. */
private PropertyBackedBeanState state;

View File

@@ -35,6 +35,12 @@ public class LuceneChildApplicationContextFactory extends ChildApplicationContex
{
return new ApplicationContextState(true);
}
protected void destroy(boolean isPermanent)
{
super.destroy(isPermanent);
doInit();
}
}

View File

@@ -0,0 +1,10 @@
package org.alfresco.repo.management.subsystems;
public class NoIndexChildApplicationContextFactory extends ChildApplicationContextFactory
{
protected void destroy(boolean isPermanent)
{
super.destroy(isPermanent);
doInit();
}
}

View File

@@ -328,5 +328,11 @@ public class SolrChildApplicationContextFactory extends ChildApplicationContextF
throw new IllegalStateException("Illegal write to property \"" + name + "\"");
}
super.setProperty(name, value);
}
}
protected void destroy(boolean isPermanent)
{
super.destroy(isPermanent);
doInit();
}
}