Interface IRepositoryWriter

All Known Subinterfaces:
IRepository

public interface IRepositoryWriter
This interface represents a Repository. It allows for querying, modifying and navigating through collections and resources.
  • Method Summary

    Modifier and Type Method Description
    ICollection createCollection​(String path)
    This method creates a new empty collection at the specified path.
    IResource createResource​(String path)
    This method creates a new empty resource at the specified path.
    IResource createResource​(String path, byte[] content)
    This method creates a new resource at the specified path and fills it with the specified content.
    IResource createResource​(String path, byte[] content, boolean isBinary, String contentType)
    This method creates a new empty resource at the specified path.
    IResource createResource​(String path, byte[] content, boolean isBinary, String contentType, boolean override)
    This method creates a new empty, or override resource at the specified path.
    void deleteLinkedPath​(String repositoryPath)
    Delete link together with external folder or file.
    void dispose()
    Disposes of this repository.
    boolean isLinkedPath​(String repositoryPath)
    Check if Link exists between folder or file and an internal Repository artifact.
    boolean isLinkingPathsSupported()
    Whether the Repository supports linking of external paths.
    void linkPath​(String repositoryPath, String filePath)
    Link external folder or file as an internal Repository artifact.
    void removeCollection​(String path)
    This method removes the collection with the specified path from the repository.
    void removeResource​(String path)
    This method removes the resource at the specified path from the repository.