Interface GitMetadataStore


  • public interface GitMetadataStore
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(String name)
      Deletes that repository meta information and removes its reference from the origin and forks.
      Optional<GitMetadata> read​(String name)
      Reads the git metadata from repository.
      void write​(String name)
      Writes the meta information about a repository without an origin.
      void write​(String name, String origin)
      Writes the meta information about a repository and its origin.
      void write​(String name, String origin, boolean lock)
      Writes the meta information about a repository and its origin.
      void write​(String name, GitMetadata metadata)
      Writes the meta information about a repository.
      void write​(String name, GitMetadata metadata, boolean lock)
      Writes the meta information about a repository.
    • Method Detail

      • write

        void write​(String name)
        Writes the meta information about a repository without an origin.
        Parameters:
        name - The name of the repository.
      • write

        void write​(String name,
                   String origin)
        Writes the meta information about a repository and its origin. The origin must be in organizationalUnit/repositoryName format
        Parameters:
        name - The name of the repository
        origin - The name of the origin in organizationalUnit/repositoryName format
      • write

        void write​(String name,
                   String origin,
                   boolean lock)
        Writes the meta information about a repository and its origin. The origin must be in organizationalUnit/repositoryName format
        Parameters:
        name - The name of the repository
        origin - The name of the origin in organizationalUnit/repositoryName format
        lock - Determines if the FileSystem should be locked or not
      • write

        void write​(String name,
                   GitMetadata metadata)
        Writes the meta information about a repository.
        Parameters:
        name - The name of the repository
        metadata - The metadata object that stores information about repository
      • write

        void write​(String name,
                   GitMetadata metadata,
                   boolean lock)
        Writes the meta information about a repository.
        Parameters:
        name - The name of the repository
        metadata - The metadata object that stores information about repository
        lock - Determines if the FileSystem should be locked or not
      • read

        Optional<GitMetadata> read​(String name)
        Reads the git metadata from repository.
        Parameters:
        name - the repository name
        Returns:
      • delete

        void delete​(String name)
        Deletes that repository meta information and removes its reference from the origin and forks.
        Parameters:
        name - The repository name