Package com.polarion.alm.builder
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
IFreezableRepository freeze()Freeze repository.Current repository is not affected, new instance is returned.
Returns current repository if
isFrozen()
is alreadytrue
.- Returns:
- frozen repository (not
null
)
-
thaw
IFreezableRepository thaw()Thaw (unfroze) repository.Returned repository will be the one which was frozen before and its
isFrozen()
will befalse
.Returns current repository if
isFrozen()
is alreadyfalse
.- Returns:
- unfrozen repository (not
null
)
-
isFrozen
boolean isFrozen()Whether this is frozen repository.- Returns:
true
if repository is frozen
-