Class AbstractResources<T extends Resource>

    • Constructor Detail

      • AbstractResources

        public AbstractResources()
    • Method Detail

      • delete

        public void delete()
        Description copied from interface: Resources
        Delete the current resource (and any children). If this resource does not exist then no operation is performed.
        Specified by:
        delete in interface Resources<T extends Resource>
      • moveTo

        public Resources<T> moveTo​(Folder folder)
        Description copied from interface: Resources
        Move this resource to the specified folder. Any duplicate Files will be replaced (existing Folder resources will be merged). If the resource does not exist no operation is performed.
        Specified by:
        moveTo in interface Resources<T extends Resource>
        Parameters:
        folder - the folder to move the resource to
        Returns:
        a resource collection containing the new destination resources
      • copyTo

        public Resources<T> copyTo​(Folder folder)
        Description copied from interface: Resources
        Recursively copy this resource to the specified folder. Any duplicate Files will be replaced (existing Folder resources will be merged). If the resource does not exist no operation is performed.
        Specified by:
        copyTo in interface Resources<T extends Resource>
        Parameters:
        folder - the folder to copy the resource to
        Returns:
        a resource collection containing the new destination resources
      • performOperation

        public <OPERATION extends ResourceOperation<T>> OPERATION performOperation​(OPERATION operation)
        Description copied from interface: Resources
        Perform the given operation with each Resource in this collection.
        Specified by:
        performOperation in interface Resources<T extends Resource>
        Parameters:
        operation - the operation to perform
        Returns:
        the operation that was performed
      • fetchAll

        public java.util.List<T> fetchAll()
        Description copied from interface: Resources
        Fetch all Resources from this collection and return the result as a List. This will trigger iteration over each element.
        Specified by:
        fetchAll in interface Resources<T extends Resource>
        Returns:
        a List of all Resources in this collection.