mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
7498: Deployment callback and event changes 7499: Build fix 7505: Fixed deployment script issue in IE 7525: Added sample job that will clean deployment attempts older than 180 days (by default) 7526: Typo compilation fix git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import org.alfresco.repo.policy.JavaBehaviour;
|
||||
import org.alfresco.repo.policy.PolicyComponent;
|
||||
import org.alfresco.repo.policy.PolicyScope;
|
||||
import org.alfresco.service.cmr.lock.LockService;
|
||||
import org.alfresco.service.cmr.lock.LockStatus;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.repository.StoreRef;
|
||||
@@ -137,9 +138,12 @@ public class WorkingCopyAspect
|
||||
// Get the origional node
|
||||
NodeRef origNodeRef = (NodeRef)this.nodeService.getProperty(nodeRef, ContentModel.PROP_COPY_REFERENCE);
|
||||
if (origNodeRef != null)
|
||||
{
|
||||
// Release the lock on the origional node
|
||||
this.lockService.unlock(origNodeRef);
|
||||
{
|
||||
if (this.lockService.getLockStatus(origNodeRef).equals(LockStatus.NO_LOCK) == false)
|
||||
{
|
||||
// Release the lock on the origional node
|
||||
this.lockService.unlock(origNodeRef);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user