mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
78438: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 77695: ACE-2149 - EOL AVM / WCM. Ripped WCM out of Explorer. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82564 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,9 +28,6 @@ import org.alfresco.repo.content.MimetypeMap;
|
||||
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.web.bean.repository.Node;
|
||||
import org.alfresco.web.forms.Form;
|
||||
import org.alfresco.web.forms.FormNotFoundException;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
|
||||
/**
|
||||
* Bean implementation for the "Edit Content Wizard" dialog
|
||||
@@ -40,7 +37,6 @@ public class EditContentWizard extends CreateContentWizard
|
||||
private static final long serialVersionUID = 1640754719164511019L;
|
||||
|
||||
private NodeRef nodeRef;
|
||||
private Form form;
|
||||
|
||||
// ------------------------------------------------------------------------------
|
||||
// Wizard implementation
|
||||
@@ -48,7 +44,6 @@ public class EditContentWizard extends CreateContentWizard
|
||||
@Override
|
||||
public void init(final Map<String, String> parameters)
|
||||
{
|
||||
// TODO - currently assumes this is form content
|
||||
super.init(parameters);
|
||||
Node node = this.navigator.getDispatchContextNode();
|
||||
if (node == null)
|
||||
@@ -56,17 +51,6 @@ public class EditContentWizard extends CreateContentWizard
|
||||
throw new IllegalArgumentException("Edit Form wizard requires action node context.");
|
||||
}
|
||||
this.nodeRef = node.getNodeRef();
|
||||
try
|
||||
{
|
||||
// // WCM
|
||||
// formName = (String)getNodeService().getProperty(nodeRef, WCMAppModel.PROP_PARENT_FORM_NAME); // getFormName() ...
|
||||
form = formsService.getForm(this.formName);
|
||||
}
|
||||
catch (FormNotFoundException fnfe)
|
||||
{
|
||||
Utils.addErrorMessage(fnfe.getMessage(), fnfe);
|
||||
throw new IllegalArgumentException(fnfe);
|
||||
}
|
||||
|
||||
this.content = this.getContentService().getReader(nodeRef, ContentModel.PROP_CONTENT).getContentString();
|
||||
|
||||
@@ -92,10 +76,4 @@ public class EditContentWizard extends CreateContentWizard
|
||||
{
|
||||
return outcome;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Form getForm()
|
||||
{
|
||||
return this.form;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user