mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. WCM UI
- Submit All action added for submitting an entire user sandbox (tasty!) - Submit action added for deleted files/folders - Submit action now working correctly for modified files/folders - Status message output on successful/fail submit - WCM Domain and Port added to web-client-config.xml - For the virtualisation server URL generation git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,7 @@ import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.namespace.QName;
|
||||
import org.alfresco.service.namespace.QNameMap;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import sun.security.krb5.internal.av;
|
||||
|
||||
/**
|
||||
* @author Kevin Roast
|
||||
@@ -41,6 +42,7 @@ public class AVMNode implements Map<String, Object>
|
||||
private AVMNodeDescriptor avmRef;
|
||||
private String path;
|
||||
private int version;
|
||||
private boolean deleted = false;
|
||||
|
||||
|
||||
/**
|
||||
@@ -51,8 +53,12 @@ public class AVMNode implements Map<String, Object>
|
||||
this.avmRef = avmRef;
|
||||
this.version = -1; // TODO: always -1 for now...
|
||||
this.path = avmRef.getPath();
|
||||
|
||||
getProperties();
|
||||
}
|
||||
|
||||
public AVMNode(AVMNodeDescriptor avmRef, boolean deleted)
|
||||
{
|
||||
this(avmRef);
|
||||
this.deleted = deleted;
|
||||
}
|
||||
|
||||
public String getPath()
|
||||
@@ -82,13 +88,16 @@ public class AVMNode implements Map<String, Object>
|
||||
{
|
||||
if (this.properties == null)
|
||||
{
|
||||
Map<QName, PropertyValue> props = getServiceRegistry().getAVMService().getNodeProperties(this.version, this.path);
|
||||
|
||||
this.properties = new QNameMap<String, Object>(getServiceRegistry().getNamespaceService());
|
||||
for (QName qname: props.keySet())
|
||||
|
||||
if (this.deleted == false)
|
||||
{
|
||||
PropertyValue propValue = props.get(qname);
|
||||
this.properties.put(qname.toString(), propValue.getSerializableValue());
|
||||
Map<QName, PropertyValue> props = getServiceRegistry().getAVMService().getNodeProperties(this.version, this.path);
|
||||
for (QName qname: props.keySet())
|
||||
{
|
||||
PropertyValue propValue = props.get(qname);
|
||||
this.properties.put(qname.toString(), propValue.getSerializableValue());
|
||||
}
|
||||
}
|
||||
|
||||
this.properties.put("id", this.path);
|
||||
|
Reference in New Issue
Block a user