ccc.domain
Interface WCAware<T>

Type Parameters:
T -
All Known Implementing Classes:
FileEntity, PageEntity, WorkingCopySupport

public interface WCAware<T>

The API for working copy support.

Author:
Civic Computing Ltd.

Method Summary
 void applyWorkingCopy(RevisionMetadata metadata)
          Apply the current working copy.
 void clearWorkingCopy()
          Clear the current working copy.
 T getOrCreateWorkingCopy()
          Accessor.
 boolean hasWorkingCopy()
          Query method.
 void setOrUpdateWorkingCopy(T snapshot)
          Mutator.
 

Method Detail

clearWorkingCopy

void clearWorkingCopy()
Clear the current working copy.


setOrUpdateWorkingCopy

void setOrUpdateWorkingCopy(T snapshot)
Mutator.

Parameters:
snapshot - The new working copy for this page.

hasWorkingCopy

boolean hasWorkingCopy()
Query method.

Returns:
True if this object has a working copy, false otherwise.

applyWorkingCopy

void applyWorkingCopy(RevisionMetadata metadata)
Apply the current working copy.

Parameters:
metadata - The metadata describing the revision.

getOrCreateWorkingCopy

T getOrCreateWorkingCopy()
Accessor.

Returns:
The current working copy for this page, or a new working copy if none exists.


Copyright © 2010. All Rights Reserved.