Class Trashcan

    • Constructor Detail

      • Trashcan

        public Trashcan​(RestWrapper restWrapper)
    • Method Detail

      • findDeletedNodes

        public RestNodeModelsCollection findDeletedNodes()
                                                  throws java.lang.Exception
        GET on deleted-nodes
        Returns:
        RestNodeModelsCollection
        Throws:
        java.lang.Exception
      • findDeletedNode

        public RestNodeModel findDeletedNode​(org.alfresco.utility.model.RepoTestModel repoModel)
                                      throws java.lang.Exception
        Gets a node from trashcan using GET call on "deleted-nodes/{nodeId}"
        Parameters:
        repoModel -
        Returns:
        RestNodeModel
        Throws:
        java.lang.Exception
      • deleteNodeFromTrashcan

        public void deleteNodeFromTrashcan​(org.alfresco.utility.model.RepoTestModel repoModel)
                                    throws java.lang.Exception
        Delete node from trashcan using DELETE call on "deleted-nodes/{nodeId}"
        Parameters:
        repoModel -
        Throws:
        java.lang.Exception
      • restoreNodeFromTrashcan

        public RestNodeModel restoreNodeFromTrashcan​(org.alfresco.utility.model.RepoTestModel repoModel)
                                              throws java.lang.Exception
        Restore node from trashcan using POST call on "deleted-nodes/{nodeId}/restore"
        Parameters:
        repoModel -
        Returns:
        RestNodeModel
        Throws:
        java.lang.Exception
      • getDeletedNodeContent

        public RestResponse getDeletedNodeContent​(org.alfresco.utility.model.RepoTestModel repoModel)
                                           throws java.lang.Exception
        Gets a trashcan node content using GET call on "deleted-nodes/{nodeId}/content"
        Parameters:
        repoModel -
        Returns:
        RestResponse
        Throws:
        java.lang.Exception
      • getDeletedNodeRenditions

        public RestRenditionInfoModelCollection getDeletedNodeRenditions​(org.alfresco.utility.model.RepoTestModel repoModel)
                                                                  throws java.lang.Exception
        Gets all trashcan node renditions using GET call on "/deleted-nodes/{nodeId}/renditions"
        Parameters:
        repoModel -
        Returns:
        RestRenditionInfoModelCollection
        Throws:
        java.lang.Exception
      • getDeletedNodeRendition

        public RestRenditionInfoModel getDeletedNodeRendition​(org.alfresco.utility.model.RepoTestModel repoModel,
                                                              java.lang.String renditionId)
                                                       throws java.lang.Exception
        Gets a single trashcan node rendition using GET call on "/deleted-nodes/{nodeId}/renditions/{renditionId}"
        Parameters:
        repoModel -
        renditionId -
        Returns:
        RestRenditionInfoModel
        Throws:
        java.lang.Exception
      • getDeletedNodeRenditionContent

        public RestResponse getDeletedNodeRenditionContent​(org.alfresco.utility.model.RepoTestModel repoModel,
                                                           java.lang.String renditionId)
                                                    throws java.lang.Exception
        Gets a single trashcan node rendition content using GET call on "/deleted-nodes/{nodeId}/renditions/{renditionId}/content"
        Parameters:
        repoModel -
        renditionId -
        Returns:
        RestResponse
        Throws:
        java.lang.Exception