diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/common/IdNamePair.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/common/IdNamePair.java index 6110395dc3..c8f1bdedda 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/common/IdNamePair.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/model/common/IdNamePair.java @@ -26,6 +26,8 @@ */ package org.alfresco.rest.rm.community.model.common; +import java.util.List; + import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; @@ -50,4 +52,10 @@ public class IdNamePair @JsonProperty (required = true) private String name; + + @JsonProperty (required = true) + private List aspectNames; + + @JsonProperty (required = true) + private String nodeType; } diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/RMNode.java b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/RMNode.java index a18818e85e..b9d583476d 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/RMNode.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/RMNode.java @@ -31,6 +31,8 @@ import java.util.Date; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + import org.alfresco.rest.api.model.Assoc; import org.alfresco.rest.api.model.PathInfo; import org.alfresco.rest.api.model.UserInfo; @@ -103,6 +105,7 @@ public abstract class RMNode } + @JsonProperty ("id") @UniqueId public NodeRef getNodeRef() { diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/Transfer.java b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/Transfer.java index f50df50d16..be6da6966f 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/Transfer.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/Transfer.java @@ -31,6 +31,8 @@ import java.util.Date; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + import org.alfresco.rest.api.model.UserInfo; import org.alfresco.rest.framework.resource.UniqueId; import org.alfresco.service.cmr.repository.NodeRef; @@ -67,6 +69,7 @@ public class Transfer { } + @JsonProperty ("id") @UniqueId public NodeRef getNodeRef() { diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/TransferContainer.java b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/TransferContainer.java index 58441d34fc..dcc9192603 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/TransferContainer.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/TransferContainer.java @@ -31,6 +31,8 @@ import java.util.Date; import java.util.List; import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + import org.alfresco.rest.api.model.UserInfo; import org.alfresco.rest.framework.resource.UniqueId; import org.alfresco.service.cmr.repository.NodeRef; @@ -60,6 +62,7 @@ public class TransferContainer { } + @JsonProperty ("id") @UniqueId public NodeRef getNodeRef() { diff --git a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/UnfiledChild.java b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/UnfiledChild.java index 5329439aaf..5ab14d5417 100644 --- a/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/UnfiledChild.java +++ b/rm-community/rm-community-repo/source/java/org/alfresco/rm/rest/api/model/UnfiledChild.java @@ -28,6 +28,7 @@ package org.alfresco.rm.rest.api.model; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Abstract class carrying information for an unfiled container or unfiled record folder child @@ -43,6 +44,7 @@ public abstract class UnfiledChild extends RMNode protected Boolean isUnfiledRecordFolder; protected Boolean isRecord; + @JsonProperty (PARAM_IS_UNFILED_RECORD_FOLDER) public Boolean getIsUnfiledRecordFolder() { return isUnfiledRecordFolder; @@ -54,6 +56,7 @@ public abstract class UnfiledChild extends RMNode this.isUnfiledRecordFolder = isUnfiledRecordFolder; } + @JsonProperty (PARAM_IS_RECORD) public Boolean getIsRecord() { return isRecord;