Class DownloadsImpl

java.lang.Object
org.alfresco.rest.api.impl.DownloadsImpl
All Implemented Interfaces:
Downloads

public class DownloadsImpl extends Object implements Downloads
Author:
cpopa
  • Field Details

  • Constructor Details

    • DownloadsImpl

      public DownloadsImpl()
  • Method Details

    • setDownloadService

      public void setDownloadService(DownloadService downloadService)
    • setNodeService

      public void setNodeService(NodeService nodeService)
    • setNodes

      public void setNodes(Nodes nodes)
    • setPermissionService

      public void setPermissionService(PermissionService permissionService)
    • createDownloadNode

      public Download createDownloadNode(Download download)
      Description copied from interface: Downloads
      Creates a download:download node.
      Specified by:
      createDownloadNode in interface Downloads
      Returns:
      information about the newly created download:download node
    • getDownloadStatus

      public Download getDownloadStatus(String downloadNodeId)
      Description copied from interface: Downloads
      Get status info about a download node.
      Specified by:
      getDownloadStatus in interface Downloads
      Returns:
      status info about a download:download node
    • cancel

      public void cancel(String downloadNodeId)
      Description copied from interface: Downloads
      Stop the zip creation if still in progress
      Specified by:
      cancel in interface Downloads
    • validateAndGetNodeRefs

      protected NodeRef[] validateAndGetNodeRefs(Download download)
    • checkNodeIdsReadPermission

      protected void checkNodeIdsReadPermission(NodeRef[] zipContentNodeRefs)
    • checkDuplicateNodeId

      protected void checkDuplicateNodeId(Download download)
    • checkEmptyNodeIds

      protected void checkEmptyNodeIds(Download download)
    • checkIsDownloadNodeType

      protected void checkIsDownloadNodeType(NodeRef downloadNodeRef)