Interface IFreezableRepository

All Known Subinterfaces:
ISourceRepository

public interface IFreezableRepository
Repository which can be frozen in time.

Only operations without explicit revisions are affected by freezing.

Modifications are forbidden.

New instance is created for frozen repository (called repository is not changed, but cloned).

Freezin' a frozen repository is a no-op.

Frozen repository implements all interfaces like unfrozen one.

Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
  • Method Details

    • freeze

      Freeze repository.

      Current repository is not affected, new instance is returned.

      Returns current repository if isFrozen() is already true.

      Returns:
      frozen repository (not null)
    • thaw

      Thaw (unfroze) repository.

      Returned repository will be the one which was frozen before and its isFrozen() will be false.

      Returns current repository if isFrozen() is already false.

      Returns:
      unfrozen repository (not null)
    • isFrozen

      boolean isFrozen()
      Whether this is frozen repository.
      Returns:
      true if repository is frozen