mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Extended VersionDescriptor to include new short and long descriptions.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4292 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -531,7 +531,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
new VersionDescriptor(fName,
|
||||
vr.getVersionID(),
|
||||
vr.getCreator(),
|
||||
vr.getCreateDate());
|
||||
vr.getCreateDate(),
|
||||
vr.getTag(),
|
||||
vr.getDescription());
|
||||
descs.add(desc);
|
||||
}
|
||||
return descs;
|
||||
@@ -555,7 +557,9 @@ public class AVMStoreImpl implements AVMStore, Serializable
|
||||
new VersionDescriptor(fName,
|
||||
vr.getVersionID(),
|
||||
vr.getCreator(),
|
||||
vr.getCreateDate());
|
||||
vr.getCreateDate(),
|
||||
vr.getTag(),
|
||||
vr.getDescription());
|
||||
descs.add(desc);
|
||||
}
|
||||
return descs;
|
||||
|
@@ -48,6 +48,16 @@ public class VersionDescriptor implements Serializable
|
||||
*/
|
||||
private long fCreateDate;
|
||||
|
||||
/**
|
||||
* The short description.
|
||||
*/
|
||||
private String fTag;
|
||||
|
||||
/**
|
||||
* The long description.
|
||||
*/
|
||||
private String fDescription;
|
||||
|
||||
/**
|
||||
* New one up.
|
||||
* @param storeName The store name.
|
||||
@@ -58,12 +68,16 @@ public class VersionDescriptor implements Serializable
|
||||
public VersionDescriptor(String storeName,
|
||||
int versionID,
|
||||
String creator,
|
||||
long createDate)
|
||||
long createDate,
|
||||
String tag,
|
||||
String description)
|
||||
{
|
||||
fAVMStoreName = storeName;
|
||||
fVersionID = versionID;
|
||||
fCreator = creator;
|
||||
fCreateDate = createDate;
|
||||
fTag = tag;
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -102,6 +116,24 @@ public class VersionDescriptor implements Serializable
|
||||
return fCreateDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the short description.
|
||||
* @return The short description.
|
||||
*/
|
||||
public String getTag()
|
||||
{
|
||||
return fTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the long description.
|
||||
* @return
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return fDescription;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
@@ -113,6 +145,8 @@ public class VersionDescriptor implements Serializable
|
||||
builder.append(fCreator);
|
||||
builder.append(":");
|
||||
builder.append(new Date(fCreateDate).toString());
|
||||
builder.append(":");
|
||||
builder.append(fTag);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user