mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
130022 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1) 129926 ahind: SEARCH-31 SOLR 6 - Shard based on date - SOLR implementation - Support returning a date, datetime or string property to use for sharding git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130285 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,7 +54,8 @@ public class NodeEntity implements Node, PermissionCheckValue, Serializable, Clo
|
||||
private Long localeId;
|
||||
private Long aclId;
|
||||
private TransactionEntity transaction;
|
||||
private AuditablePropertiesEntity auditableProperties;
|
||||
private AuditablePropertiesEntity auditableProperties;
|
||||
private String shardKey;
|
||||
|
||||
/**
|
||||
* Required default constructor
|
||||
@@ -89,7 +90,8 @@ public class NodeEntity implements Node, PermissionCheckValue, Serializable, Clo
|
||||
this.localeId = node.getLocaleId();
|
||||
this.aclId = node.getAclId();
|
||||
this.transaction = node.getTransaction();
|
||||
this.auditableProperties = node.getAuditableProperties();
|
||||
this.auditableProperties = node.getAuditableProperties();
|
||||
this.shardKey = node.getShardKey();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -137,7 +139,8 @@ public class NodeEntity implements Node, PermissionCheckValue, Serializable, Clo
|
||||
.append(", localeId=").append(localeId)
|
||||
.append(", aclId=").append(aclId)
|
||||
.append(", transaction=").append(transaction)
|
||||
.append(", auditProps=").append(auditableProperties)
|
||||
.append(", auditProps=").append(auditableProperties)
|
||||
.append(", shardKey=").append(shardKey)
|
||||
.append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
@@ -331,5 +334,18 @@ public class NodeEntity implements Node, PermissionCheckValue, Serializable, Clo
|
||||
{
|
||||
checkLock();
|
||||
this.auditableProperties = auditableProperties;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getShardKey()
|
||||
{
|
||||
return this.shardKey;
|
||||
}
|
||||
|
||||
public synchronized void setShardKey(String shardKey)
|
||||
{
|
||||
this.shardKey = shardKey;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user