Interface GitMetadataStore
-
public interface GitMetadataStore
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(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.voidwrite(String name)Writes the meta information about a repository without an origin.voidwrite(String name, String origin)Writes the meta information about a repository and its origin.voidwrite(String name, String origin, boolean lock)Writes the meta information about a repository and its origin.voidwrite(String name, GitMetadata metadata)Writes the meta information about a repository.voidwrite(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 repositoryorigin- 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 repositoryorigin- The name of the origin in organizationalUnit/repositoryName formatlock- 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 repositorymetadata- 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 repositorymetadata- The metadata object that stores information about repositorylock- 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
-
-