package com.atlassian.bitbucket.internal.scm.git.lfs.dao;

import com.atlassian.bitbucket.repository.Repository;

import javax.annotation.Nonnull;

/**
 * Per repository configuration for Git LFS
 */
public interface GitLfsRepositoryConfigDao {

    /**
     * Cleanup any records pertaining to the specified repository
     */
    void cleanup(@Nonnull Repository repository);

    /**
     * @return true if Git LFS is enabled for the given repository, otherwise false
     */
    boolean isEnabled(@Nonnull Repository repository);

    /**
     * @param enabled true if Git LFS is enabled for the given repository, otherwise false
     */
    void setEnabled(@Nonnull Repository repository, boolean enabled);
}
