Package org.saidone.unrest.sdk
Class GrpcNodesApi
java.lang.Object
org.saidone.unrest.sdk.GrpcNodesApi
- All Implemented Interfaces:
org.alfresco.core.handler.NodesApi,org.alfresco.core.handler.NodesApiClient
SDK 7.x NodesApi backed by the shared gRPC clients.
The caller owns the clients, tickets and channels.
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcNodesApi(NodeServiceClient nodes, FileFolderServiceClient files) Creates a metadata-only adapter.GrpcNodesApi(NodeServiceClient nodes, FileFolderServiceClient files, ContentServiceClient contents) Uses the default Feign error mapping. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> copyNode(String nodeId, org.alfresco.core.model.NodeBodyCopy body, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.AssociationEntry> createAssociation(String argument0, org.alfresco.core.model.AssociationBody argument1, List<String> argument2) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> createNode(String parentId, org.alfresco.core.model.NodeBodyCreate body, Boolean autoRename, Boolean majorVersion, Boolean versioningEnabled, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.ChildAssociationEntry> createSecondaryChildAssociation(String argument0, org.alfresco.core.model.ChildAssociationBody argument1, List<String> argument2) org.springframework.http.ResponseEntity<Void> deleteAssociation(String argument0, String argument1, String argument2) org.springframework.http.ResponseEntity<Void> deleteNode(String nodeId, Boolean permanent) Deletes a node through the repository service.org.springframework.http.ResponseEntity<Void> deleteSecondaryChildAssociation(String argument0, String argument1, String argument2) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> SDK node read with default properties/aspects or explicit projection.org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getNodeContent(String nodeId, Boolean attachment, OffsetDateTime ifModifiedSince, String range) Returns a single-use resource.org.springframework.http.ResponseEntity<org.alfresco.core.model.GetNodeSizeDetailsResponse> getNodeSizeDetails(String argument0, String argument1) org.springframework.http.ResponseEntity<org.alfresco.core.model.SizeDetailsRequestResultEntry> getNodeSizeDetailsRequest(String argument0) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeChildAssociationPaging> listNodeChildren(String nodeId, Integer skipCount, Integer maxItems, List<String> orderBy, String where, List<String> include, String relativePath, Boolean includeSource, List<String> fields) SDK child page with basic metadata by default; properties/aspects are optional includes.org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listParents(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, Boolean argument5, List<String> argument6) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeChildAssociationPaging> listSecondaryChildren(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, Boolean argument5, List<String> argument6) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listSourceAssociations(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, List<String> argument5) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listTargetAssociations(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, List<String> argument5) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> lockNode(String nodeId, org.alfresco.core.model.NodeBodyLock body, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> moveNode(String nodeId, org.alfresco.core.model.NodeBodyMove body, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestNodeDirectAccessUrl(String argument0, org.alfresco.core.model.DirectAccessUrlBodyCreate argument1) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> updateNode(String nodeId, org.alfresco.core.model.NodeBodyUpdate body, List<String> include, List<String> fields) org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> updateNodeContent(String nodeId, byte[] body, Boolean majorVersion, String comment, String name, List<String> include, List<String> fields) Replaces content through gRPC streaming.
-
Constructor Details
-
GrpcNodesApi
public GrpcNodesApi(NodeServiceClient nodes, FileFolderServiceClient files, ContentServiceClient contents) Uses the default Feign error mapping. -
GrpcNodesApi
Creates a metadata-only adapter. Supply the content client to enable content operations.
-
-
Method Details
-
getNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> getNode(String nodeId, List<String> include, String relativePath, List<String> fields) SDK node read with default properties/aspects or explicit projection.- Specified by:
getNodein interfaceorg.alfresco.core.handler.NodesApi
-
listNodeChildren
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeChildAssociationPaging> listNodeChildren(String nodeId, Integer skipCount, Integer maxItems, List<String> orderBy, String where, List<String> include, String relativePath, Boolean includeSource, List<String> fields) SDK child page with basic metadata by default; properties/aspects are optional includes.- Specified by:
listNodeChildrenin interfaceorg.alfresco.core.handler.NodesApi
-
deleteNode
Deletes a node through the repository service.- Specified by:
deleteNodein interfaceorg.alfresco.core.handler.NodesApi
-
createNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> createNode(String parentId, org.alfresco.core.model.NodeBodyCreate body, Boolean autoRename, Boolean majorVersion, Boolean versioningEnabled, List<String> include, List<String> fields) - Specified by:
createNodein interfaceorg.alfresco.core.handler.NodesApi
-
updateNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> updateNode(String nodeId, org.alfresco.core.model.NodeBodyUpdate body, List<String> include, List<String> fields) - Specified by:
updateNodein interfaceorg.alfresco.core.handler.NodesApi
-
copyNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> copyNode(String nodeId, org.alfresco.core.model.NodeBodyCopy body, List<String> include, List<String> fields) - Specified by:
copyNodein interfaceorg.alfresco.core.handler.NodesApi
-
moveNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> moveNode(String nodeId, org.alfresco.core.model.NodeBodyMove body, List<String> include, List<String> fields) - Specified by:
moveNodein interfaceorg.alfresco.core.handler.NodesApi
-
lockNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> lockNode(String nodeId, org.alfresco.core.model.NodeBodyLock body, List<String> include, List<String> fields) - Specified by:
lockNodein interfaceorg.alfresco.core.handler.NodesApi
-
unlockNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> unlockNode(String nodeId, List<String> include, List<String> fields) - Specified by:
unlockNodein interfaceorg.alfresco.core.handler.NodesApi
-
checkoutNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> checkoutNode(String nodeId, List<String> include, List<String> fields) - Specified by:
checkoutNodein interfaceorg.alfresco.core.handler.NodesApi
-
cancelCheckoutNode
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> cancelCheckoutNode(String nodeId, List<String> include, List<String> fields) - Specified by:
cancelCheckoutNodein interfaceorg.alfresco.core.handler.NodesApi
-
getNodeContent
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getNodeContent(String nodeId, Boolean attachment, OffsetDateTime ifModifiedSince, String range) Returns a single-use resource. The caller must close its input stream.- Specified by:
getNodeContentin interfaceorg.alfresco.core.handler.NodesApi
-
updateNodeContent
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeEntry> updateNodeContent(String nodeId, byte[] body, Boolean majorVersion, String comment, String name, List<String> include, List<String> fields) Replaces content through gRPC streaming. The SDK signature supplies an existing byte array.- Specified by:
updateNodeContentin interfaceorg.alfresco.core.handler.NodesApi
-
createAssociation
public org.springframework.http.ResponseEntity<org.alfresco.core.model.AssociationEntry> createAssociation(String argument0, org.alfresco.core.model.AssociationBody argument1, List<String> argument2) - Specified by:
createAssociationin interfaceorg.alfresco.core.handler.NodesApi
-
createSecondaryChildAssociation
public org.springframework.http.ResponseEntity<org.alfresco.core.model.ChildAssociationEntry> createSecondaryChildAssociation(String argument0, org.alfresco.core.model.ChildAssociationBody argument1, List<String> argument2) - Specified by:
createSecondaryChildAssociationin interfaceorg.alfresco.core.handler.NodesApi
-
deleteAssociation
public org.springframework.http.ResponseEntity<Void> deleteAssociation(String argument0, String argument1, String argument2) - Specified by:
deleteAssociationin interfaceorg.alfresco.core.handler.NodesApi
-
deleteSecondaryChildAssociation
public org.springframework.http.ResponseEntity<Void> deleteSecondaryChildAssociation(String argument0, String argument1, String argument2) - Specified by:
deleteSecondaryChildAssociationin interfaceorg.alfresco.core.handler.NodesApi
-
getNodeSizeDetails
public org.springframework.http.ResponseEntity<org.alfresco.core.model.GetNodeSizeDetailsResponse> getNodeSizeDetails(String argument0, String argument1) - Specified by:
getNodeSizeDetailsin interfaceorg.alfresco.core.handler.NodesApi
-
getNodeSizeDetailsRequest
public org.springframework.http.ResponseEntity<org.alfresco.core.model.SizeDetailsRequestResultEntry> getNodeSizeDetailsRequest(String argument0) - Specified by:
getNodeSizeDetailsRequestin interfaceorg.alfresco.core.handler.NodesApi
-
listParents
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listParents(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, Boolean argument5, List<String> argument6) - Specified by:
listParentsin interfaceorg.alfresco.core.handler.NodesApi
-
listSecondaryChildren
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeChildAssociationPaging> listSecondaryChildren(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, Boolean argument5, List<String> argument6) - Specified by:
listSecondaryChildrenin interfaceorg.alfresco.core.handler.NodesApi
-
listSourceAssociations
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listSourceAssociations(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, List<String> argument5) - Specified by:
listSourceAssociationsin interfaceorg.alfresco.core.handler.NodesApi
-
listTargetAssociations
public org.springframework.http.ResponseEntity<org.alfresco.core.model.NodeAssociationPaging> listTargetAssociations(String argument0, String argument1, List<String> argument2, Integer argument3, Integer argument4, List<String> argument5) - Specified by:
listTargetAssociationsin interfaceorg.alfresco.core.handler.NodesApi
-
requestNodeDirectAccessUrl
public org.springframework.http.ResponseEntity<org.alfresco.core.model.DirectAccessUrlEntry> requestNodeDirectAccessUrl(String argument0, org.alfresco.core.model.DirectAccessUrlBodyCreate argument1) - Specified by:
requestNodeDirectAccessUrlin interfaceorg.alfresco.core.handler.NodesApi
-