Full Repository Export / Import

- support export of system information such as applied patches and version counters
- support for deleted archive store

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2884 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
David Caruana
2006-05-12 21:30:24 +00:00
parent adfd5bcc0d
commit bb4575435a
19 changed files with 715 additions and 58 deletions

View File

@@ -56,4 +56,11 @@ public interface VersionCount
* @see #incrementVersionCount()
*/
public int getVersionCount();
/**
* Sets the current version counter
*
* @param versionCount the new version counter
*/
public void setVersionCount(int versionCount);
}

View File

@@ -85,7 +85,7 @@ public class VersionCountImpl implements VersionCount
/**
* For Hibernate use
*/
private void setVersionCount(int versionCount)
public void setVersionCount(int versionCount)
{
this.versionCount = versionCount;
}

View File

@@ -179,4 +179,22 @@ public class VersionCounterDaoComponentImpl
// get an incremented count
versionCounter.resetVersionCount();
}
/**
* 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.
*
* @param storeRef the store reference
* @param versionCount the new version count
*/
public synchronized void setVersionNumber(StoreRef storeRef, int versionCount)
{
// get the version counter
VersionCount versionCounter = getVersionCounter(storeRef);
// get an incremented count
versionCounter.setVersionCount(versionCount);
}
}