mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-24 14:32:01 +00:00
Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7ef573699b | ||
|
a000df7ceb | ||
|
4a22735120 | ||
|
94d84799be | ||
|
754776e30c | ||
|
28b8bb85e4 | ||
|
4910028d51 | ||
|
75d0825295 | ||
|
964cedaebd | ||
|
2bda7d7231 |
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-amps</artifactId>
|
<artifactId>alfresco-community-repo-amps</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-automation-community-repo</artifactId>
|
<artifactId>alfresco-governance-services-automation-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-amps</artifactId>
|
<artifactId>alfresco-community-repo-amps</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -9,6 +9,6 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
10
pom.xml
10
pom.xml
@@ -2,7 +2,7 @@
|
|||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Alfresco Community Repo Parent</name>
|
<name>Alfresco Community Repo Parent</name>
|
||||||
|
|
||||||
@@ -51,10 +51,10 @@
|
|||||||
<dependency.alfresco-server-root.version>7.0.2</dependency.alfresco-server-root.version>
|
<dependency.alfresco-server-root.version>7.0.2</dependency.alfresco-server-root.version>
|
||||||
<dependency.activiti-engine.version>5.23.0</dependency.activiti-engine.version>
|
<dependency.activiti-engine.version>5.23.0</dependency.activiti-engine.version>
|
||||||
<dependency.activiti.version>5.23.0</dependency.activiti.version>
|
<dependency.activiti.version>5.23.0</dependency.activiti.version>
|
||||||
<dependency.alfresco-transform-core.version>5.2.2-A.1</dependency.alfresco-transform-core.version>
|
<dependency.alfresco-transform-core.version>5.2.2-A.4</dependency.alfresco-transform-core.version>
|
||||||
<dependency.alfresco-transform-service.version>4.2.2-A.1</dependency.alfresco-transform-service.version>
|
<dependency.alfresco-transform-service.version>4.2.2-A.2</dependency.alfresco-transform-service.version>
|
||||||
<dependency.alfresco-greenmail.version>7.1</dependency.alfresco-greenmail.version>
|
<dependency.alfresco-greenmail.version>7.1</dependency.alfresco-greenmail.version>
|
||||||
<dependency.acs-event-model.version>1.0.9</dependency.acs-event-model.version>
|
<dependency.acs-event-model.version>1.0.11</dependency.acs-event-model.version>
|
||||||
|
|
||||||
<dependency.aspectj.version>1.9.22.1</dependency.aspectj.version>
|
<dependency.aspectj.version>1.9.22.1</dependency.aspectj.version>
|
||||||
<dependency.spring.version>6.2.8</dependency.spring.version>
|
<dependency.spring.version>6.2.8</dependency.spring.version>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
<connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
|
<connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
|
||||||
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
|
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
|
||||||
<url>https://github.com/Alfresco/alfresco-community-repo</url>
|
<url>https://github.com/Alfresco/alfresco-community-repo</url>
|
||||||
<tag>25.3.0.42</tag>
|
<tag>HEAD</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>25.3.0.42</version>
|
<version>25.3.0.46-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -2066,7 +2066,7 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
|
|||||||
|
|
||||||
Node node = getNodeNotNull(nodeId, false);
|
Node node = getNodeNotNull(nodeId, false);
|
||||||
// Handle sys:referenceable
|
// Handle sys:referenceable
|
||||||
ReferenceablePropertiesEntity.addReferenceableProperties(node, props);
|
ReferenceablePropertiesEntity.addReferenceableProperties(node.getId(), node.getNodeRef(), props);
|
||||||
// Handle sys:localized
|
// Handle sys:localized
|
||||||
LocalizedPropertiesEntity.addLocalizedProperties(localeDAO, node, props);
|
LocalizedPropertiesEntity.addLocalizedProperties(localeDAO, node, props);
|
||||||
// Handle cm:auditable
|
// Handle cm:auditable
|
||||||
|
@@ -86,10 +86,8 @@ public class ReferenceablePropertiesEntity
|
|||||||
/**
|
/**
|
||||||
* Adds all {@link ContentModel#ASPECT_REFERENCEABLE referencable} properties.
|
* Adds all {@link ContentModel#ASPECT_REFERENCEABLE referencable} properties.
|
||||||
*/
|
*/
|
||||||
public static void addReferenceableProperties(Node node, Map<QName, Serializable> properties)
|
public static void addReferenceableProperties(Long nodeId, NodeRef nodeRef, Map<QName, Serializable> properties)
|
||||||
{
|
{
|
||||||
Long nodeId = node.getId();
|
|
||||||
NodeRef nodeRef = node.getNodeRef();
|
|
||||||
properties.put(ContentModel.PROP_STORE_PROTOCOL, nodeRef.getStoreRef().getProtocol());
|
properties.put(ContentModel.PROP_STORE_PROTOCOL, nodeRef.getStoreRef().getProtocol());
|
||||||
properties.put(ContentModel.PROP_STORE_IDENTIFIER, nodeRef.getStoreRef().getIdentifier());
|
properties.put(ContentModel.PROP_STORE_IDENTIFIER, nodeRef.getStoreRef().getIdentifier());
|
||||||
properties.put(ContentModel.PROP_NODE_UUID, nodeRef.getId());
|
properties.put(ContentModel.PROP_NODE_UUID, nodeRef.getId());
|
||||||
|
@@ -28,8 +28,10 @@ package org.alfresco.repo.node.getchildren;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.alfresco.repo.domain.node.NodeEntity;
|
import org.alfresco.repo.domain.node.AuditablePropertiesEntity;
|
||||||
import org.alfresco.repo.domain.node.NodePropertyEntity;
|
import org.alfresco.repo.domain.node.NodePropertyEntity;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filterable/Sortable Node Entity
|
* Filterable/Sortable Node Entity
|
||||||
@@ -42,12 +44,17 @@ import org.alfresco.repo.domain.node.NodePropertyEntity;
|
|||||||
public class FilterSortNodeEntity
|
public class FilterSortNodeEntity
|
||||||
{
|
{
|
||||||
private Long id; // node id
|
private Long id; // node id
|
||||||
|
private String nodeUuid;
|
||||||
|
private Long typeQNameId;
|
||||||
|
|
||||||
private NodeEntity node;
|
private AuditablePropertiesEntity auditablePropertiesEntity;
|
||||||
private NodePropertyEntity prop1;
|
private NodePropertyEntity prop1;
|
||||||
private NodePropertyEntity prop2;
|
private NodePropertyEntity prop2;
|
||||||
private NodePropertyEntity prop3;
|
private NodePropertyEntity prop3;
|
||||||
|
|
||||||
|
private String storeProtocol;
|
||||||
|
private String storeIdentifier;
|
||||||
|
|
||||||
// Supplemental query-related parameters
|
// Supplemental query-related parameters
|
||||||
private Long parentNodeId;
|
private Long parentNodeId;
|
||||||
private Long prop1qnameId;
|
private Long prop1qnameId;
|
||||||
@@ -80,6 +87,26 @@ public class FilterSortNodeEntity
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getNodeUuid()
|
||||||
|
{
|
||||||
|
return nodeUuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNodeUuid(String nodeUuid)
|
||||||
|
{
|
||||||
|
this.nodeUuid = nodeUuid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getTypeQNameId()
|
||||||
|
{
|
||||||
|
return typeQNameId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTypeQNameId(Long typeQNameId)
|
||||||
|
{
|
||||||
|
this.typeQNameId = typeQNameId;
|
||||||
|
}
|
||||||
|
|
||||||
public String getPattern()
|
public String getPattern()
|
||||||
{
|
{
|
||||||
return pattern;
|
return pattern;
|
||||||
@@ -136,6 +163,16 @@ public class FilterSortNodeEntity
|
|||||||
this.namePropertyQNameId = namePropertyQNameId;
|
this.namePropertyQNameId = namePropertyQNameId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AuditablePropertiesEntity getAuditablePropertiesEntity()
|
||||||
|
{
|
||||||
|
return auditablePropertiesEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAuditablePropertiesEntity(AuditablePropertiesEntity auditablePropertiesEntity)
|
||||||
|
{
|
||||||
|
this.auditablePropertiesEntity = auditablePropertiesEntity;
|
||||||
|
}
|
||||||
|
|
||||||
public NodePropertyEntity getProp1()
|
public NodePropertyEntity getProp1()
|
||||||
{
|
{
|
||||||
return prop1;
|
return prop1;
|
||||||
@@ -166,14 +203,24 @@ public class FilterSortNodeEntity
|
|||||||
this.prop3 = prop3;
|
this.prop3 = prop3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public NodeEntity getNode()
|
public String getStoreProtocol()
|
||||||
{
|
{
|
||||||
return node;
|
return storeProtocol;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setNode(NodeEntity childNode)
|
public void setStoreProtocol(String storeProtocol)
|
||||||
{
|
{
|
||||||
this.node = childNode;
|
this.storeProtocol = storeProtocol;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStoreIdentifier()
|
||||||
|
{
|
||||||
|
return storeIdentifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStoreIdentifier(String storeIdentifier)
|
||||||
|
{
|
||||||
|
this.storeIdentifier = storeIdentifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Supplemental query-related parameters
|
// Supplemental query-related parameters
|
||||||
@@ -257,4 +304,9 @@ public class FilterSortNodeEntity
|
|||||||
{
|
{
|
||||||
this.isPrimary = isPrimary;
|
this.isPrimary = isPrimary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public NodeRef createNodeRef()
|
||||||
|
{
|
||||||
|
return new NodeRef(new StoreRef(storeProtocol, storeIdentifier), nodeUuid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -48,7 +48,6 @@ import org.alfresco.query.CannedQueryParameters;
|
|||||||
import org.alfresco.query.CannedQuerySortDetails;
|
import org.alfresco.query.CannedQuerySortDetails;
|
||||||
import org.alfresco.query.CannedQuerySortDetails.SortOrder;
|
import org.alfresco.query.CannedQuerySortDetails.SortOrder;
|
||||||
import org.alfresco.repo.domain.node.AuditablePropertiesEntity;
|
import org.alfresco.repo.domain.node.AuditablePropertiesEntity;
|
||||||
import org.alfresco.repo.domain.node.Node;
|
|
||||||
import org.alfresco.repo.domain.node.NodeDAO;
|
import org.alfresco.repo.domain.node.NodeDAO;
|
||||||
import org.alfresco.repo.domain.node.NodeEntity;
|
import org.alfresco.repo.domain.node.NodeEntity;
|
||||||
import org.alfresco.repo.domain.node.NodePropertyEntity;
|
import org.alfresco.repo.domain.node.NodePropertyEntity;
|
||||||
@@ -775,7 +774,8 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
|||||||
if (results.size() >= BATCH_SIZE)
|
if (results.size() >= BATCH_SIZE)
|
||||||
{
|
{
|
||||||
// batch
|
// batch
|
||||||
preloadFilterSort();
|
preloadNodes();
|
||||||
|
filterSort();
|
||||||
}
|
}
|
||||||
|
|
||||||
results.add(result);
|
results.add(result);
|
||||||
@@ -788,24 +788,27 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
|||||||
if (results.size() >= 0)
|
if (results.size() >= 0)
|
||||||
{
|
{
|
||||||
// finish batch
|
// finish batch
|
||||||
preloadFilterSort();
|
preloadNodes();
|
||||||
|
filterSort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void preloadFilterSort()
|
private void preloadNodes()
|
||||||
{
|
{
|
||||||
List<NodeRef> nodeRefs = new ArrayList<>(results.size());
|
List<NodeRef> nodeRefs = new ArrayList<>(results.size());
|
||||||
for (FilterSortNodeEntity result : results)
|
for (FilterSortNodeEntity result : results)
|
||||||
{
|
{
|
||||||
nodeRefs.add(result.getNode().getNodeRef());
|
nodeRefs.add(result.createNodeRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
preload(nodeRefs);
|
preload(nodeRefs);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void filterSort()
|
||||||
|
{
|
||||||
for (FilterSortNodeEntity result : results)
|
for (FilterSortNodeEntity result : results)
|
||||||
{
|
{
|
||||||
Node node = result.getNode();
|
NodeRef nodeRef = result.createNodeRef();
|
||||||
NodeRef nodeRef = node.getNodeRef();
|
|
||||||
|
|
||||||
Map<NodePropertyKey, NodePropertyValue> propertyValues = new HashMap<NodePropertyKey, NodePropertyValue>(3);
|
Map<NodePropertyKey, NodePropertyValue> propertyValues = new HashMap<NodePropertyKey, NodePropertyValue>(3);
|
||||||
|
|
||||||
@@ -830,7 +833,7 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
|||||||
Map<QName, Serializable> propVals = nodePropertyHelper.convertToPublicProperties(propertyValues);
|
Map<QName, Serializable> propVals = nodePropertyHelper.convertToPublicProperties(propertyValues);
|
||||||
|
|
||||||
// Add referenceable / spoofed properties (including spoofed name if null)
|
// Add referenceable / spoofed properties (including spoofed name if null)
|
||||||
ReferenceablePropertiesEntity.addReferenceableProperties(node, propVals);
|
ReferenceablePropertiesEntity.addReferenceableProperties(result.getId(), nodeRef, propVals);
|
||||||
|
|
||||||
// special cases
|
// special cases
|
||||||
|
|
||||||
@@ -852,7 +855,7 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Auditable props (eg. cm:creator, cm:created, cm:modifier, cm:modified, ...)
|
// Auditable props (eg. cm:creator, cm:created, cm:modifier, cm:modified, ...)
|
||||||
AuditablePropertiesEntity auditableProps = node.getAuditableProperties();
|
AuditablePropertiesEntity auditableProps = result.getAuditablePropertiesEntity();
|
||||||
if (auditableProps != null)
|
if (auditableProps != null)
|
||||||
{
|
{
|
||||||
for (Map.Entry<QName, Serializable> entry : auditableProps.getAuditableProperties().entrySet())
|
for (Map.Entry<QName, Serializable> entry : auditableProps.getAuditableProperties().entrySet())
|
||||||
@@ -862,7 +865,7 @@ public class GetChildrenCannedQuery extends AbstractCannedQueryPermissions<NodeR
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Node type
|
// Node type
|
||||||
Long nodeTypeQNameId = node.getTypeQNameId();
|
Long nodeTypeQNameId = result.getTypeQNameId();
|
||||||
if (nodeTypeQNameId != null)
|
if (nodeTypeQNameId != null)
|
||||||
{
|
{
|
||||||
Pair<Long, QName> pair = qnameDAO.getQName(nodeTypeQNameId);
|
Pair<Long, QName> pair = qnameDAO.getQName(nodeTypeQNameId);
|
||||||
|
@@ -133,6 +133,14 @@
|
|||||||
<resultMap id="result_FilterSortNode" type="FilterSortNode">
|
<resultMap id="result_FilterSortNode" type="FilterSortNode">
|
||||||
|
|
||||||
<id property="id" column="id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
<id property="id" column="id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||||
|
<result property="nodeUuid" column="uuid" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="typeQNameId" column="type_qname_id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||||
|
|
||||||
|
<result property="auditablePropertiesEntity.auditCreator" column="audit_creator" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="auditablePropertiesEntity.auditCreated" column="audit_created" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="auditablePropertiesEntity.auditModifier" column="audit_modifier" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="auditablePropertiesEntity.auditModified" column="audit_modified" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="auditablePropertiesEntity.auditAccessed" column="audit_accessed" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
|
||||||
<result property="prop1.nodeId" column="prop1_node_id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
<result property="prop1.nodeId" column="prop1_node_id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||||
<result property="prop1.key.qnameId" column="prop1_qname_id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
<result property="prop1.key.qnameId" column="prop1_qname_id" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||||
@@ -170,8 +178,8 @@
|
|||||||
<result property="prop3.value.doubleValue" column="prop3_double_value" jdbcType="FLOAT" javaType="java.lang.Double"/>
|
<result property="prop3.value.doubleValue" column="prop3_double_value" jdbcType="FLOAT" javaType="java.lang.Double"/>
|
||||||
<result property="prop3.value.stringValue" column="prop3_string_value" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
<result property="prop3.value.stringValue" column="prop3_string_value" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
|
||||||
<association property="node" resultMap="alfresco.node.result_Node"/>
|
<result property="storeProtocol" column="protocol" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
|
<result property="storeIdentifier" column="identifier" jdbcType="VARCHAR" javaType="java.lang.String"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="result_ArchivedNodes" type="ArchivedNodes">
|
<resultMap id="result_ArchivedNodes" type="ArchivedNodes">
|
||||||
@@ -972,8 +980,8 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- GetChildren - with explicit prop filtering and/or sorting -->
|
<!-- GetChildren - with explicit prop filtering and/or sorting -->
|
||||||
<select id="select_GetChildrenCannedQueryWithProps" parameterType="FilterSortNode" resultMap="result_FilterSortNode">
|
<select id="select_GetChildrenCannedQueryWithProps" parameterType="FilterSortNode" resultMap="result_FilterSortNode" flushCache="true">
|
||||||
select
|
select distinct
|
||||||
childNode.id as id,
|
childNode.id as id,
|
||||||
childNode.version as version,
|
childNode.version as version,
|
||||||
childStore.id as store_id,
|
childStore.id as store_id,
|
||||||
@@ -989,7 +997,7 @@
|
|||||||
childNode.audit_created as audit_created,
|
childNode.audit_created as audit_created,
|
||||||
childNode.audit_modifier as audit_modifier,
|
childNode.audit_modifier as audit_modifier,
|
||||||
childNode.audit_modified as audit_modified,
|
childNode.audit_modified as audit_modified,
|
||||||
childNode.audit_accessed as audit_accessed
|
childNode.audit_accessed as audit_accessed
|
||||||
<if test="prop1qnameId != null">
|
<if test="prop1qnameId != null">
|
||||||
, prop1.node_id as prop1_node_id,
|
, prop1.node_id as prop1_node_id,
|
||||||
prop1.qname_id as prop1_qname_id,
|
prop1.qname_id as prop1_qname_id,
|
||||||
@@ -1067,9 +1075,6 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
<if test="prop1qnameId == null and auditableProps == false">
|
|
||||||
<include refid="alfresco.node.select_ChildAssoc_OrderBy"/>
|
|
||||||
</if>
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- GetChildren - with no explicit sorting (or prop filtering) - note: still filtered by child type (and optionally primary or secondary) -->
|
<!-- GetChildren - with no explicit sorting (or prop filtering) - note: still filtered by child type (and optionally primary or secondary) -->
|
||||||
|
Reference in New Issue
Block a user