Class NodesEntityResource

    • Constructor Detail

      • NodesEntityResource

        public NodesEntityResource()
    • Method Detail

      • setNodes

        public void setNodes​(Nodes nodes)
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      • readById

        public Node readById​(java.lang.String nodeId,
                             Parameters parameters)
        Returns information regarding the node 'nodeId' - folder or document
        Specified by:
        readById in interface EntityResourceAction.ReadById<Node>
        Parameters:
        nodeId - String id of node (folder or document) - will also accept well-known aliases, eg. "-root-", "-my-", "-shared-" Optional parameters: - path
      • updateProperty

        public Node updateProperty​(java.lang.String fileNodeId,
                                   BasicContentInfo contentInfo,
                                   java.io.InputStream stream,
                                   Parameters parameters)
        Upload new version of content This allow binary content update of an existing file/content node. Note: alternatively, can upload via POST (multipart/form-data) with existing file name and form "overwrite=true".
        Specified by:
        updateProperty in interface BinaryResourceAction.Update<Node>
        Parameters:
        fileNodeId -
        contentInfo - Basic information about the content stream
        stream - An inputstream
        parameters -
        Returns:
      • update

        public Node update​(java.lang.String nodeId,
                           Node nodeInfo,
                           Parameters parameters)
        Update info on the node 'nodeId' - folder or document Can update name (which is a "rename" and hence must be unique within the current parent folder) or update other properties.
        Specified by:
        update in interface EntityResourceAction.Update<Node>
        Parameters:
        nodeId - String nodeId of node (folder or document)
        nodeInfo - node entity with info to update (eg. name, properties ...)
        parameters -
        Returns:
      • delete

        public void delete​(java.lang.String nodeId,
                           Parameters parameters)
        Delete the given node. Note: will cascade delete for a folder.
        Specified by:
        delete in interface EntityResourceAction.Delete
        Parameters:
        nodeId - String id of node (folder or document)
      • unlock

        public Node unlock​(java.lang.String nodeId,
                           java.lang.Void ignore,
                           Parameters parameters,
                           WithResponse withResponse)
      • requestContentUrl

        public org.alfresco.service.cmr.repository.DirectAccessUrl requestContentUrl​(java.lang.String nodeId,
                                                                                     DirectAccessUrlRequest directAccessUrlRequest,
                                                                                     Parameters parameters,
                                                                                     WithResponse withResponse)