mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added a semi intelligible toString to VersionDescriptor. Added an interactive
console program for debugging. Made it so you can't snapshot a version if there's nothing to snapshot. Fixed inactive to active transition in OrphanReaper. Other odds and ends. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3132 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* All the information about a particular version.
|
||||
* @author britt
|
||||
@@ -96,4 +98,19 @@ public class VersionDescriptor
|
||||
{
|
||||
return fCreateDate;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("[");
|
||||
builder.append(fRepositoryName);
|
||||
builder.append(":");
|
||||
builder.append("" + fVersionID);
|
||||
builder.append(":");
|
||||
builder.append(fCreator);
|
||||
builder.append(":");
|
||||
builder.append(new Date(fCreateDate).toString());
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user