Interface RepositoryStateManager

    • Method Detail

      • setRepositoryState

        void setRepositoryState​(@NotNull
                                LVcsRootInstance repository,
                                @NotNull
                                RepositoryState state)
        Persists repository state
        Parameters:
        repository - repository of interest
        state - state of repository
      • getRepositoryState

        @NotNull
        RepositoryState getRepositoryState​(@NotNull
                                           LVcsRootInstance repository)
        Returns persisted state or null if no state were persisted for given repository
        Parameters:
        repository - repository of interest
        Returns:
        see above
      • getRepositoryStateUpdateTime

        @Nullable
        Date getRepositoryStateUpdateTime​(@NotNull
                                          LVcsRootInstance repository)
        Returns a timestamp when the repository state has been updated last time. In this case the update time is not always the same as RepositoryState.getCreateTimestamp(). For instance, if the state is empty (VcsRepositoryState.isEmpty() returns true), then the update time will be null because the state has not been updated as a result of the checking for changes operation, but rather has just been created.
        Parameters:
        repository -
        Returns:
      • refreshRepositoryState

        void refreshRepositoryState​(@NotNull
                                    LVcsRootInstance repository)
        Refreshes the cached in-memory copy of the repository state from the database.
        Parameters:
        repository -