ccc.domain
Interface SnapshotSupport<T>

Type Parameters:
T - The type of snapshot returned.
All Known Implementing Classes:
AliasEntity, FileEntity, FolderEntity, HistoricalResource, PageEntity, ResourceEntity, Search, TemplateEntity, WorkingCopySupport

public interface SnapshotSupport<T>

API implemented by resources that support snapshot creation.

Author:
Civic Computing Ltd.

Method Summary
 T forCurrentRevision()
          Create a snapshot for the current revision.
 T forSpecificRevision(int revNo)
          Create a snapshot for the specified revision.
 T forWorkingCopy()
          Create a snapshot for the working copy.
 

Method Detail

forWorkingCopy

T forWorkingCopy()
Create a snapshot for the working copy.

Returns:
A read-only snapshot of the resource.

forCurrentRevision

T forCurrentRevision()
Create a snapshot for the current revision.

Returns:
A read-only snapshot of the resource.

forSpecificRevision

T forSpecificRevision(int revNo)
Create a snapshot for the specified revision.

Parameters:
revNo - The revision to create a snapshot for.
Returns:
A read-only snapshot of the resource.


Copyright © 2010. All Rights Reserved.