Style Intelligence v12.0

inetsoft.sree.store
Interface VersionedStorage

All Superinterfaces:
DataStorage

public interface VersionedStorage
extends DataStorage

This interface defines the API of a versioned data storage system. It is modeled after the CVS command set, but can be easily implemented using other version control system or plain file system.


Method Summary
 Object checkout(String path, String ver)
          Checkout an archive file from the storage.
 boolean remove(String path, String ver)
          Remove an achive file from the storage.
 
Methods inherited from interface inetsoft.sree.store.DataStorage
add, checkout, commit, init, list, log, remove, rename, update
 

Method Detail

remove

boolean remove(String path,
               String ver)
               throws IOException
Remove an achive file from the storage.

Parameters:
path - the specified archive file path.
ver - the specified version.
Returns:
true if success, false otherwise.
Throws:
IOException

checkout

Object checkout(String path,
                String ver)
                throws IOException
Checkout an archive file from the storage.

Parameters:
path - the specified archive file path.
ver - the specified version.
Returns:
object that encapsulates the data in the file. The object must be an instance of one of the following types - byte[], InputStream, or File.
Throws:
IOException

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.