mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Links management UI
- Made AJAX polling frequency configurable - Made connection and read timeout values configurable - Added panel around summary area - Removed use of shadowed panels for staging area and user sandboxes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6061 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -335,11 +335,11 @@ public final class AVMUtil
|
||||
* </p>
|
||||
*
|
||||
* @return Number of seconds between each call to the server (in seconds).
|
||||
* The default is 5.
|
||||
* The default is 2.
|
||||
*/
|
||||
public static int getRemoteDeploymentPollingFrequency()
|
||||
{
|
||||
int pollFreq = 5;
|
||||
int pollFreq = 2;
|
||||
|
||||
ConfigElement deploymentConfig = getDeploymentConfig();
|
||||
if (deploymentConfig != null)
|
||||
@@ -443,6 +443,45 @@ public final class AVMUtil
|
||||
return delay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of seconds between each call back to the server to
|
||||
* obtain the latest status of a link validation check.
|
||||
* <p>
|
||||
* This value is read from the <wcm> config section in
|
||||
* web-client-config-wcm.xml
|
||||
* </p>
|
||||
*
|
||||
* @return Number of seconds between each call to the server (in seconds).
|
||||
* The default is 2.
|
||||
*/
|
||||
public static int getLinkValidationPollingFrequency()
|
||||
{
|
||||
int pollFreq = 2;
|
||||
|
||||
ConfigElement linkMngmtConfig = getLinksManagementConfig();
|
||||
if (linkMngmtConfig != null)
|
||||
{
|
||||
ConfigElement elem = linkMngmtConfig.getChild("progress-polling-frequency");
|
||||
if (elem != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
int value = Integer.parseInt(elem.getValue());
|
||||
if (value > 0)
|
||||
{
|
||||
pollFreq = value;
|
||||
}
|
||||
}
|
||||
catch (NumberFormatException nfe)
|
||||
{
|
||||
// do nothing, just use the default
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return pollFreq;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the main staging store name for the specified store id.
|
||||
*
|
||||
@@ -969,6 +1008,21 @@ public final class AVMUtil
|
||||
return deploymentConfig;
|
||||
}
|
||||
|
||||
private static ConfigElement getLinksManagementConfig()
|
||||
{
|
||||
if (linksManagementConfig == null)
|
||||
{
|
||||
ConfigService cfgService = Application.getConfigService(FacesContext.getCurrentInstance());
|
||||
ConfigElement wcmCfg = cfgService.getGlobalConfig().getConfigElement("wcm");
|
||||
if (wcmCfg != null)
|
||||
{
|
||||
linksManagementConfig = wcmCfg.getChild("links-management");
|
||||
}
|
||||
}
|
||||
|
||||
return linksManagementConfig;
|
||||
}
|
||||
|
||||
// Component Separator.
|
||||
private static final String STORE_SEPARATOR = "--";
|
||||
|
||||
@@ -999,5 +1053,6 @@ public final class AVMUtil
|
||||
Pattern.compile("([^:]+:/" + JNDIConstants.DIR_DEFAULT_WWW +
|
||||
"/" + JNDIConstants.DIR_DEFAULT_APPBASE + ")(.*)");
|
||||
|
||||
private static ConfigElement deploymentConfig = null;
|
||||
private static ConfigElement deploymentConfig = null;
|
||||
private static ConfigElement linksManagementConfig = null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user