org.alfresco.repo.version.common.counter
Interface VersionCounterService

All Known Implementing Classes:
VersionCounterDaoComponentImpl

public interface VersionCounterService

Version counter service interface.


Method Summary
 int currentVersionNumber(StoreRef storeRef)
          Gets the current version number for the specified store.
 int nextVersionNumber(StoreRef storeRef)
          Get the next available version number for the specified store.
 void resetVersionNumber(StoreRef storeRef)
          Resets the version number for a the specified store.
 void setVersionNumber(StoreRef storeRef, int versionCount)
          Sets the version number for a specified store.
 

Method Detail

nextVersionNumber

int nextVersionNumber(StoreRef storeRef)
Get the next available version number for the specified store.

Parameters:
storeRef - the store reference
Returns:
the next version number

currentVersionNumber

int currentVersionNumber(StoreRef storeRef)
Gets the current version number for the specified store.

Parameters:
storeRef - the store reference
Returns:
the current versio number

resetVersionNumber

void resetVersionNumber(StoreRef storeRef)
Resets the version number for a the specified store. WARNING: calling this method will completely reset the current version count for the specified store and cannot be undone.

Parameters:
storeRef - the store reference

setVersionNumber

void setVersionNumber(StoreRef storeRef,
                      int versionCount)
Sets the version number for a specified store. WARNING: calling this method will completely reset the current version count for the specified store and cannot be undone.

Parameters:
storeRef - the store reference
versionCount - the new version count


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.