mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged BRANCHES/DEV/V3.4-BUG-FIX to HEAD:
23654: Fix for ALF-5359: System error after open Summary page of Regenerate Renditions Wizard 24757: Merged BRANCHES/V3.4 to BRANCHES/DEV/V3.4-BUG-FIX: 24756: Fix for ALF-6269: WebForm (Edit Web Content Wizard) ERROR on Alfresco Community Edition 3.4.b and 3.4.c 23964: Re-implemented fix for ALF-5783: Not possible to override the output path pattern anymore when a webform is edited for a specific website git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@24770 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -234,7 +234,6 @@ public class EditWebContentWizard extends CreateWebContentWizard
|
||||
if (rr.getLockOwner() != null)
|
||||
{
|
||||
this.existingLocks.add(path);
|
||||
}
|
||||
|
||||
String renditionStoreId = AVMUtil.getStoreId(path);
|
||||
String renditionStorePath = AVMUtil.getStoreRelativePath(path);
|
||||
@@ -249,6 +248,7 @@ public class EditWebContentWizard extends CreateWebContentWizard
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Indicates whether or not the wizard is currently in edit mode */
|
||||
@Override
|
||||
|
@@ -45,6 +45,7 @@ import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.app.servlet.FacesHelper;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.bean.wcm.AVMUtil;
|
||||
import org.alfresco.web.bean.wcm.WebProject;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.w3c.dom.Document;
|
||||
@@ -62,11 +63,21 @@ import org.xml.sax.SAXException;
|
||||
private static final Log logger = LogFactory.getLog(RenditionImpl.class);
|
||||
|
||||
private final NodeRef nodeRef;
|
||||
private final WebProject webProject;
|
||||
private transient FormsService formsService;
|
||||
|
||||
/* package */ FormInstanceDataImpl(final NodeRef nodeRef,
|
||||
final FormsService formsService)
|
||||
{
|
||||
this(nodeRef, formsService, null);
|
||||
}
|
||||
|
||||
/* package */ FormInstanceDataImpl(final NodeRef nodeRef,
|
||||
final FormsService formsService,
|
||||
final WebProject webProject)
|
||||
{
|
||||
this.webProject = webProject;
|
||||
|
||||
if (nodeRef == null)
|
||||
{
|
||||
throw new NullPointerException();
|
||||
@@ -145,6 +156,11 @@ import org.xml.sax.SAXException;
|
||||
// TODO - forms should be identified by nodeRef rather than name (which can be non-unique)
|
||||
if (getNodeRef().getStoreRef().getProtocol().equals(StoreRef.PROTOCOL_AVM))
|
||||
{
|
||||
if (webProject != null)
|
||||
{
|
||||
return webProject.getForm(parentFormName);
|
||||
}
|
||||
|
||||
return this.getFormsService().getWebForm(parentFormName);
|
||||
}
|
||||
else
|
||||
@@ -154,6 +170,11 @@ import org.xml.sax.SAXException;
|
||||
}
|
||||
catch (FormNotFoundException fnfe)
|
||||
{
|
||||
if (webProject != null)
|
||||
{
|
||||
throw new FormNotFoundException(parentFormName, webProject, this);
|
||||
}
|
||||
|
||||
throw new FormNotFoundException(parentFormName, this);
|
||||
}
|
||||
}
|
||||
@@ -279,9 +300,12 @@ import org.xml.sax.SAXException;
|
||||
String storePath = AVMUtil.getStoreRelativePath(path);
|
||||
String storeName = AVMUtil.getStoreName(path);
|
||||
|
||||
lockOwner = avmLockService.getLockOwner(storeId, storePath);
|
||||
Map<String, String> lockData = avmLockService.getLockData(storeId, storePath);
|
||||
if (lockData != null)
|
||||
{
|
||||
lockOwner = avmLockService.getLockOwner(storeId, storePath);
|
||||
currentLockStore = lockData.get(WCMUtil.LOCK_KEY_STORE_NAME);
|
||||
}
|
||||
|
||||
if (lockOwner != null)
|
||||
{
|
||||
|
@@ -297,10 +297,13 @@ public final class FormsService
|
||||
|
||||
public FormInstanceData getFormInstanceData(final NodeRef nodeRef) throws FormNotFoundException
|
||||
{
|
||||
final String avmPath = AVMNodeConverter.ToAVMVersionPath(nodeRef).getSecond();
|
||||
final WebProject webProject = new WebProject(avmPath);
|
||||
|
||||
FormInstanceData fid = null;
|
||||
try
|
||||
{
|
||||
fid = new FormInstanceDataImpl(nodeRef, this);
|
||||
fid = new FormInstanceDataImpl(nodeRef, this, webProject);
|
||||
return fid;
|
||||
}
|
||||
catch (IllegalArgumentException iae)
|
||||
|
Reference in New Issue
Block a user