mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.1 to HEAD
6486: Fix for AWC-1134 (Made minimum length for username and password configurable) 6487: Added "copy.verbose" property to build script to list all files being copied in the 'deploy-tomcat-exploded' and 'deploy-webclient-changes' targets 6488: Changed default CIFS server to remove underscore as it can cause problems with OpenOffice. 6489: Fix for WCM-498 (Expired items that are deleted are not represented as such in the change request dialog or submit dialog) 6490: Fix for WCM-446 and WCM-624. Multi-select and All operations in Modified Files list respect items in workflow and ignore them. 6491: Fixes profoundly brain dead behavior in AVMLockingService.init(). 6492: Refactoring of LookupCache to be clustering compatible 6493: Staging and locking changes 6494: WCM Revert action moved to end of all action lists to avoid accidently clicking it (as it has no confirmation screen!) 6496: Fixes for WCM-746 and WCM-747 - Edit File Properties and Edit Folder Properties working correctly again for AVM objects. 6497: Enable virtualization server to be (re)started at any point prior or during the startup of the alfresco webapp (fixes WCM-750). 6498: WCM-742 - moving locks from the preview sandbox to the main user sandbox. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -48,6 +48,7 @@ import org.alfresco.sandbox.SandboxConstants;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
import org.alfresco.service.cmr.avm.AVMService;
|
||||
import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.locking.AVMLockingService;
|
||||
import org.alfresco.service.cmr.avmsync.AVMSyncService;
|
||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
@@ -86,6 +87,7 @@ public class AVMExpiredContentProcessor
|
||||
protected Map<String, Map<String, List<String>>> expiredContent;
|
||||
protected AVMService avmService;
|
||||
protected AVMSyncService avmSyncService;
|
||||
protected AVMService avmLockingAwareService;
|
||||
protected NodeService nodeService;
|
||||
protected WorkflowService workflowService;
|
||||
protected PersonService personService;
|
||||
@@ -157,6 +159,11 @@ public class AVMExpiredContentProcessor
|
||||
{
|
||||
this.searchService = searchService;
|
||||
}
|
||||
|
||||
public void setAvmLockingAwareService(AVMService avmLockingAwareService)
|
||||
{
|
||||
this.avmLockingAwareService = avmLockingAwareService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the expired content processor.
|
||||
@@ -305,7 +312,7 @@ public class AVMExpiredContentProcessor
|
||||
|
||||
if (logger.isDebugEnabled())
|
||||
logger.debug("Examining expiration date for '" + nodePath + "': " +
|
||||
expirationDateProp.getStringValue());
|
||||
expirationDateProp);
|
||||
|
||||
if (expirationDateProp != null)
|
||||
{
|
||||
@@ -465,10 +472,10 @@ public class AVMExpiredContentProcessor
|
||||
String path = workflowStoreName + ":/" + JNDIConstants.DIR_DEFAULT_WWW +
|
||||
"/" + JNDIConstants.DIR_DEFAULT_APPBASE;
|
||||
// DNS name mangle the property name - can only contain value DNS characters!
|
||||
String dnsProp = SandboxConstants.PROP_DNS + DNSNameMangler.MakeDNSName(userStore, packageName);
|
||||
String dnsProp = SandboxConstants.PROP_DNS + DNSNameMangler.MakeDNSName(stagingStore, packageName);
|
||||
this.avmService.setStoreProperty(workflowStoreName, QName.createQName(null, dnsProp),
|
||||
new PropertyValue(DataTypeDefinition.TEXT, path));
|
||||
|
||||
|
||||
// the main workflow store depends on the main user store (dist=1)
|
||||
String prop_key = SandboxConstants.PROP_BACKGROUND_LAYER + userStore;
|
||||
this.avmService.setStoreProperty(workflowStoreName, QName.createQName(null, prop_key),
|
||||
@@ -560,11 +567,10 @@ public class AVMExpiredContentProcessor
|
||||
String pathInWorkflowStore = workflowStoreName + ":" + relPath;
|
||||
|
||||
// call forceCopy to make sure the path appears modified in the workflow
|
||||
// sandbox, if the item is already modified or deleted this call has no
|
||||
// effect.
|
||||
this.avmService.forceCopy(pathInWorkflowStore);
|
||||
// sandbox, if the item is already modified or deleted this call has no effect.
|
||||
this.avmLockingAwareService.forceCopy(pathInWorkflowStore);
|
||||
}
|
||||
|
||||
|
||||
// convert package to workflow package
|
||||
AVMNodeDescriptor packageDesc = avmService.lookup(-1, packagesPath);
|
||||
NodeRef packageNodeRef = workflowService.createPackage(
|
||||
|
Reference in New Issue
Block a user