Class VersionManagerImplBase.WriteOperation
- java.lang.Object
-
- org.apache.jackrabbit.core.version.VersionManagerImplBase.WriteOperation
-
- Enclosing class:
- VersionManagerImplBase
public class VersionManagerImplBase.WriteOperation extends Object
Helper for managing write operations.
-
-
Constructor Summary
Constructors Constructor Description WriteOperation(VersioningLock.WriteLock lock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the write operation.void
save()
Saves the pending operations in theLocalItemStateManager
.
-
-
-
Constructor Detail
-
WriteOperation
public WriteOperation(VersioningLock.WriteLock lock)
-
-
Method Detail
-
save
public void save() throws ItemStateException, RepositoryException
Saves the pending operations in theLocalItemStateManager
.- Throws:
ItemStateException
- if the pending state is invalidRepositoryException
- if the pending state could not be persisted
-
close
public void close()
Closes the write operation. The pending operations are cancelled if they could not be properly saved. Finally the write lock is released.
-
-